diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-30 06:25:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-30 06:25:27 +0400 |
commit | 0d6ae3fda2e5a3dbde941b6985e6895a42c71b9e (patch) | |
tree | b0c89b9a01da31fffc6b6db7c9395ff2db97de53 /source/blender/editors/object/object_add.c | |
parent | 19103b443711d7c1b3a24f7fab949f71343d8200 (diff) |
Main API: refactor naming, use BKE_main_ prefix and add main arg.
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r-- | source/blender/editors/object/object_add.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 669d762029a..486e278c00c 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -1093,7 +1093,7 @@ static int object_delete_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; /* delete has to handle all open scenes */ - flag_listbase_ids(&bmain->scene, LIB_DOIT, 1); + BKE_main_id_flag_listbase(&bmain->scene, LIB_DOIT, 1); for (win = wm->windows.first; win; win = win->next) { scene = win->screen->scene; @@ -1216,7 +1216,7 @@ static void copy_object_set_idnew(bContext *C, int dupflag) set_sca_new_poins(); - clear_id_newpoins(); + BKE_main_id_clear_newpoins(bmain); } /********************* Make Duplicates Real ************************/ @@ -1369,7 +1369,7 @@ static int object_duplicates_make_real_exec(bContext *C, wmOperator *op) const short use_base_parent = RNA_boolean_get(op->ptr, "use_base_parent"); const short use_hierarchy = RNA_boolean_get(op->ptr, "use_hierarchy"); - clear_id_newpoins(); + BKE_main_id_clear_newpoins(bmain); CTX_DATA_BEGIN (C, Base *, base, selected_editable_bases) { @@ -2029,7 +2029,7 @@ Base *ED_object_add_duplicate(Main *bmain, Scene *scene, Base *base, int dupflag Base *basen; Object *ob; - clear_id_newpoins(); + BKE_main_id_clear_newpoins(bmain); clear_sca_new_poins(); /* sensor/contr/act */ basen = object_add_duplicate_internal(bmain, scene, base, dupflag); @@ -2060,7 +2060,7 @@ static int duplicate_exec(bContext *C, wmOperator *op) int linked = RNA_boolean_get(op->ptr, "linked"); int dupflag = (linked) ? 0 : U.dupflag; - clear_id_newpoins(); + BKE_main_id_clear_newpoins(bmain); clear_sca_new_poins(); /* sensor/contr/act */ CTX_DATA_BEGIN (C, Base *, base, selected_bases) @@ -2141,7 +2141,7 @@ static int add_named_exec(bContext *C, wmOperator *op) base->flag = ob->flag; /* prepare dupli */ - clear_id_newpoins(); + BKE_main_id_clear_newpoins(bmain); clear_sca_new_poins(); /* sensor/contr/act */ basen = object_add_duplicate_internal(bmain, scene, base, dupflag); |