Adds the necessary ifdef flags to re-enable the ability to build with tools disabled

This commit is contained in:
JeffR 2025-05-17 18:41:15 -05:00
parent a0838b58f2
commit cac068d2c5
6 changed files with 14 additions and 3 deletions

View file

@ -102,6 +102,7 @@ ConsoleSetType(TypeSoundControls)
{
}
#ifdef TORQUE_TOOLS
IMPLEMENT_CONOBJECT(GuiInspectorTypeSoundControls);
ConsoleDocClass(GuiInspectorTypeSoundControls,
"@brief Inspector field type for Controlling playback of sounds\n\n"
@ -201,7 +202,7 @@ bool GuiInspectorTypeSoundControls::updateRects()
return resized;
}
#endif
//-----------------------------------------------------------------------------

View file

@ -42,6 +42,7 @@ class SFXSource;
class SFXTrack;
DefineConsoleType(TypeSoundControls, bool)
#ifdef TORQUE_TOOLS
class GuiInspectorTypeSoundControls : public GuiInspectorField
{
typedef GuiInspectorField Parent;
@ -56,6 +57,7 @@ public:
GuiControl* constructEditControl() override;
bool updateRects() override;
};
#endif
//RDTODO: make 3D sound emitters yield their source when being culled
/// The SFXEmitter is used to place 2D or 3D sounds into a