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:
authorMatt Ebb <matt@mke3.net>2006-01-13 18:50:32 +0300
committerMatt Ebb <matt@mke3.net>2006-01-13 18:50:32 +0300
commit2af2c2c700d2256380fb3095257efe576fd0bbf1 (patch)
tree3b4982f6d6b746ef6d5de4d9f27fc70cfc36f729 /source/blender/makesdna
parentcc2a332907e2e28ebf9ab1fc8b6464000ed18cf5 (diff)
Orange: Display types and variable size for Empties.
This is using instructions from Ton, so hopefully the implementation is ok. This is really needed here where we are using all sorts of wacky scales, and empties look too big or too small. Of course we don't want to scale the empties because there are often things parented to them. New options are in edit buttons for empties to control the display style and the size. New styles are easy to add, too. Just needs useful ideas and minor effort from anyone who wants to. Support for copying these values has also been added to the Copy Attributes ->Drawtype menu command.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_object_types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h
index 50243c26887..0f1cdb8368f 100644
--- a/source/blender/makesdna/DNA_object_types.h
+++ b/source/blender/makesdna/DNA_object_types.h
@@ -148,6 +148,8 @@ typedef struct Object {
char dt, dtx;
char totcol; /* copy of mesh or curve or meta */
char actcol;
+ char empty_drawtype, pad1[3];
+ float empty_drawsize;
ScriptLink scriptlink;
ListBase prop;
@@ -311,6 +313,11 @@ extern Object workob;
/* enable transparent draw */
#define OB_DRAWTRANSP 128
+/* empty_drawtype: no flags */
+#define OB_ARROWS 1
+#define OB_PLAINAXES 2
+#define OB_CIRCLE 3
+
/* boundtype */
#define OB_BOUND_BOX 0
#define OB_BOUND_SPHERE 1