layout consistency pass pt 2 -place shapebase inheriting initpersistfields up top so the child layout appends to the parent

This commit is contained in:
AzaezelX 2023-01-24 19:30:09 -06:00
parent f07c8745b2
commit ace18d0246
22 changed files with 162 additions and 157 deletions

View file

@ -131,6 +131,7 @@ TurretShapeData::TurretShapeData()
void TurretShapeData::initPersistFields()
{
Parent::initPersistFields();
addGroup("Steering");
addField("zRotOnly", TypeBool, Offset(zRotOnly, TurretShapeData),
"@brief Should the turret allow only z rotations.\n\n"
@ -168,9 +169,6 @@ void TurretShapeData::initPersistFields()
addField("cameraOffset", TypeF32, Offset(cameraOffset, TurretShapeData),
"Vertical (Z axis) height of the camera above the turret." );
endGroup("Camera");
Parent::initPersistFields();
}
void TurretShapeData::packData(BitStream* stream)