Don't use isinstance to check for extruder stack vs. global

Just use the metadata available.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-09-02 17:44:28 +02:00
parent 297b430712
commit a1e6ba615c
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -168,7 +168,7 @@ class QualityManagementModel(ListModel):
continue
extruder_stack = None
if isinstance(stack, ExtruderStack):
if stack.getMetaDataEntry("position") is not None:
extruder_stack = stack
new_changes = self._createQualityChanges(quality_container.getMetaDataEntry("quality_type"), unique_name, global_stack, extruder_stack)
container_manager._performMerge(new_changes, quality_changes_container, clear_settings = False)