Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2019-09-06 10:51:26 +0300
committerJaime van Kessel <nallath@gmail.com>2019-09-06 10:51:26 +0300
commit0235ad69305096c4d842c42cacb891cd1dcf852b (patch)
tree3b28efd788ff490195bbff6ff47cc8a21f48b6f3 /plugins/TrimeshReader
parente02f0f1480551b5131c94f4741ba36307c70d9eb (diff)
Check gltf extension against lower() filename
CURA-6739
Diffstat (limited to 'plugins/TrimeshReader')
-rw-r--r--plugins/TrimeshReader/TrimeshReader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TrimeshReader/TrimeshReader.py b/plugins/TrimeshReader/TrimeshReader.py
index 7d1f182720..91f8423579 100644
--- a/plugins/TrimeshReader/TrimeshReader.py
+++ b/plugins/TrimeshReader/TrimeshReader.py
@@ -89,7 +89,7 @@ class TrimeshReader(MeshReader):
# try to figure out the format, but for GLTF, it loads it as a binary file with flags "rb", and the json.load()
# doesn't like it. For some reason, this seems to happen with 3.5.7, but not 3.7.1. Below is a workaround to
# pass a file object that has been opened with "r" instead "rb" to load a GLTF file.
- if file_name.endswith(".gltf"):
+ if file_name.lower().endswith(".gltf"):
mesh_or_scene = trimesh.load(open(file_name, "r", encoding = "utf-8"), file_type = "gltf")
else:
mesh_or_scene = trimesh.load(file_name)