[Bf-blender-cvs] [e9f738754d1] master: Cleanup: Remove redudant function call
Dalai Felinto
noreply at git.blender.org
Fri Feb 22 20:41:33 CET 2019
Commit: e9f738754d19a1c578a2d5139a79904873b58204
Author: Dalai Felinto
Date: Fri Feb 22 16:40:57 2019 -0300
Branches: master
https://developer.blender.org/rBe9f738754d19a1c578a2d5139a79904873b58204
Cleanup: Remove redudant function call
BKE_main_id_clear_newpoints is already called from copy_object_set_idnew().
===================================================================
M source/blender/editors/object/object_add.c
===================================================================
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index e9aaaccb3d2..febd8005e4a 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -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);
More information about the Bf-blender-cvs
mailing list