Explorar o código

Merge pull request #3940 from assimp/kimkulling-issue_3887

Use correct attribute name
Kim Kulling %!s(int64=4) %!d(string=hai) anos
pai
achega
d2da600d08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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, name, obj)
+                setattr(target, m, obj)
                 logger.debug("Added " + name + " as self." + name + " (type: " + str(type(obj)) + ")")
 
                 if _is_init_type(obj):