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:
authorKevin Mackay <mackay.ka@gmail.com>2013-11-06 03:37:09 +0400
committerKevin Mackay <mackay.ka@gmail.com>2013-11-06 03:37:09 +0400
commit299812f28d32950a9bbf4612a3a5fef46054e7fb (patch)
tree1be704188a2132b3d2ea19360d185697e6494e2e /source/blender/editors/curve/editcurve_add.c
parent7874447e4a75d77eddacb0b0186ea1e9f2c76596 (diff)
Made active point and active spline behaviour more predictable on curves/surfaces:
* deselect all no longer leaves an active point * the most recently added spline becomes the active one * on successful duplicate/delete the active point and active spline are reset
Diffstat (limited to 'source/blender/editors/curve/editcurve_add.c')
-rw-r--r--source/blender/editors/curve/editcurve_add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/curve/editcurve_add.c b/source/blender/editors/curve/editcurve_add.c
index 9b858a2c4e9..6804aa3584f 100644
--- a/source/blender/editors/curve/editcurve_add.c
+++ b/source/blender/editors/curve/editcurve_add.c
@@ -458,6 +458,8 @@ Nurb *add_nurbs_primitive(bContext *C, Object *obedit, float mat[4][4], int type
if (nu) { /* should always be set */
nu->flag |= CU_SMOOTH;
+ cu->actnu = BLI_countlist(editnurb);
+ cu->lastsel = NULL;
BKE_nurb_test2D(nu);
}