mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
Solved merge conflict
This commit is contained in:
commit
aa3cd8ba9d
5 changed files with 22 additions and 7 deletions
|
@ -988,11 +988,21 @@ class MachineManager(QObject):
|
||||||
|
|
||||||
def activeMaterialsCompatible(self):
|
def activeMaterialsCompatible(self):
|
||||||
# check material - variant compatibility
|
# check material - variant compatibility
|
||||||
|
result = True
|
||||||
|
machine_has_buildplate = Util.parseBool(self._global_container_stack.getMetaDataEntry("has_variant_buildplates", False))
|
||||||
if Util.parseBool(self._global_container_stack.getMetaDataEntry("has_materials", False)):
|
if Util.parseBool(self._global_container_stack.getMetaDataEntry("has_materials", False)):
|
||||||
for position, extruder in self._global_container_stack.extruders.items():
|
for position, extruder in self._global_container_stack.extruders.items():
|
||||||
if extruder.isEnabled and not extruder.material.getMetaDataEntry("compatible"):
|
if extruder.isEnabled and not extruder.material.getMetaDataEntry("compatible"):
|
||||||
return False
|
result = False
|
||||||
return True
|
break
|
||||||
|
if machine_has_buildplate:
|
||||||
|
buildplate_compatibility_dict = extruder.material.getMetaDataEntry("buildplate_compatible")
|
||||||
|
if buildplate_compatibility_dict:
|
||||||
|
buildplate_name = self._global_container_stack.variant.getName()
|
||||||
|
result = buildplate_compatibility_dict.get(buildplate_name, True)
|
||||||
|
if not result:
|
||||||
|
break
|
||||||
|
return result
|
||||||
|
|
||||||
## Update current quality type and machine after setting material
|
## Update current quality type and machine after setting material
|
||||||
def _updateQualityWithMaterial(self):
|
def _updateQualityWithMaterial(self):
|
||||||
|
|
|
@ -244,6 +244,7 @@ Cura.MachineAction
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
text: machineExtruderCountProvider.properties.description
|
text: machineExtruderCountProvider.properties.description
|
||||||
|
visible: extruderCountModel.count >= 2
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
|
|
|
@ -173,7 +173,10 @@ class PostProcessingPlugin(QObject, Extension):
|
||||||
Logger.log("d", "Creating post processing plugin view.")
|
Logger.log("d", "Creating post processing plugin view.")
|
||||||
|
|
||||||
## Load all scripts in the scripts folders
|
## Load all scripts in the scripts folders
|
||||||
for root in [PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"), Resources.getStoragePath(Resources.Preferences)]:
|
# The PostProcessingPlugin path is for built-in scripts.
|
||||||
|
# The Resources path is where the user should store custom scripts.
|
||||||
|
# The Preferences path is legacy, where the user may previously have stored scripts.
|
||||||
|
for root in [PluginRegistry.getInstance().getPluginPath("PostProcessingPlugin"), Resources.getStoragePath(Resources.Resources), Resources.getStoragePath(Resources.Preferences)]:
|
||||||
path = os.path.join(root, "scripts")
|
path = os.path.join(root, "scripts")
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -617,7 +617,8 @@ class XmlMaterialProfile(InstanceContainer):
|
||||||
|
|
||||||
from cura.Machines.VariantManager import VariantType
|
from cura.Machines.VariantManager import VariantType
|
||||||
variant_manager = CuraApplication.getInstance().getVariantManager()
|
variant_manager = CuraApplication.getInstance().getVariantManager()
|
||||||
variant_node = variant_manager.getVariantNode(machine_id, buildplate_id)
|
variant_node = variant_manager.getVariantNode(machine_id, buildplate_id,
|
||||||
|
variant_type = VariantType.BUILD_PLATE)
|
||||||
if not variant_node:
|
if not variant_node:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue