mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
3MF_Reader: Optionally use cElementTree
This should make reading the XML faster
This commit is contained in:
parent
d96ce760f8
commit
4dbe895c15
1 changed files with 4 additions and 1 deletions
|
@ -19,7 +19,10 @@ catalog = i18nCatalog("cura")
|
|||
import math
|
||||
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!
|
||||
class ThreeMFReader(MeshReader):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue