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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-06-19 13:36:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-06-19 14:23:42 +0300
commitfbff09bf7ad6a907544ab423a9b7952df598c21f (patch)
treec6af607551fe534f291d9f7a3b4ccb8ef0ed985a /source/blender/editors
parent802027f3f8f9a83a77134a2b104a25ff3a4ac013 (diff)
Depsgraph: Synchronize selection from original scene to copied-on-write one
This makes it possible to select objects in the viewport. Selection in edit mode is still tricky, mainly because currently such update would require tagging batch as updated, which is not possible with using just and original object because it will never have batch. Possible solution here would be to introduce some "batch" or "render" component to depsgraph ID node for objects, so we can tag batch for update via depsgraph tagging API.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index 41851d8d358..b3ac62e9885 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -878,10 +878,12 @@ static void view3d_main_region_listener(
}
ED_region_tag_redraw(ar);
break;
- case ND_FRAME:
- case ND_TRANSFORM:
case ND_OB_ACTIVE:
case ND_OB_SELECT:
+ DEG_id_tag_update((ID *)&scene->id, DEG_TAG_COPY_ON_WRITE);
+ ATTR_FALLTHROUGH;
+ case ND_FRAME:
+ case ND_TRANSFORM:
case ND_OB_VISIBLE:
case ND_RENDER_OPTIONS:
case ND_MARKERS: