[Bf-blender-cvs] [d7152244f81] master: Fix T54112: curve.splines.new() ignores Curve.resolution_u/v

Campbell Barton noreply at git.blender.org
Sat Jun 20 05:18:40 CEST 2020


Commit: d7152244f81dfe965d5ff4990dcaf63f4d142f70
Author: Campbell Barton
Date:   Sat Jun 20 13:17:04 2020 +1000
Branches: master
https://developer.blender.org/rBd7152244f81dfe965d5ff4990dcaf63f4d142f70

Fix T54112: curve.splines.new() ignores Curve.resolution_u/v

===================================================================

M	source/blender/makesrna/intern/rna_curve.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index 8b2658c7e0c..72a3eb7e3b5 100644
--- a/source/blender/makesrna/intern/rna_curve.c
+++ b/source/blender/makesrna/intern/rna_curve.c
@@ -687,7 +687,8 @@ static Nurb *rna_Curve_spline_new(Curve *cu, int type)
   nu->pntsv = 1;
 
   nu->orderu = nu->orderv = 4;
-  nu->resolu = nu->resolv = 12;
+  nu->resolu = cu->resolu;
+  nu->resolv = cu->resolv;
   nu->flag = CU_SMOOTH;
 
   if ((cu->flag & CU_3D) == 0) {



More information about the Bf-blender-cvs mailing list