Skip to content

Commit 540a606

Browse files
committed
Merge branch 'Development' into node-groups
2 parents 7f8a405 + 50e007c commit 540a606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BlenderMalt/MaltRenderEngine.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ def add_object(obj, matrix, id):
165165

166166
light = Scene.Light()
167167
light.color = tuple(obj.data.color * malt_light.strength)
168-
light.position = tuple(obj.matrix_world.translation)
169-
light.direction = tuple(obj.matrix_world.to_quaternion() @ Vector((0.0,0.0,-1.0)))
168+
light.position = tuple(matrix.translation)
169+
light.direction = tuple(matrix.to_quaternion() @ Vector((0.0,0.0,-1.0)))
170170
if malt_light.override_global_settings:
171171
light.sun_max_distance = malt_light.max_distance
172172
light.radius = malt_light.radius

0 commit comments

Comments
 (0)