mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
CML2 fix for pre-loaded configurations to be written without visibility check.
Symbols loaded from old configuration were written back without visibility check.
This commit is contained in:
@@ -478,7 +478,8 @@ class CMLSystem(cml.CMLRulebase):
|
||||
|
||||
def saveable(self, node, mode="normal"):
|
||||
"Should this symbol be visible in the configuration written out?"
|
||||
if node.setcount > 0:
|
||||
# Fix for loaded symbols from old configuration being written back without visibility check.
|
||||
if node.setcount > 0 and self.is_visible(node):
|
||||
return 1
|
||||
if node.is_derived() and (not node.visibility or cml.evaluate(node.visibility)):
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user