()
| 241 | |
| 242 | |
| 243 | def import_scene_gltf(): |
| 244 | if not os.path.isfile(SCENE_GLTF): |
| 245 | raise FileNotFoundError(f"glTF not found at {SCENE_GLTF}") |
| 246 | path = sanitize_gltf_for_blender(SCENE_GLTF) if NEEDS_DDS_SANITIZE else SCENE_GLTF |
| 247 | # Import glTF. The Blender importer re-maps +Y -> +Z by default; we |
| 248 | # *want* that because we'll convert our own camera/sun vectors into |
| 249 | # Blender's Z-up space below, and everything stays consistent. |
| 250 | bpy.ops.import_scene.gltf(filepath=path) |
| 251 | |
| 252 | |
| 253 | def setup_world_hdr(): |
no test coverage detected