Browse Source

Update AnimationSet2D.cpp

set memory usage when loading spine animation data
yushli 10 years ago
parent
commit
1f8db177e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Urho2D/AnimationSet2D.cpp

+ 1 - 1
Source/Urho3D/Urho2D/AnimationSet2D.cpp

@@ -233,7 +233,7 @@ bool AnimationSet2D::BeginLoadSpine(Deserializer& source)
     jsonData_ = new char[size + 1];
     source.Read(jsonData_, size);
     jsonData_[size] = '\0';
-
+    SetMemoryUse(size);
     return true;
 }