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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-23 17:58:36 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-23 17:58:36 +0300
commit33e0ea0e5940dba240dc68fe44b5295c31dcb974 (patch)
tree621647cf7ddf2222d70baed9140768068e9ba113 /source/blender/makesrna/intern/rna_object.c
parent5fad6edcb010f75c3918d0a21bf95f94a687522b (diff)
py/rna functions for adding and removing curve data.
(commit 27666 by Campbell from render25 branch)
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 8fd2528e2be..b0fd3eb58e2 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -76,12 +76,17 @@ static EnumPropertyItem collision_bounds_items[] = {
//{OB_DYN_MESH, "DYNAMIC_MESH", 0, "Dynamic Mesh", ""},
{0, NULL, 0, NULL, NULL}};
+/* used for 2 enums */
+#define OBTYPE_CU_CURVE {OB_CURVE, "CURVE", 0, "Curve", ""}
+#define OBTYPE_CU_SURF {OB_SURF, "SURFACE", 0, "Surface", ""}
+#define OBTYPE_CU_TEXT {OB_FONT, "TEXT", 0, "Text", ""}
+
EnumPropertyItem object_type_items[] = {
{OB_MESH, "MESH", 0, "Mesh", ""},
- {OB_CURVE, "CURVE", 0, "Curve", ""},
- {OB_SURF, "SURFACE", 0, "Surface", ""},
+ OBTYPE_CU_CURVE,
+ OBTYPE_CU_SURF,
{OB_MBALL, "META", 0, "Meta", ""},
- {OB_FONT, "TEXT", 0, "Text", ""},
+ OBTYPE_CU_TEXT,
{0, "", 0, NULL, NULL},
{OB_ARMATURE, "ARMATURE", 0, "Armature", ""},
{OB_LATTICE, "LATTICE", 0, "Lattice", ""},
@@ -91,6 +96,12 @@ EnumPropertyItem object_type_items[] = {
{OB_LAMP, "LAMP", 0, "Lamp", ""},
{0, NULL, 0, NULL, NULL}};
+EnumPropertyItem object_type_curve_items[] = {
+ OBTYPE_CU_CURVE,
+ OBTYPE_CU_SURF,
+ OBTYPE_CU_TEXT,
+ {0, NULL, 0, NULL, NULL}};
+
#ifdef RNA_RUNTIME
#include "BLI_math.h"