From 3e08e54c74d1a8e860a9131bffe8be4ca2a53ab7 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Mon, 15 Aug 2016 01:39:24 +0300 Subject: [PATCH] Linear array: fix read-onlyness of Point It was not editable, when Link was filled but PointIsDriven was set to false. --- lattice2LinearArray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lattice2LinearArray.py b/lattice2LinearArray.py index a3f1340..5aa94f6 100644 --- a/lattice2LinearArray.py +++ b/lattice2LinearArray.py @@ -80,7 +80,7 @@ class LinearArray(lattice2BaseFeature.LatticeFeature): def updateReadonlyness(self, obj): obj.setEditorMode("Dir", 1 if (obj.Link and obj.DirIsDriven) else 0) - obj.setEditorMode("Point", 1 if (obj.Link and not obj.PointIsDriven) else 0) + obj.setEditorMode("Point", 1 if (obj.Link and obj.PointIsDriven) else 0) obj.setEditorMode("DirIsDriven", 0 if obj.Link else 1) obj.setEditorMode("PointIsDriven", 0 if obj.Link else 1) obj.setEditorMode("DrivenProperty", 0 if obj.Link else 1)