Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-06-20 06:17:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-06-20 06:17:40 +0300
commitd7152244f81dfe965d5ff4990dcaf63f4d142f70 (patch)
treeb4f0b87fb49206e12186043d8862a64185480adf /source/blender/makesrna/intern/rna_curve.c
parent92c5b12df6f7a6651c7a2cdd16df3f06aa1c1b4f (diff)
Fix T54112: curve.splines.new() ignores Curve.resolution_u/v
Diffstat (limited to 'source/blender/makesrna/intern/rna_curve.c')
-rw-r--r--source/blender/makesrna/intern/rna_curve.c3
1 files changed, 2 insertions, 1 deletions
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) {