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/blenkernel
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/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 2990da483d4..d60236d226c 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -759,6 +759,8 @@ Object *add_object(int type)
Mat4One(ob->obmat);
ob->dt= OB_SHADED;
if(U.flag & USER_MAT_ON_OB) ob->colbits= -1;
+ ob->empty_drawtype= OB_ARROWS;
+ ob->empty_drawsize= 1.0;
if(type==OB_CAMERA || type==OB_LAMP) {
ob->trackflag= OB_NEGZ;