Skip to content

Commit

Permalink
use normal instead of direction element for light as of DTD
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Jun 27, 2017
1 parent 9db8425 commit c53115f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io_ogre/ogre/scene.py
Expand Up @@ -535,7 +535,7 @@ def dot_scene_node_export( ob, path, doc=None, rex=None,

if ob.data.type in ('SPOT', 'SUN'):
vector = swap(mathutils.Euler.to_matrix(ob.rotation_euler)[2])
a = doc.createElement('direction')
a = doc.createElement('normal')
l.appendChild(a)
a.setAttribute('x',str(round(-vector[0],3)))
a.setAttribute('y',str(round(-vector[1],3)))
Expand Down

0 comments on commit c53115f

Please sign in to comment.