فهرست منبع

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