Explorar o código

Properly call endGroup instead of addGroup

Lukas Aldershaab hai 1 ano
pai
achega
25c1ebcf13
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      Engine/source/T3D/debris.cpp
  2. 1 1
      Engine/source/afx/ce/afxModel.cpp

+ 1 - 1
Engine/source/T3D/debris.cpp

@@ -305,7 +305,7 @@ void DebrisData::initPersistFields()
    addGroup("Particle Effects");
    addGroup("Particle Effects");
       addField("emitters",             TYPEID< ParticleEmitterData >(),  Offset(emitterList,    DebrisData), DDC_NUM_EMITTERS, 
       addField("emitters",             TYPEID< ParticleEmitterData >(),  Offset(emitterList,    DebrisData), DDC_NUM_EMITTERS, 
          "@brief List of particle emitters to spawn along with this debris object.\n\nThese are optional.  You could have Debris made up of only a shape.\n");
          "@brief List of particle emitters to spawn along with this debris object.\n\nThese are optional.  You could have Debris made up of only a shape.\n");
-   addGroup("Particle Effects");
+   endGroup("Particle Effects");
    addGroup("Datablocks");
    addGroup("Datablocks");
    addField("explosion",            TYPEID< ExplosionData >(),   Offset(explosion,           DebrisData), 
    addField("explosion",            TYPEID< ExplosionData >(),   Offset(explosion,           DebrisData), 
       "@brief ExplosionData to spawn along with this debris object.\n\nThis is optional as not all Debris explode.\n");
       "@brief ExplosionData to spawn along with this debris object.\n\nThis is optional as not all Debris explode.\n");

+ 1 - 1
Engine/source/afx/ce/afxModel.cpp

@@ -175,7 +175,7 @@ void afxModelData::initPersistFields()
    docsURL;
    docsURL;
    addGroup("Shapes");
    addGroup("Shapes");
       INITPERSISTFIELD_SHAPEASSET(Shape, afxModelData, "The name of a .dts format file to use for the model.");
       INITPERSISTFIELD_SHAPEASSET(Shape, afxModelData, "The name of a .dts format file to use for the model.");
-   addGroup("Shapes");
+   endGroup("Shapes");
 
 
    addGroup("Animation");
    addGroup("Animation");
       addField("sequence",              TypeString, myOffset(sequence),
       addField("sequence",              TypeString, myOffset(sequence),