Fix SurfaceSupport for new Path source structure

This commit is contained in:
Markus Lampert
2022-09-08 20:54:14 -07:00
parent c0851a5131
commit 4645b12589

View File

@@ -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))