fix TORQUE_TOOLS = off compilation

This commit is contained in:
AzaezelX 2022-06-13 12:38:08 -05:00
parent 9836f6eb30
commit 4a7104e5ea
38 changed files with 80 additions and 56 deletions

View file

@ -115,9 +115,10 @@ ReflectionProbe::ReflectionProbe()
mStaticCubemap = NULL;
mProbeUniqueID = "";
#ifdef TORQUE_TOOLS
mEditorShapeInst = NULL;
mEditorShape = NULL;
#endif
mRefreshRateMS = 200;
mDynamicLastBakeMS = 0;
@ -135,9 +136,11 @@ ReflectionProbe::ReflectionProbe()
ReflectionProbe::~ReflectionProbe()
{
#ifdef TORQUE_TOOLS
if (mEditorShapeInst)
SAFE_DELETE(mEditorShapeInst);
#endif
if (mReflectionModeType == StaticCubemap && mStaticCubemap)
mStaticCubemap->deleteObject();
}