Sfoglia il codice sorgente

*** empty log message ***

David Rose 25 anni fa
parent
commit
897fdfb0c6
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      panda/src/physics/actorNode.cxx

+ 1 - 3
panda/src/physics/actorNode.cxx

@@ -91,9 +91,7 @@ transform_changed(NodeRelation *arc) {
 
   // extract the orientation
   if (_mass_center->get_oriented() == true) {
-    LOrientationf orientation;
-    orientation.set(tt->get_matrix());
-
+    LOrientationf orientation(tt->get_matrix());
     _mass_center->set_orientation(orientation);
   }