Browse Source

Fixed bug with scale P2B synchronisation.

enn0x 14 years ago
parent
commit
05ff620572
2 changed files with 2 additions and 2 deletions
  1. 1 1
      panda/src/bullet/bullet_utils.cxx
  2. 1 1
      panda/src/bullet/bullet_utils.h

+ 1 - 1
panda/src/bullet/bullet_utils.cxx

@@ -137,7 +137,7 @@ CPT(TransformState) btTrans_to_TransformState(const btTransform &trans, const LV
 //     Function: TransformState_to_btTrans
 //  Description: 
 ////////////////////////////////////////////////////////////////////
-btTransform TransformState_to_btTrans(CPT(TransformState) &ts) {
+btTransform TransformState_to_btTrans(CPT(TransformState) ts) {
 
   ts = ts->set_scale(1.0);
 

+ 1 - 1
panda/src/bullet/bullet_utils.h

@@ -46,7 +46,7 @@ EXPCL_PANDABULLET CPT(TransformState) btTrans_to_TransformState(
   const LVecBase3f &scale=LVecBase3f(1.0f, 1.0f, 1.0f));
 
 EXPCL_PANDABULLET btTransform TransformState_to_btTrans(
-  CPT(TransformState) &ts);
+  CPT(TransformState) ts);
 
 // UpAxis
 BEGIN_PUBLISH