EEVEE-Next: Rename engines and set it default in startup file #121592
@ -333,7 +333,7 @@ void BLO_update_defaults_workspace(WorkSpace *workspace, const char *app_templat
|
||||
|
||||
static void blo_update_defaults_scene(Main *bmain, Scene *scene)
|
||||
{
|
||||
STRNCPY(scene->r.engine, RE_engine_id_BLENDER_EEVEE);
|
||||
STRNCPY(scene->r.engine, RE_engine_id_BLENDER_EEVEE_NEXT);
|
||||
|
||||
scene->r.cfra = 1.0f;
|
||||
|
||||
|
@ -668,7 +668,7 @@ RenderEngineType DRW_engine_viewport_eevee_type = {
|
||||
/*next*/ nullptr,
|
||||
/*prev*/ nullptr,
|
||||
/*idname*/ EEVEE_ENGINE,
|
||||
/*name*/ N_("EEVEE"),
|
||||
/*name*/ N_("EEVEE (Legacy)"),
|
||||
/*flag*/ RE_INTERNAL | RE_USE_PREVIEW | RE_USE_STEREO_VIEWPORT | RE_USE_GPU_CONTEXT,
|
||||
/*update*/ nullptr,
|
||||
/*render*/ &DRW_render_to_image,
|
||||
|
@ -212,7 +212,7 @@ RenderEngineType DRW_engine_viewport_eevee_next_type = {
|
||||
/*next*/ nullptr,
|
||||
/*prev*/ nullptr,
|
||||
/*idname*/ "BLENDER_EEVEE_NEXT",
|
||||
/*name*/ N_("EEVEE-Next"),
|
||||
/*name*/ N_("EEVEE"),
|
||||
/*flag*/ RE_INTERNAL | RE_USE_PREVIEW | RE_USE_STEREO_VIEWPORT | RE_USE_GPU_CONTEXT,
|
||||
/*update*/ nullptr,
|
||||
/*render*/ &DRW_render_to_image,
|
||||
|
@ -6636,7 +6636,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
};
|
||||
|
||||
static const EnumPropertyItem engine_items[] = {
|
||||
{0, "BLENDER_EEVEE", 0, "EEVEE", ""},
|
||||
{0, "BLENDER_EEVEE_NEXT", 0, "EEVEE", ""},
|
||||
{0, nullptr, 0, nullptr, nullptr},
|
||||
};
|
||||
|
||||
|
@ -94,7 +94,7 @@ RenderEngineType *RE_engines_find(const char *idname)
|
||||
BLI_findstring(&R_engines, idname, offsetof(RenderEngineType, idname)));
|
||||
if (!type) {
|
||||
type = static_cast<RenderEngineType *>(
|
||||
BLI_findstring(&R_engines, "BLENDER_EEVEE", offsetof(RenderEngineType, idname)));
|
||||
BLI_findstring(&R_engines, "BLENDER_EEVEE_NEXT", offsetof(RenderEngineType, idname)));
|
||||
}
|
||||
|
||||
return type;
|
||||
|
Loading…
Reference in New Issue
Block a user