소스 검색

Merge pull request #3940 from assimp/kimkulling-issue_3887

Use correct attribute name
Kim Kulling 4 년 전
부모
커밋
d2da600d08
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, name, obj)
+                setattr(target, m, obj)
                 logger.debug("Added " + name + " as self." + name + " (type: " + str(type(obj)) + ")")
 
                 if _is_init_type(obj):