Browse Source

Skip physics collisionshape reloading, which causes crash at the moment.

Lasse Öörni 14 years ago
parent
commit
1f5d0e69a1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Bin/CoreData/Scripts/EditorScene.as

+ 5 - 0
Bin/CoreData/Scripts/EditorScene.as

@@ -157,6 +157,11 @@ void reloadResources()
     uint numResources = sceneResources.size();
     for (uint i = 0; i < numResources; ++i)
     {
+        // For now, skip physics for safety
+        // (Rigidbodies would need to be informed of the ODE collisionshape being blown away from under their feet)
+        if (sceneResources[i].getTypeName() == "CollisionShape")
+            continue;
+        
         // Material textures are not listed by getResourceRefs(), so have to handle them manually
         Material@ mat = cast<Material>(sceneResources[i]);
         if (mat !is null)