From 56c39bd493ec18a70ad99c5b58ca3372f2170f29 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Thu, 6 Sep 2018 23:38:30 +0300 Subject: [PATCH] ArrayFilter: fix reference placement support --- lattice2ArrayFilter.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lattice2ArrayFilter.py b/lattice2ArrayFilter.py index 46ab0fd..bf38671 100644 --- a/lattice2ArrayFilter.py +++ b/lattice2ArrayFilter.py @@ -70,6 +70,20 @@ class LatticeArrayFilter(lattice2BaseFeature.LatticeFeature): obj.Proxy = self + def updateReadonlyness(self, selfobj, bypass_set = set()): + my_hidden = set([ + 'ReferencePlacement', + 'ReferencePlacementLink', + 'ReferencePlacementLinkIndex', + ]) + super(LatticeArrayFilter, self).updateReadonlyness(selfobj, bypass_set | my_hidden) + for prop in my_hidden: + if prop in bypass_set: continue + if hasattr(selfobj, prop): + selfobj.setEditorMode(prop, 2) + + def recomputeReferencePlm(self, selfobj, selfplacements): + pass #suppress standard refplm recompute def derivedExecute(self,obj): #validity check