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:
-rw-r--r--source/blender/blenkernel/intern/curve.c2
-rw-r--r--source/blender/editors/curve/editcurve.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c
index a61a15f4566..e11af2405ef 100644
--- a/source/blender/blenkernel/intern/curve.c
+++ b/source/blender/blenkernel/intern/curve.c
@@ -3984,7 +3984,7 @@ ListBase *BKE_curve_nurbs_get(Curve *cu)
void BKE_curve_nurb_active_set(Curve *cu, Nurb *nu)
{
if (nu == NULL) {
- cu->actnu = -1;
+ cu->actnu = CU_ACT_NONE;
}
else {
ListBase *nurbs = BKE_curve_editNurbs_get(cu);
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index f5cfc289ab9..20e55190a81 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -1926,7 +1926,7 @@ static void ed_curve_delete_selected(Object *obedit)
}
if (a == 0) {
if (cu->actnu == nuindex)
- cu->actnu = -1;
+ cu->actnu = CU_ACT_NONE;
BLI_remlink(nubase, nu);
keyIndex_delNurb(editnurb, nu);
@@ -1950,7 +1950,7 @@ static void ed_curve_delete_selected(Object *obedit)
}
if (a == 0) {
if (cu->actnu == nuindex)
- cu->actnu = -1;
+ cu->actnu = CU_ACT_NONE;
BLI_remlink(nubase, nu);
keyIndex_delNurb(editnurb, nu);
@@ -4939,7 +4939,7 @@ static int addvert_Nurb(bContext *C, short mode, float location[3])
if ((nu == NULL) || (nu->type == CU_BEZIER && bezt == NULL) || (nu->type != CU_BEZIER && bp == NULL)) {
if (mode != 'e') {
- if (cu->actnu >= 0)
+ if (cu->actnu != CU_ACT_NONE)
nu = BLI_findlink(&editnurb->nurbs, cu->actnu);
if (!nu || nu->type == CU_BEZIER) {