Pārlūkot izejas kodu

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

FeeshWyvern 2 gadi atpakaļ
vecāks
revīzija
f9fcf33aaa
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      port/PyAssimp/pyassimp/core.py

+ 4 - 0
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