MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / import_scene_gltf

Function import_scene_gltf

tools/cycles_reference/render.py:243–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241
242
243def 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
253def setup_world_hdr():

Callers 1

mainFunction · 0.85

Calls 1

Tested by

no test coverage detected