Ability to explode models and minor improvements

This commit is contained in:
Yeicor
2025-08-04 17:47:22 +02:00
parent 021cfd89a1
commit e0503983f1
5 changed files with 115 additions and 15 deletions

View File

@@ -117,7 +117,7 @@ def image_to_gltf(source: str | bytes, center: any, width: Optional[float] = Non
# Handle arguments
if name is None:
if isinstance(source, str):
name = os.path.basename(source)
name, _ = os.path.splitext(os.path.basename(source))
else:
hasher = hashlib.md5()
hasher.update(source)