Răsfoiți Sursa

Blender camera export fix

Export all cameras in `generate_cameras`, not just the selected one.
Joost Faassen 11 ani în urmă
părinte
comite
0a8472f8a7

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

@@ -2081,7 +2081,7 @@ def generate_cameras(data):
     if data["use_cameras"]:
 
         cams = bpy.data.objects
-        cams = [ob for ob in cams if (ob.type == 'CAMERA' and ob.select)]
+        cams = [ob for ob in cams if (ob.type == 'CAMERA')]
 
         if not cams:
             camera = DEFAULTS["camera"]