diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-05-05 12:46:24 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-05-06 09:29:26 +0300 |
commit | 89858e1c5decdafacdc3426214c4abb81a69822e (patch) | |
tree | 4cca6fc205436ebee206b8cd69c26248ac826e4e /source/blender/editors/object/object_add.c | |
parent | e83a8e908341e50f2df333f25bdc92e93d28611b (diff) |
Fix radius not taken into account when adding curve guide force field
Wrong usage of ED_curve_add_nurbs_primitive from {rBe8f3fa99de81}.
Differential Revision: https://developer.blender.org/D11166
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r-- | source/blender/editors/object/object_add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 6f8b5f7d244..fafd19a91fe 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -859,8 +859,9 @@ static int effector_add_exec(bContext *C, wmOperator *op) float mat[4][4]; ED_object_new_primitive_matrix(C, ob, loc, rot, mat); + mul_mat3_m4_fl(mat, dia); BLI_addtail(&cu->editnurb->nurbs, - ED_curve_add_nurbs_primitive(C, ob, mat, CU_NURBS | CU_PRIM_PATH, dia)); + ED_curve_add_nurbs_primitive(C, ob, mat, CU_NURBS | CU_PRIM_PATH, 1)); if (!enter_editmode) { ED_object_editmode_exit_ex(bmain, scene, ob, EM_FREEDATA); } |