Cleanup: Remove redudant function call
BKE_main_id_clear_newpoints is already called from copy_object_set_idnew().
This commit is contained in:
parent
0ca623362d
commit
e9f738754d
|
@ -2527,8 +2527,6 @@ static int duplicate_exec(bContext *C, wmOperator *op)
|
|||
|
||||
copy_object_set_idnew(C);
|
||||
|
||||
BKE_main_id_clear_newpoins(bmain);
|
||||
|
||||
DEG_relations_tag_update(bmain);
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_COPY_ON_WRITE | ID_RECALC_SELECT);
|
||||
|
||||
|
@ -2607,8 +2605,6 @@ static int add_named_exec(bContext *C, wmOperator *op)
|
|||
|
||||
copy_object_set_idnew(C);
|
||||
|
||||
BKE_main_id_clear_newpoins(bmain);
|
||||
|
||||
/* TODO(sergey): Only update relations for the current scene. */
|
||||
DEG_relations_tag_update(bmain);
|
||||
|
||||
|
|
Loading…
Reference in New Issue