diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-24 10:44:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-24 10:44:00 +0400 |
commit | e02612c04203c5a8028ebffc467158e4b42db09b (patch) | |
tree | 558e437bb8e3aae7f09b9d897b9592a094a4e86e | |
parent | d5aaf8141ea89a3ca16e7fa6f922ac910db7e742 (diff) |
localview was clearing the source-view3d when duplicating
noticeable when splitting the view that the wrong viewport kept local-view layers.
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index 4c888f2f6c6..eb7adb7a333 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -380,11 +380,10 @@ static SpaceLink *view3d_duplicate(SpaceLink *sl) // XXX BIF_view3d_previewrender_free(v3do); - if (v3do->localvd) { - v3do->localvd = NULL; - v3do->properties_storage = NULL; - v3do->lay = v3dn->localvd->lay; - v3do->lay &= 0xFFFFFF; + if (v3dn->localvd) { + v3dn->localvd = NULL; + v3dn->properties_storage = NULL; + v3dn->lay = v3do->localvd->lay & 0xFFFFFF; } if (v3dn->drawtype == OB_RENDER) |