Browse Source

moar xform

pull/6/head
Adam Johnson 11 years ago
parent
commit
bd655475f5
  1. 8
      korman/exporter/convert.py

8
korman/exporter/convert.py

@ -125,10 +125,10 @@ class Exporter:
ci = ci.object ci = ci.object
# Now we have the "fun" work of filling in the CI # Now we have the "fun" work of filling in the CI
ci.worldToLocal = utils.matrix44(bo.matrix_basis) ci.localToWorld = utils.matrix44(bo.matrix_basis)
ci.localToWorld = ci.worldToLocal.inverse() ci.worldToLocal = ci.localToWorld.inverse()
ci.parentToLocal = utils.matrix44(bo.matrix_local) ci.localToParent = utils.matrix44(bo.matrix_local)
ci.localToParent = ci.parentToLocal.inverse() ci.parentToLocal = ci.localToParent.inverse()
def _export_scene_objects(self): def _export_scene_objects(self):
for bl_obj in self._objects: for bl_obj in self._objects:

Loading…
Cancel
Save