Преглед изворни кода

Moved UpdateGeometries() which actually performs animated model skinning into View::Render() to allow for custom animation control as a response to E_POSTRENDERUPDATE event.

Lasse Öörni пре 13 година
родитељ
комит
2dd1c8b040
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      Engine/Graphics/View.cpp

+ 3 - 1
Engine/Graphics/View.cpp

@@ -423,7 +423,6 @@ void View::Update(const FrameInfo& frame)
     
     GetDrawables();
     GetBatches();
-    UpdateGeometries();
 }
 
 void View::Render()
@@ -431,6 +430,9 @@ void View::Render()
     if (!octree_ || !camera_)
         return;
     
+    // Actually update geometry data now
+    UpdateGeometries();
+    
     // Allocate screen buffers for post-processing and blitting as necessary
     AllocateScreenBuffers();