From 08e3f0b0d7305b05fe290be41a5c01dbf877ad24 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Thu, 4 Jun 2020 10:54:25 -0500 Subject: [PATCH] Path: PathOpGui - Fix Base Geometry import feature for pre-existing operations --- src/Mod/Path/PathScripts/PathOpGui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathOpGui.py b/src/Mod/Path/PathScripts/PathOpGui.py index 91fc946909..02561a47ba 100644 --- a/src/Mod/Path/PathScripts/PathOpGui.py +++ b/src/Mod/Path/PathScripts/PathOpGui.py @@ -426,10 +426,11 @@ class TaskPanelBaseGeometryPage(TaskPanelPage): availableOps = list() ops = self.job.Operations.Group for op in ops: - if hasattr(op, 'Base') and op.Base.__len__() > 0: - availableOps.append(op.Label) + if hasattr(op, 'Base') and isinstance(op.Base, list): + if len(op.Base) > 0: + availableOps.append(op.Label) - if availableOps.__len__() > 0: + if len(availableOps) > 0: # Populate the operations list addInputs = True panel.geometryImportList.blockSignals(True)