diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-11-27 22:23:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-11-27 22:23:26 +0300 |
commit | 044b78c83b0f9e0503d8077edc4d235ffcb97e85 (patch) | |
tree | 83a15f5338a1779a6c6c7c10ae6cb24d322f7153 /source/blender/src/editobject.c | |
parent | 3da97e27c6cb5e1d2a5e93c795b58d88f22196df (diff) |
new function object_is_libdata - checks ob->id.lib but also accounts for proxy's.
Object panels were using object_data_is_libdata, which meant linked obdata could not have object settings changed.
curve2tree
- option to face leaves up or down
- random pitch and roll options
- place 2 leaves on a point for denser leaves
- random seed entry so you can get reproducible results
Diffstat (limited to 'source/blender/src/editobject.c')
-rw-r--r-- | source/blender/src/editobject.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 995606282c3..8f40742852e 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -5485,6 +5485,18 @@ void hookmenu(void) } /* + * Returns true if the Object is a from an external blend file (libdata) + */ +int object_is_libdata(Object *ob) +{ + if (!ob) return 0; + if (ob->proxy) return 0; + if (ob->id.lib) return 1; + return 0; +} + + +/* * Returns true if the Object data is a from an external blend file (libdata) */ int object_data_is_libdata(Object *ob) |