Browse Source

Merge pull request #3057 from shawwn/2020-03-09/fix

Only try to initialize members whose name starts with 'm' followed by an uppercase character
Kim Kulling 5 năm trước cách đây
mục cha
commit
7b1187a917
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      port/PyAssimp/pyassimp/core.py

+ 1 - 1
port/PyAssimp/pyassimp/core.py

@@ -138,7 +138,7 @@ def _init(self, target = None, parent = None):
             logger.debug(str(self) + ": Added array " + str(getattr(target, name)) +  " as self." + name.lower())
             continue
 
-        if m.startswith('m'):
+        if m.startswith('m') and len(m) > 1 and m[1].upper() == m[1]:
 
             if name == "parent":
                 setattr(target, name, parent)