Просмотр исходного кода

Fixed ragdoll bounding box not updating.

Lasse Öörni 13 лет назад
Родитель
Сommit
7331120bac
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      Engine/Graphics/Drawable.cpp

+ 4 - 5
Engine/Graphics/Drawable.cpp

@@ -328,13 +328,12 @@ void Drawable::OnNodeSet(Node* node)
 
 
 void Drawable::OnMarkedDirty(Node* node)
 void Drawable::OnMarkedDirty(Node* node)
 {
 {
+    worldBoundingBoxDirty_ = true;
+    if (octant_ && !reinsertionQueued_)
+        octant_->GetRoot()->QueueReinsertion(this);
+    
     if (node == node_)
     if (node == node_)
-    {
-        worldBoundingBoxDirty_ = true;
         zone_.Reset();
         zone_.Reset();
-        if (octant_ && !reinsertionQueued_)
-            octant_->GetRoot()->QueueReinsertion(this);
-    }
 }
 }
 
 
 void Drawable::AddToOctree()
 void Drawable::AddToOctree()