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.
This commit is contained in:
Sergey Sharybin
2017-06-19 12:36:34 +02:00
parent 802027f3f8
commit fbff09bf7a

View File

@@ -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: