fill in the validated variables

This commit is contained in:
AzaezelX 2025-03-09 11:53:23 -05:00
parent fa760fa746
commit f633ef3a3d
184 changed files with 1359 additions and 1216 deletions

View file

@ -639,7 +639,7 @@ void SceneObject::setHidden( bool hidden )
}
//-----------------------------------------------------------------------------
IRangeValidator soMountRange(-1, SceneObject::NumMountPoints);
void SceneObject::initPersistFields()
{
docsURL;
@ -685,7 +685,7 @@ void SceneObject::initPersistFields()
"@brief PersistentID of object we are mounted to.\n\n"
"Unlike the SimObjectID that is determined at run time, the PersistentID of an object is saved with the level/mission and "
"may be used to form a link between objects." );
addField( "mountNode", TypeS32, Offset( mMount.node, SceneObject ), "Node we are mounted to." );
addFieldV( "mountNode", TypeRangedS32, Offset( mMount.node, SceneObject ),&soMountRange, "Node we are mounted to." );
addField( "mountPos", TypeMatrixPosition, Offset( mMount.xfm, SceneObject ), "Position we are mounted at ( object space of our mount object )." );
addField( "mountRot", TypeMatrixRotation, Offset( mMount.xfm, SceneObject ), "Rotation we are mounted at ( object space of our mount object )." );