mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Opening the value of setting only if they are not in missing packages
CURA-10915
This commit is contained in:
parent
69bdcfa52f
commit
43fddcf012
1 changed files with 9 additions and 1 deletions
|
@ -1133,6 +1133,14 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
extruder_stack.userChanges.setProperty(key, "value", value)
|
extruder_stack.userChanges.setProperty(key, "value", value)
|
||||||
if parser is not None:
|
if parser is not None:
|
||||||
for key, value in parser["values"].items():
|
for key, value in parser["values"].items():
|
||||||
|
value_not_in_missing_package = True
|
||||||
|
if "PLUGIN" in value:
|
||||||
|
for package in self._dialog.missingPackages:
|
||||||
|
if (package['id']+"@"+package['package_version']) in value:
|
||||||
|
value_not_in_missing_package = False
|
||||||
|
Logger.log("w", f"Ignoring {key} value {value} from missing package")
|
||||||
|
|
||||||
|
if value_not_in_missing_package :
|
||||||
extruder_stack.userChanges.setProperty(key, "value", value)
|
extruder_stack.userChanges.setProperty(key, "value", value)
|
||||||
|
|
||||||
def _applyVariants(self, global_stack, extruder_stack_dict):
|
def _applyVariants(self, global_stack, extruder_stack_dict):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue