Преглед на файлове

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 години
родител
ревизия
0d3bd8b69b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py

+ 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"  :