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
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawobject.c9
-rw-r--r--source/blender/src/drawview.c2
2 files changed, 10 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) {
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c
index 84b48904d26..52e287336ee 100644
--- a/source/blender/src/drawview.c
+++ b/source/blender/src/drawview.c
@@ -2647,6 +2647,8 @@ static void draw_dupli_objects(View3D *v3d, Base *base)
short transflag;
char dt, dtx;
+ if (base->object->restrictflag & OB_RESTRICT_VIEW) return;
+
/* debug */
if(base->object->dup_group && base->object->dup_group->id.us<1)
color= TH_REDALERT;