Browse Source

init reflection probes

AzaezelX 4 years ago
parent
commit
33e78fd8a8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Engine/source/T3D/lighting/reflectionProbe.cpp

+ 2 - 1
Engine/source/T3D/lighting/reflectionProbe.cpp

@@ -111,6 +111,7 @@ ReflectionProbe::ReflectionProbe()
 
 
    mUseHDRCaptures = true;
    mUseHDRCaptures = true;
 
 
+   mCubemapName = StringTable->EmptyString();
    mStaticCubemap = NULL;
    mStaticCubemap = NULL;
    mProbeUniqueID = "";
    mProbeUniqueID = "";
 
 
@@ -259,7 +260,7 @@ bool ReflectionProbe::_setReflectionMode(void *object, const char *index, const
    {
    {
       //Clear our cubemap if we changed it to be baked, just for cleanliness
       //Clear our cubemap if we changed it to be baked, just for cleanliness
       probe->mReflectionModeType = BakedCubemap;
       probe->mReflectionModeType = BakedCubemap;
-      probe->mCubemapName = "";
+      probe->mCubemapName = StringTable->EmptyString();
    }
    }
 
 
    probe->setMaskBits(StaticDataMask);
    probe->setMaskBits(StaticDataMask);