Cleanup: rename BKE_scene_copy to _update.

Matches other similar cases for collection and object, and general
naming rule (copy is for generic ID copying, duplicate is for more
involved and poweful behaviors specific to an ID type).
This commit is contained in:
Bastien Montagne
2020-06-10 18:30:59 +02:00
parent eee35ebdfb
commit 4f314ee5b9
3 changed files with 3 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ struct Scene *BKE_scene_set_name(struct Main *bmain, const char *name);
struct ToolSettings *BKE_toolsettings_copy(struct ToolSettings *toolsettings, const int flag);
void BKE_toolsettings_free(struct ToolSettings *toolsettings);
struct Scene *BKE_scene_copy(struct Main *bmain, struct Scene *sce, eSceneCopyMethod type);
struct Scene *BKE_scene_duplicate(struct Main *bmain, struct Scene *sce, eSceneCopyMethod type);
void BKE_scene_groups_relink(struct Scene *sce);
struct Scene *BKE_scene_find_from_collection(const struct Main *bmain,

View File

@@ -749,7 +749,7 @@ void BKE_scene_copy_data_eevee(Scene *sce_dst, const Scene *sce_src)
/* TODO Copy the cache. */
}
Scene *BKE_scene_copy(Main *bmain, Scene *sce, eSceneCopyMethod type)
Scene *BKE_scene_duplicate(Main *bmain, Scene *sce, eSceneCopyMethod type)
{
Scene *sce_copy;

View File

@@ -67,7 +67,7 @@ Scene *ED_scene_add(Main *bmain, bContext *C, wmWindow *win, eSceneCopyMethod me
ED_editors_flush_edits(bmain);
}
scene_new = BKE_scene_copy(bmain, scene_old, method);
scene_new = BKE_scene_duplicate(bmain, scene_old, method);
}
WM_window_set_active_scene(bmain, C, win, scene_new);