Browse Source

Blender exporter normal bug fix

Global rotation is not taken into account for normals in loader.
This leads to all objects/cameras/lights in the scene being rotated correctly,
but with normals pointing into the wrong direction.

Not applying rotation at all fixes this problem
j.faassen 12 năm trước cách đây
mục cha
commit
0d3bd8b69b

+ 1 - 1
utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py

@@ -42,7 +42,7 @@ DEFAULTS = {
 "bgalpha" : 1.0,
 
 "position" : [0, 0, 0],
-"rotation" : [-math.pi/2, 0, 0],
+"rotation" : [0, 0, 0],
 "scale"    : [1, 1, 1],
 
 "camera"  :