From f9fcf33aaa639fbfd386631cb796ac66d01fef94 Mon Sep 17 00:00:00 2001 From: FeeshWyvern Date: Mon, 27 Feb 2023 20:06:05 -0800 Subject: [PATCH] Bug fix: We should not be accessing `mPrivate` according to structs.Scene and fixes a crash when `mPrivate` points to invalid data. --- port/PyAssimp/pyassimp/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/port/PyAssimp/pyassimp/core.py b/port/PyAssimp/pyassimp/core.py index 37beac886..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