Преглед изворни кода

Ensure every single mesh, light, armature, & camera are all exported
based on the same frame. Mesh & armature were being define out of sync
depending on whether there was a frame 0 or not.

jeff пре 9 година
родитељ
комит
8435d9c289
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Exporters/Blender/io_export_babylon.py

+ 1 - 0
Exporters/Blender/io_export_babylon.py

@@ -355,6 +355,7 @@ class Main(bpy.types.Operator, bpy_extras.io_utils.ExportHelper):
 
             # Lamp / shadow Generator pass; meshesAnNodes complete & forceParents included
             for object in [object for object in scene.objects]:
+                scene.frame_set(currentFrame)
                 if object.type == 'LAMP':
                     if object.is_visible(scene): # no isInSelectedLayer() required, is_visible() handles this for them
                         bulb = Light(object)