Skip to content

Commit 3d2423a

Browse files
committed
add deprecation warning message
1 parent d102282 commit 3d2423a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

genesis/engine/mesh.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,13 @@ def from_morph_surface(cls, morph, surface=None):
343343
if morph.is_format(gs.options.morphs.MESH_FORMATS):
344344
meshes = mu.parse_mesh_trimesh(morph.file, morph.group_by_material, morph.scale, surface)
345345
elif morph.is_format(gs.options.morphs.GLTF_FORMATS):
346+
347+
if not morph.parse_glb_with_trimesh:
348+
gs.logger.warning(
349+
"GLTF is using y-up while Genesis uses z-up. Please set parse_glb_with_zup=True"
350+
" in morph options if you find the mesh is 90-degree rotated. We will set parse_glb_with_zup=True"
351+
" and rotate glb mesh by default later and gradually enforce this option."
352+
)
346353
if morph.parse_glb_with_trimesh:
347354
meshes = mu.parse_mesh_trimesh(morph.file, morph.group_by_material, morph.scale, surface)
348355
if morph.parse_glb_with_zup:

0 commit comments

Comments
 (0)