소스 검색

fix: check if curve has multiple splines before extracting spline

Joseph Brandenburg 5 달 전
부모
커밋
30fc7793e3
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      utilities.py

+ 2 - 1
utilities.py

@@ -748,7 +748,8 @@ def get_extracted_spline_object(proto_curve, spline_index, mContext):
         return curve
     else:
         curve = extract_spline(proto_curve, spline_index)
-        bind_extracted_spline_to_curve(curve, proto_curve)
+        if curve.name != proto_curve.name: # if there is only one spline, no
+            bind_extracted_spline_to_curve(curve, proto_curve)# dupe is created.
         mContext.b_objects[extracted_spline_name] = curve
         return curve