1. FlorianGeorge
  2. Ogitor_default

Commits

Shockeye  committed 0049163

Made ModularZones behave properly in node hierarchy
-Child nodes, lights are reloaded correctly as children of zone
-Warns about deleting zone & children

  • Participants
  • Parent commits f08e18a
  • Branches default

Comments (0)

Files changed (2)

File Plugins/OgModularZone/ModularZoneEditor.h

View file
  • Ignore whitespace
     {
         friend class ModularZoneFactory;
     public:
-		virtual bool isNodeType() {return false;};//Prevent CNodeEditor descendants to behave as nodes
+		virtual bool isNodeType() {return true;};
         /** @copydoc CBaseEditor::load() */
         virtual bool      load(bool async = true);
         /** @copydoc CBaseEditor::unLoad() */

File Plugins/OgModularZone/ModularZoneFactory.cpp

View file
  • Ignore whitespace
 															mZoneListWidget(0)
 {
     mTypeName = "Modular Zone Object";
-    mEditorType = ETYPE_CUSTOM_MANAGER ;//was ETYPE_MOVABLE. this should make saving work
+    mEditorType = ETYPE_NODE;
     mAddToObjectList = false;//use the dragndrop widget
     mRequirePlacement = true;
     mIcon = "../Plugins/Icons/zone.svg";//"Icons/zone.svg";