mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
resource integration: "setting image state manually"
This commit is contained in:
parent
3746093efd
commit
7565447d63
3 changed files with 126 additions and 7 deletions
|
|
@ -5014,3 +5014,11 @@ DefineEngineMethod( ShapeBase, getModelFile, const char *, (),,
|
|||
const char *fieldName = StringTable->insert( String("shapeFile") );
|
||||
return datablock->getDataField( fieldName, NULL );
|
||||
}
|
||||
|
||||
ConsoleMethod( ShapeBase, setManualImageState, void, 4, 4, "(int slot, string state)")
|
||||
{
|
||||
int imageSlot = dAtoi(argv[2]);
|
||||
const char* state = argv[3];
|
||||
if (imageSlot >= 0 && imageSlot < ShapeBase::MaxMountedImages)
|
||||
object->setManualImageState(imageSlot, state);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue