Pārlūkot izejas kodu

fix: check if curve has multiple splines before extracting spline

Joseph Brandenburg 5 mēneši atpakaļ
vecāks
revīzija
30fc7793e3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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