From b517ed7fbfe73853d567d6b2abafb6c4e9c4dad8 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sun, 10 Jan 2016 01:42:59 +0300 Subject: [PATCH] ParaSeries: fix sometimes getting shape from wrong object --- lattice2ParaSeries.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lattice2ParaSeries.py b/lattice2ParaSeries.py index 555f749..38172f7 100644 --- a/lattice2ParaSeries.py +++ b/lattice2ParaSeries.py @@ -119,7 +119,8 @@ class LatticeParaSeries(lattice2BaseFeature.LatticeFeature): doc2 = App.newDocument() object_in_doc2 = None # define the variable, to prevent del() in finally block from raising another error try: - object_in_doc2 = doc2.copyObject(selfobj.Object, True) + doc2.copyObject(selfobj.Object, True) + object_in_doc2 = doc2.getObject(selfobj.Object.Name) if bGui: progress.setValue(1) refstr = selfobj.ParameterRef #dict(selfobj.ExpressionEngine)["ParameterRef"]