Browse Source

Fix the linked materials button.

Contributes to CURA-5682.
Diego Prado Gesto 6 years ago
parent
commit
9ba4c723f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resources/qml/Preferences/Materials/MaterialsView.qml

+ 1 - 1
resources/qml/Preferences/Materials/MaterialsView.qml

@@ -40,7 +40,7 @@ TabView
         {
             return ""
         }
-        var linkedMaterials = Cura.ContainerManager.getLinkedMaterials(base.currentItem.container_node, true);
+        var linkedMaterials = Cura.ContainerManager.getLinkedMaterials(base.currentMaterialNode, true);
         if (linkedMaterials.length == 0)
         {
             return ""