Browse Source

Added inaccurate (source file size) memory use reporting to ParticleEffect & ParticleEffect2D, to avoid it being zero.

Lasse Öörni 10 years ago
parent
commit
73d7db3342

+ 2 - 0
Source/Urho3D/Graphics/ParticleEffect.cpp

@@ -279,6 +279,8 @@ bool ParticleEffect::BeginLoad(Deserializer& source)
         SetTextureFrames(animations);
     }
 
+    // Note: not accurate
+    SetMemoryUse(source.GetSize());
     return true;
 }
 

+ 2 - 0
Source/Urho3D/Urho2D/ParticleEffect2D.cpp

@@ -197,6 +197,8 @@ bool ParticleEffect2D::BeginLoad(Deserializer& source)
     rotationEnd_ = ReadFloat(rootElem, "rotationEnd");
     rotationEndVariance_ = ReadFloat(rootElem, "rotationEndVariance");
 
+    // Note: not accurate
+    SetMemoryUse(source.GetSize());
     return true;
 }