Parcourir la source

bullet: Write saved _up value for cylinder shapes

        - Missed in previous commit.

Signed-off-by: deflected <[email protected]>
deflected il y a 7 ans
Parent
commit
733085e38e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      panda/src/bullet/bulletCylinderShape.cxx

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

@@ -151,7 +151,7 @@ write_datagram(BamWriter *manager, Datagram &dg) {
 
   // parameters to serialize: radius, height, up
   _half_extents.write_datagram(dg);
-  dg.add_int8((int8_t)_shape->getUpAxis());
+  dg.add_int8((int8_t)_up);
 }
 
 /**