Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_relations.c
| Context not available. | |||||
| success = BKE_override_static_create_from_tag(bmain); | success = BKE_override_static_create_from_tag(bmain); | ||||
| /* Intantiate our newly overridden objects in scene, if not yet done. */ | /* Instantiate our newly overridden objects in scene, if not yet done. */ | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ViewLayer *view_layer = CTX_data_view_layer(C); | ViewLayer *view_layer = CTX_data_view_layer(C); | ||||
| Collection *new_collection = (Collection *)collection->id.newid; | Collection *new_collection = (Collection *)collection->id.newid; | ||||
| Context not available. | |||||
| /* obcollection is no more duplicollection-ing, it merely parents whole collection of overriding instantiated objects. */ | /* obcollection is no more duplicollection-ing, it merely parents whole collection of overriding instantiated objects. */ | ||||
| obcollection->dup_group = NULL; | obcollection->dup_group = NULL; | ||||
| /* Also, we'd likely want to lock by default things like transformations of implicitly overriden objects? */ | /* Also, we'd likely want to lock by default things like transformations of implicitly overridden objects? */ | ||||
| DEG_id_tag_update(&scene->id, 0); | DEG_id_tag_update(&scene->id, 0); | ||||
| Context not available. | |||||
| success = BKE_override_static_create_from_tag(bmain); | success = BKE_override_static_create_from_tag(bmain); | ||||
| /* Also, we'd likely want to lock by default things like transformations of implicitly overriden objects? */ | /* Also, we'd likely want to lock by default things like transformations of implicitly overridden objects? */ | ||||
| /* Cleanup. */ | /* Cleanup. */ | ||||
| BKE_main_id_clear_newpoins(bmain); | BKE_main_id_clear_newpoins(bmain); | ||||
| Context not available. | |||||