Add a smidgen of documentation to the previous commit

CURA-2173
This commit is contained in:
fieldOfView 2016-08-25 14:08:37 +02:00
parent 3ca7e2bb8d
commit 5119a7b6be

View file

@ -241,6 +241,8 @@ class MachineManager(QObject):
def _onPropertyChanged(self, key, property_name):
# HACK CURA-2173
if property_name == "value":
# If a setting is not settable per extruder but at the same time settable per mesh, the engine needs a value in the extruder stack
# This is mainly the case for the "support_enable" setting.
if self._active_container_stack.getProperty(key, "settable_per_mesh") and not self._active_container_stack.getProperty(key, "settable_per_extruder"):
if self._active_container_stack and self._global_container_stack.getProperty("machine_extruder_count", "value") > 1:
new_value = self._global_container_stack.getProperty(key, "value")