浏览代码

*** empty log message ***

David Rose 25 年之前
父节点
当前提交
897fdfb0c6
共有 1 个文件被更改,包括 1 次插入3 次删除
  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);
   }