diff options
author | Matt Ebb <matt@mke3.net> | 2006-01-13 18:50:32 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2006-01-13 18:50:32 +0300 |
commit | 2af2c2c700d2256380fb3095257efe576fd0bbf1 (patch) | |
tree | 3b4982f6d6b746ef6d5de4d9f27fc70cfc36f729 /source/blender/blenkernel | |
parent | cc2a332907e2e28ebf9ab1fc8b6464000ed18cf5 (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.c | 2 |
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; |