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>2014-06-15 08:23:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-15 08:23:23 +0400
commit57372f4ef8fcf428d7f38faca8e9b4299c28a4ce (patch)
treec00ccea8ae7d001cddabe856dc7ee92dfbe3d3ba /source/blender/makesdna/DNA_curve_types.h
parent716430ab64ef0ed400106bc501d444d38301aec6 (diff)
Curve: use zero length array for BevList for less confusing syntax
Diffstat (limited to 'source/blender/makesdna/DNA_curve_types.h')
-rw-r--r--source/blender/makesdna/DNA_curve_types.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h
index 0321c1cad12..d638d20c6a5 100644
--- a/source/blender/makesdna/DNA_curve_types.h
+++ b/source/blender/makesdna/DNA_curve_types.h
@@ -71,16 +71,6 @@ typedef struct Path {
/* These two Lines with # tell makesdna this struct can be excluded. */
#
#
-typedef struct BevList {
- struct BevList *next, *prev;
- int nr, dupe_nr;
- int poly, hole;
- int charidx;
-} BevList;
-
-/* These two Lines with # tell makesdna this struct can be excluded. */
-#
-#
typedef struct BevPoint {
float vec[3], alfa, radius, weight;
float sina, cosa; /* 2D Only */
@@ -88,6 +78,19 @@ typedef struct BevPoint {
short split_tag, dupe_tag;
} BevPoint;
+/* These two Lines with # tell makesdna this struct can be excluded. */
+#
+#
+typedef struct BevList {
+ struct BevList *next, *prev;
+ int nr, dupe_nr;
+ int poly, hole;
+ int charidx;
+
+ /* over-alloc */
+ BevPoint bevpoints[0];
+} BevList;
+
/**
* Keyframes on F-Curves (allows code reuse of Bezier eval code) and
* Points on Bezier Curves/Paths are generally BezTriples