Skip to content

Commit

Permalink
Explicitly handle 'this' in SoBaseKit __getattr__ #85
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjf authored and looooo committed Oct 1, 2021
1 parent b6f6f16 commit 23ef3e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Inventor/nodekits/SoBaseKit.i
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 23ef3e6

Please sign in to comment.