소스 검색

Merge branch 'patch-2' into 'master'

Fix: bFinalize TypeError on Blender 5.2 (bbone scale cleanup)

See merge request josephbburg/mantis!7
josephbburg 1 개월 전
부모
커밋
25f36937c6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      xForm_nodes.py

+ 1 - 1
xForm_nodes.py

@@ -574,7 +574,7 @@ class xFormBone(xFormNode):
             for attr_name in props_sockets.keys():
                 try:
                     setattr(pb, attr_name, 0) # just clear it
-                except ValueError:
+                except (ValueError, TypeError): # Blender 5.2 raises TypeError for scalar -> vector
                     setattr(pb, attr_name, (1.0,1.0,1.0)) # scale needs to be set to 1