Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_add.c
| Context not available. | |||||
| DEG_id_tag_update(&obn->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY); | DEG_id_tag_update(&obn->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY); | ||||
| base = BKE_view_layer_base_find(view_layer, ob); | base = BKE_view_layer_base_find(view_layer, ob); | ||||
| if ((base != NULL) && (base->flag & BASE_VISIBLE_DEPSGRAPH)) { | if ((base != NULL) && (base->flag & BASE_VISIBLE)) { | ||||
| BKE_collection_object_add_from(bmain, scene, ob, obn); | BKE_collection_object_add_from(bmain, scene, ob, obn); | ||||
| } | } | ||||
| else { | else { | ||||
| Context not available. | |||||