Browse Source

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 years ago
parent
commit
2dd1c8b040
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Engine/Graphics/View.cpp

+ 3 - 1
Engine/Graphics/View.cpp

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