From c5e4ad59b7fb53c7d307c6e8bfce2b357d30f48e Mon Sep 17 00:00:00 2001 From: Sebastian Friston Date: Fri, 1 Oct 2021 09:38:52 +0100 Subject: [PATCH] Explicitly handle 'this' in SoBaseKit __getattr__ #85 --- Inventor/nodekits/SoBaseKit.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Inventor/nodekits/SoBaseKit.i b/Inventor/nodekits/SoBaseKit.i index b765082c..a2ccde9d 100644 --- a/Inventor/nodekits/SoBaseKit.i +++ b/Inventor/nodekits/SoBaseKit.i @@ -2,6 +2,8 @@ %extend SoBaseKit { %pythoncode %{ def __getattr__(self,name): + if name == 'this': + return SoNode.__getattr__(self,name) c = _coin.SoBaseKit_getNodekitCatalog(self) if c.getPartNumber(name) >= 0: part = self.getPart(name,1)