mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-30 18:15:59 +08:00
Merge branch '3.6'
This commit is contained in:
commit
e2e08879d7
@ -140,7 +140,7 @@ class SettingVisibilityPresetsModel(QObject):
|
|||||||
item_to_set = self._active_preset_item
|
item_to_set = self._active_preset_item
|
||||||
if matching_preset_item is None:
|
if matching_preset_item is None:
|
||||||
# The new visibility setup is "custom" should be custom
|
# The new visibility setup is "custom" should be custom
|
||||||
if self._active_preset_item.presetId == "custom":
|
if self._active_preset_item is None or self._active_preset_item.presetId == "custom":
|
||||||
# We are already in custom, just save the settings
|
# We are already in custom, just save the settings
|
||||||
self._preferences.setValue("cura/custom_visible_settings", visibility_string)
|
self._preferences.setValue("cura/custom_visible_settings", visibility_string)
|
||||||
else:
|
else:
|
||||||
|
@ -369,6 +369,11 @@ class PrintInformation(QObject):
|
|||||||
else:
|
else:
|
||||||
self._base_name = ""
|
self._base_name = ""
|
||||||
|
|
||||||
|
# Strip the old "curaproject" extension from the name
|
||||||
|
OLD_CURA_PROJECT_EXT = ".curaproject"
|
||||||
|
if self._base_name.endswith(OLD_CURA_PROJECT_EXT):
|
||||||
|
self._base_name = self._base_name[:len(self._base_name) - len(OLD_CURA_PROJECT_EXT)]
|
||||||
|
|
||||||
self._updateJobName()
|
self._updateJobName()
|
||||||
|
|
||||||
@pyqtProperty(str, fset = setBaseName, notify = baseNameChanged)
|
@pyqtProperty(str, fset = setBaseName, notify = baseNameChanged)
|
||||||
|
@ -142,6 +142,12 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
|||||||
controller = Application.getInstance().getController()
|
controller = Application.getInstance().getController()
|
||||||
root = controller.getScene().getRoot()
|
root = controller.getScene().getRoot()
|
||||||
if self._node is None or controller.isToolOperationActive() or not self.__isDescendant(root, self._node):
|
if self._node is None or controller.isToolOperationActive() or not self.__isDescendant(root, self._node):
|
||||||
|
# If the tool operation is still active, we need to compute the convex hull later after the controller is
|
||||||
|
# no longer active.
|
||||||
|
if controller.isToolOperationActive():
|
||||||
|
self.recomputeConvexHullDelayed()
|
||||||
|
return
|
||||||
|
|
||||||
if self._convex_hull_node:
|
if self._convex_hull_node:
|
||||||
self._convex_hull_node.setParent(None)
|
self._convex_hull_node.setParent(None)
|
||||||
self._convex_hull_node = None
|
self._convex_hull_node = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user