mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:56:01 +08:00
Merge remote-tracking branch 'origin/4.1' into CURA-6483_fix_add_by_ip
This commit is contained in:
commit
99ec1761e9
@ -256,10 +256,7 @@ class StartSliceJob(Job):
|
|||||||
self._buildGlobalInheritsStackMessage(stack)
|
self._buildGlobalInheritsStackMessage(stack)
|
||||||
|
|
||||||
# Build messages for extruder stacks
|
# Build messages for extruder stacks
|
||||||
# Send the extruder settings in the order of extruder positions. Somehow, if you send e.g. extruder 3 first,
|
for extruder_stack in global_stack.extruderList:
|
||||||
# then CuraEngine can slice with the wrong settings. This I think should be fixed in CuraEngine as well.
|
|
||||||
extruder_stack_list = sorted(list(global_stack.extruders.items()), key = lambda item: int(item[0]))
|
|
||||||
for _, extruder_stack in extruder_stack_list:
|
|
||||||
self._buildExtruderMessage(extruder_stack)
|
self._buildExtruderMessage(extruder_stack)
|
||||||
|
|
||||||
for group in filtered_object_groups:
|
for group in filtered_object_groups:
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
#Copyright (c) 2019 Ultimaker B.V.
|
#Copyright (c) 2019 Ultimaker B.V.
|
||||||
#Cura is released under the terms of the LGPLv3 or higher.
|
#Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from UM.Logger import Logger
|
||||||
|
try:
|
||||||
|
from . import UFPReader
|
||||||
|
except ImportError:
|
||||||
|
Logger.log("w", "Could not import UFPReader; libCharon may be missing")
|
||||||
|
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
from . import UFPReader
|
|
||||||
|
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
|
||||||
@ -21,6 +26,9 @@ def getMetaData():
|
|||||||
|
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
|
if "UFPReader.UFPReader" not in sys.modules:
|
||||||
|
return {}
|
||||||
|
|
||||||
app.addNonSliceableExtension(".ufp")
|
app.addNonSliceableExtension(".ufp")
|
||||||
return {"mesh_reader": UFPReader.UFPReader()}
|
return {"mesh_reader": UFPReader.UFPReader()}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user