Fix saving machine instances to the cura profile

CURA-340, see c79b7bdd7a
This commit is contained in:
fieldOfView 2016-06-06 08:39:38 +02:00
parent a948c7bcc6
commit b88f2847ef

View File

@ -271,7 +271,7 @@ class CuraApplication(QtApplication):
file_name = urllib.parse.quote_plus(stack.getId()) + ".stack.cfg"
stack_type = stack.getMetaDataEntry("type", None)
path = None
if not stack_type:
if not stack_type or stack_type == "machine":
path = Resources.getStoragePath(self.ResourceTypes.MachineStack, file_name)
elif stack_type == "extruder":
path = Resources.getStoragePath(self.ResourceTypes.ExtruderStack, file_name)