From 4645b12589efe07a1264a09e4cb9eac376b3bfdd Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Thu, 8 Sep 2022 20:54:14 -0700 Subject: [PATCH] Fix SurfaceSupport for new Path source structure --- src/Mod/Path/Path/Op/SurfaceSupport.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/Path/Op/SurfaceSupport.py b/src/Mod/Path/Path/Op/SurfaceSupport.py index 90aabed6a2..88656ef260 100644 --- a/src/Mod/Path/Path/Op/SurfaceSupport.py +++ b/src/Mod/Path/Path/Op/SurfaceSupport.py @@ -649,9 +649,10 @@ class ProcessSelectedFaces: """_isReady(module)... Internal method. Checks if required attributes are available for processing obj.Base (the Base Geometry).""" Path.Log.debug("ProcessSelectedFaces _isReady({})".format(module)) - if hasattr(self, module): + modMethodName = module.replace("Op.", "Path") + if hasattr(self, modMethodName): self.module = module - modMethod = getattr(self, module) # gets the attribute only + modMethod = getattr(self, modMethodName) # gets the attribute only modMethod() # executes as method else: Path.Log.error('PSF._isReady() no "{}" method.'.format(module))