mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-15 09:54:07 +00:00
fix optional skin param for ShapeBase::setImage
using the %obj.mountImage(image,slot,loaded,skin) skin option was not always properly applying. reported by steve_yorksire, fixed by sir_skurpsalot: https://discord.com/channels/358091480004558848/580242040730943509/1510795740199260252
This commit is contained in:
parent
c58f6825dc
commit
6485d48e38
1 changed files with 1 additions and 0 deletions
|
|
@ -2343,6 +2343,7 @@ void ShapeBase::setImage( U32 imageSlot,
|
|||
image.dataBlock = imageData;
|
||||
image.state = &image.dataBlock->state[0];
|
||||
image.skinNameHandle = skinNameHandle;
|
||||
image.appliedSkinName = "Base";
|
||||
image.updateDoAnimateAllShapes(this);
|
||||
|
||||
for (U32 i=0; i<ShapeBaseImageData::MaxShapes; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue