mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
CURA-5128 cleanup .gz and only leave .gcode.gz as Cura and Uranium now accept extensions with multiple periods
This commit is contained in:
parent
a0badf121a
commit
c2888529cb
3 changed files with 8 additions and 4 deletions
|
@ -1625,8 +1625,13 @@ class CuraApplication(QtApplication):
|
|||
node.setName(os.path.basename(filename))
|
||||
self.getBuildVolume().checkBoundsAndUpdate(node)
|
||||
|
||||
extension = os.path.splitext(filename)[1]
|
||||
if extension.lower() in self._non_sliceable_extensions:
|
||||
is_non_sliceable = False
|
||||
filename_lower = filename.lower()
|
||||
for extension in self._non_sliceable_extensions:
|
||||
if filename_lower.endswith(extension):
|
||||
is_non_sliceable = True
|
||||
break
|
||||
if is_non_sliceable:
|
||||
self.callLater(lambda: self.getController().setActiveView("SimulationView"))
|
||||
|
||||
block_slicing_decorator = BlockSlicingDecorator()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue