Skip to content

Commit

Permalink
do no longer invert object matrices for motion blur
Browse files Browse the repository at this point in the history
  • Loading branch information
Theverat committed Jan 13, 2018
1 parent 121ec5d commit c8abacc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions export/motion_blur.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def convert(context, scene, objects, exported_objects):
for step in range(steps):
time = times[step]
matrix = matrix_steps[step]
invert = prefix != "scene.camera."
transformation = utils.matrix_to_list(matrix, scene, apply_worldscale=True, invert=invert)
transformation = utils.matrix_to_list(matrix, scene, apply_worldscale=True)
definitions = {
"motion.%d.time" % step: time,
"motion.%d.transformation" % step: transformation,
Expand Down Expand Up @@ -111,7 +110,6 @@ def _append_object_matrices(objects, exported_objects, matrices, step):
prefix = "scene.lights." + luxcore_name + "."

matrix = obj.matrix_world.copy()
# Note: object matrices need to be inverted
_append_matrix(matrices, prefix, matrix, step)
except KeyError:
# This is not a problem, objects are skipped during epxort for various reasons
Expand Down

0 comments on commit c8abacc

Please sign in to comment.