Ensure that inclusion of any entity/component stuff is properly bracketed with the preprocessor check.

This commit is contained in:
Areloch 2016-05-15 10:11:46 -05:00
parent 749ac4efc2
commit b04ad52b5d
7 changed files with 75 additions and 6 deletions

View file

@ -28,8 +28,11 @@
#include "gui/editor/inspector/dynamicGroup.h"
#include "gui/containers/guiScrollCtrl.h"
#include "gui/editor/inspector/customField.h"
#ifdef TORQUE_EXPERIMENTAL_EC
#include "gui/editor/inspector/entityGroup.h"
#include "gui/editor/inspector/mountingGroup.h"
#endif
IMPLEMENT_CONOBJECT(GuiInspector);
@ -585,7 +588,8 @@ void GuiInspector::refresh()
mGroups.push_back(general);
addObject(general);
//Behavior inspector group
#ifdef TORQUE_EXPERIMENTAL_EC
//Entity inspector group
if (mTargets.first()->getClassRep()->isSubclassOf("Entity"))
{
GuiInspectorEntityGroup *components = new GuiInspectorEntityGroup("Components", this);
@ -605,6 +609,7 @@ void GuiInspector::refresh()
addObject(mounting);
}
}
#endif
// Create the inspector groups for static fields.