Fix rigid body params

This commit is contained in:
Lubos Lenco 2016-02-15 14:05:56 +01:00
parent e2ab26a8f3
commit b5e5334fb1

View file

@ -2054,9 +2054,8 @@ class ArmoryExporter(bpy.types.Operator, ExportHelper):
body_mass = rb.mass
x = Object()
x.type = 'Script'
x.class_name = 'RigidBody;' + str(body_mass) + \
';' + shape + \
";" + str(rb.friction)
x.class_name = 'RigidBody'
x.parameters = [body_mass, shape, rb.friction]
o.traits.append(x)
def cb_export_camera(self, object, o):