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-11-21 06:22:34 +0300
committerMatt Ebb <matt@mke3.net>2006-11-21 06:22:34 +0300
commit476af8c06a999c8848680ff19bb07d93602e1074 (patch)
tree6bfa45532269553457f22d36b6ac4bc3c926edea /source/blender/src/drawobject.c
parent0d56a6e3197ddfc888c10c0c3615106dd65e560f (diff)
* Dupli objects (dupliverts, dupligroup, etc) now get invisibility based on their
parent object, not the original instantiated objects. i.e, if an object is invisible, its child dupli objects will be too.
Diffstat (limited to 'source/blender/src/drawobject.c')
-rw-r--r--source/blender/src/drawobject.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 22d167b1ce0..e01d96964d6 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -3650,7 +3650,14 @@ void draw_object(Base *base, int flag)
ob= base->object;
- if (!(G.obedit) && (ob->restrictflag & OB_RESTRICT_VIEW)) return;
+ if (!(G.obedit)) {
+ /*
+ * Always draw dupli objects here, restriction of those is governed by the flag of their duplicator
+ * object, in drawview.c, draw_dupli_objects()
+ */
+ if ((ob->restrictflag & OB_RESTRICT_VIEW) && !(base->flag & OB_FROMDUPLI))
+ return;
+ }
/* xray delay? */
if((flag & DRAW_PICKING)==0 && (base->flag & OB_FROMDUPLI)==0) {