Bug fix: We should not be accessing `mPrivate` according to structs.Scene and fixes a crash when `mPrivate` points to invalid data.

pull/4985/head
FeeshWyvern 2023-02-27 20:06:05 -08:00
parent 94d9773548
commit f9fcf33aaa
1 changed files with 4 additions and 0 deletions

View File

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