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>2014-01-27 08:18:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-27 08:21:04 +0400
commitfbc7ab30ff025ad3db59a73e2901883986e2e81e (patch)
tree3cbb2d7d4e6749d9216a73cbc45b323f03bd381f /source/blender/makesdna/DNA_curve_types.h
parentf91368d82216497482a011e6b0987d3a5cdac951 (diff)
Curves: save active point to file
Changed curve active point from pointer to index. Allows curve active point to be saved to file and retained between modes for free. Also some small optimisations by removing pointer look up code. - Made active point access functions into BKE API calls. - Fixes operators where curve de-selection resulted in unsel-active point. - Split curve delete into 2 functions
Diffstat (limited to 'source/blender/makesdna/DNA_curve_types.h')
-rw-r--r--source/blender/makesdna/DNA_curve_types.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h
index 695df477e8b..c7b6a8c43d3 100644
--- a/source/blender/makesdna/DNA_curve_types.h
+++ b/source/blender/makesdna/DNA_curve_types.h
@@ -209,9 +209,10 @@ typedef struct Curve {
/* edit, index in nurb list */
int actnu;
- /* edit, last selected point */
- void *lastsel;
+ /* edit, index in active nurb (BPoint or BezTriple) */
+ int actvert;
+ char pad[4];
/* font part */
short lines;
@@ -248,7 +249,7 @@ typedef struct Curve {
float ctime; /* current evaltime - for use by Objects parented to curves */
float bevfac1, bevfac2;
- char pad[4];
+ char pad2[4];
} Curve;
/* **************** CURVE ********************* */
@@ -325,6 +326,8 @@ typedef struct Curve {
#define CU_NURB_ENDPOINT 2
#define CU_NURB_BEZIER 4
+#define CU_ACT_NONE -1
+
/* *************** BEZTRIPLE **************** */
/* h1 h2 (beztriple) */