소스 검색

fixed some typos

Found some typos to do with physics settings that are causing the exporter to fail when trying to export scene that uses physics settings
Remwrath 11 년 전
부모
커밋
8270684893
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      Exporters/Blender/io_tower_of_babel.py

+ 3 - 3
Exporters/Blender/io_tower_of_babel.py

@@ -1076,9 +1076,9 @@ class Mesh(FCurveAnimatable):
             file_handler.write(indent2 + '\tscene.enablePhysics();\n')
             file_handler.write(indent2 + '}\t')
             file_handler.write(indent2 + var + '.setPhysicsState({ impostor: ' + format_int(self.physicsImpostor) + 
-                                                               ', mass: ' + format_float(self.physicsMass) + 
-                                                               ', friction: ' + format_float(self.physicsFriction) +
-                                                               ', restitution: ' + self(self.physicsRestitution) + '});\n')
+                                                               ', mass: ' + format_f(self.physicsMass) + 
+                                                               ', friction: ' + format_f(self.physicsFriction) +
+                                                               ', restitution: ' + format_f(self.physicsRestitution) + '});\n')
 
         # Geometry
         if hasattr(self, 'skeletonId'):