From a5b154a31247fca4d55a10306ebfe3971c806b0e Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sun, 10 Jan 2016 03:56:34 +0300 Subject: [PATCH] ParaSeries: treat Recomputing when nested If recomputing a paraseries, enable recomputing of nested paraseries automatically. So that deeper paraseries may remain switched off, but becoming active when top-level paraseries is recomputing. --- lattice2ParaSeries.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lattice2ParaSeries.py b/lattice2ParaSeries.py index 38172f7..b514771 100644 --- a/lattice2ParaSeries.py +++ b/lattice2ParaSeries.py @@ -120,6 +120,16 @@ class LatticeParaSeries(lattice2BaseFeature.LatticeFeature): object_in_doc2 = None # define the variable, to prevent del() in finally block from raising another error try: doc2.copyObject(selfobj.Object, True) + + #if there are nested paraseries in the dependencies, make sure to enable them + for objd2 in doc2.Objects: + if hasattr(objd2,"Recomputing"): + try: + objd2.Recomputing = "Enabled" + objd2.purgeTouched() + except exception: + lattice2Executer.warning(selfobj,"Failed to enable recomputing of "+objd2.Name) + object_in_doc2 = doc2.getObject(selfobj.Object.Name) if bGui: progress.setValue(1)