Browse Source

Another fix for local scaling in Bullet shapes.

enn0x 12 years ago
parent
commit
ba56763212
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/bullet/bulletBodyNode.cxx

+ 2 - 2
panda/src/bullet/bulletBodyNode.cxx

@@ -232,10 +232,10 @@ add_shape(BulletShape *shape, CPT(TransformState) ts) {
 
   _shapes.push_back(shape);
 
-  shape_changed();
-
   // Restore the local scaling again
   np.set_scale(scale);
+
+  shape_changed();
 }
 
 ////////////////////////////////////////////////////////////////////