Просмотр исходного кода

Bug fix: Correctly set the name of the attributes. PR #3940 did not seem to update in Master?

FeeshWyvern 2 лет назад
Родитель
Сommit
94d9773548
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      port/PyAssimp/pyassimp/core.py

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

@@ -211,7 +211,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):