layout consistency pass pt 3 - some afx bits, correct malformed shapeimage grouping causing a crash.

-must have addgroup and endgroup
This commit is contained in:
AzaezelX 2023-01-26 20:01:10 -06:00
parent 41cb2e63cf
commit a0bbe0ec18
4 changed files with 81 additions and 97 deletions

View file

@ -70,17 +70,22 @@ afxStaticShapeData::afxStaticShapeData(const afxStaticShapeData& other, bool tem
void afxStaticShapeData::initPersistFields()
{
addField("sequence", TypeString, myOffset(sequence),
addGroup("Animation");
addField("sequence", TypeString, myOffset(sequence),
"An animation sequence in the StaticShape to play.");
addField("ignoreSceneAmbient", TypeBool, myOffset(ignore_scene_amb),
"...");
addField("useCustomSceneAmbient", TypeBool, myOffset(use_custom_scene_amb),
"...");
addField("customSceneAmbient", TypeColorF, myOffset(custom_scene_amb),
"...");
addField("doSpawn", TypeBool, myOffset(do_spawn),
"When true, the StaticShape effect will leave behind the StaticShape object as a "
"permanent part of the scene.");
endGroup("Animation");
addGroup("Rendering");
addField("ignoreSceneAmbient", TypeBool, myOffset(ignore_scene_amb), "...");
addField("useCustomSceneAmbient", TypeBool, myOffset(use_custom_scene_amb), "...");
addField("customSceneAmbient", TypeColorF, myOffset(custom_scene_amb), "...");
endGroup("Rendering");
addGroup("Behaviour");
addField("doSpawn", TypeBool, myOffset(do_spawn),
"When true, the StaticShape effect will leave behind the StaticShape object as a "
"permanent part of the scene.");
endGroup("Behaviour");
Parent::initPersistFields();
}