diff --git a/port/PyAssimp/pyassimp/core.py b/port/PyAssimp/pyassimp/core.py index 35ad882b3..edde8b29a 100644 --- a/port/PyAssimp/pyassimp/core.py +++ b/port/PyAssimp/pyassimp/core.py @@ -115,6 +115,10 @@ def _init(self, target = None, parent = None): if m.startswith("_"): continue + # We should not be accessing `mPrivate` according to structs.Scene. + if m == 'mPrivate': + continue + if m.startswith('mNum'): if 'm' + m[4:] in dirself: continue # will be processed later on @@ -211,7 +215,7 @@ def _init(self, target = None, parent = None): else: # starts with 'm' but not iterable - setattr(target, m, obj) + setattr(target, name, obj) logger.debug("Added " + name + " as self." + name + " (type: " + str(type(obj)) + ")") if _is_init_type(obj): diff --git a/test/models/PLY/pond.0.ply b/test/models/PLY/pond.0.ply index 02b7683ce..a45e0322d 100644 Binary files a/test/models/PLY/pond.0.ply and b/test/models/PLY/pond.0.ply differ