Browse Source

Use corret attribute name

- closes https://github.com/assimp/assimp/issues/3887
Kim Kulling 4 years ago
parent
commit
b4fc41bc09
1 changed files with 1 additions and 1 deletions
  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
             else: # starts with 'm' but not iterable
-                setattr(target, name, obj)
+                setattr(target, m, obj)
                 logger.debug("Added " + name + " as self." + name + " (type: " + str(type(obj)) + ")")
                 logger.debug("Added " + name + " as self." + name + " (type: " + str(type(obj)) + ")")
 
 
                 if _is_init_type(obj):
                 if _is_init_type(obj):