mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:55:54 +08:00
3MF_Reader: Optionally use cElementTree
This should make reading the XML faster
This commit is contained in:
parent
d96ce760f8
commit
4dbe895c15
@ -19,7 +19,10 @@ catalog = i18nCatalog("cura")
|
|||||||
import math
|
import math
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
import xml.etree.ElementTree as ET
|
try:
|
||||||
|
import xml.etree.cElementTree as ET
|
||||||
|
except ImportError:
|
||||||
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
## Base implementation for reading 3MF files. Has no support for textures. Only loads meshes!
|
## Base implementation for reading 3MF files. Has no support for textures. Only loads meshes!
|
||||||
class ThreeMFReader(MeshReader):
|
class ThreeMFReader(MeshReader):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user