Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
| Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | void update_copy_on_write_scene(const Depsgraph *depsgraph, | ||||
| // Update edit object pointer. | // Update edit object pointer. | ||||
| if (scene_orig->obedit != NULL) { | if (scene_orig->obedit != NULL) { | ||||
| scene_cow->obedit = (Object *)depsgraph->get_cow_id(&scene_orig->obedit->id); | scene_cow->obedit = (Object *)depsgraph->get_cow_id(&scene_orig->obedit->id); | ||||
| } | } | ||||
| else { | else { | ||||
| scene_cow->obedit = NULL; | scene_cow->obedit = NULL; | ||||
| } | } | ||||
| /* Synchronize active render engine. */ | /* Synchronize active render engine. */ | ||||
| BLI_strncpy_utf8(scene_cow->r.engine, | BLI_strncpy_utf8(scene_cow->view_render.engine_id, | ||||
| scene_orig->r.engine, | scene_orig->view_render.engine_id, | ||||
| sizeof(scene_cow->r.engine)); | sizeof(scene_cow->view_render.engine_id)); | ||||
| /* TODO(sergey): What else do we need here? */ | /* TODO(sergey): What else do we need here? */ | ||||
| } | } | ||||
| /* Update copy-on-write version of armature object from original scene. */ | /* Update copy-on-write version of armature object from original scene. */ | ||||
| void update_copy_on_write_object(const Depsgraph * /*depsgraph*/, | void update_copy_on_write_object(const Depsgraph * /*depsgraph*/, | ||||
| Object *object_cow, | Object *object_cow, | ||||
| const Object *object_orig) | const Object *object_orig) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 415 Lines • Show Last 20 Lines | |||||