Depsgraph: Update tool settings when updating CoW scene

This commit is contained in:
Sergey Sharybin 2018-02-28 14:57:49 +01:00
parent 4e8bd537c3
commit 80d1d9629e
1 changed files with 2 additions and 0 deletions

View File

@ -614,6 +614,8 @@ void update_copy_on_write_scene(const Depsgraph *depsgraph,
BLI_strncpy(scene_cow->view_render.engine_id,
scene_orig->view_render.engine_id,
sizeof(scene_cow->view_render.engine_id));
BKE_toolsettings_free(scene_cow->toolsettings);
scene_cow->toolsettings = BKE_toolsettings_copy(scene_orig->toolsettings, 0);
/* TODO(sergey): What else do we need here? */
}