Change startup defaults
- Default Lamp increased strength (10x stronger) - 3D View & Camera Lens = 50mm - Camera film size = 36x24mm Full Frame - Render Size Percentage = 100% - Render Display = New Window - Scene Units = Metric - Color Management View = Filmic - Workbench Object Overlap = ON - Headers on top for all editors, except the Timeline at the bottom - Default Properties tab = Object Properties - Generate UV's = ON See T47064
This commit is contained in:
parent
197af58baa
commit
bcf6cc1f6b
Notes:
blender-bot
2023-02-14 05:54:53 +01:00
Referenced by issue #54943, Blender 2.8 Defaults
|
@ -66,7 +66,7 @@ void BKE_camera_init(Camera *cam)
|
|||
{
|
||||
BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(cam, id));
|
||||
|
||||
cam->lens = 35.0f;
|
||||
cam->lens = 50.0f;
|
||||
cam->sensor_x = DEFAULT_SENSOR_WIDTH;
|
||||
cam->sensor_y = DEFAULT_SENSOR_HEIGHT;
|
||||
cam->clipsta = 0.1f;
|
||||
|
|
|
@ -59,7 +59,8 @@ void BKE_lamp_init(Lamp *la)
|
|||
BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(la, id));
|
||||
|
||||
la->r = la->g = la->b = la->k = 1.0f;
|
||||
la->haint = la->energy = 1.0f;
|
||||
la->haint = 1.0f;
|
||||
la->energy = 10.0f;
|
||||
la->dist = 25.0f;
|
||||
la->spotsize = DEG2RADF(45.0f);
|
||||
la->spotblend = 0.15f;
|
||||
|
|
|
@ -563,7 +563,7 @@ void BKE_scene_init(Scene *sce)
|
|||
sce->r.yasp = 1;
|
||||
sce->r.tilex = 256;
|
||||
sce->r.tiley = 256;
|
||||
sce->r.size = 50;
|
||||
sce->r.size = 100;
|
||||
|
||||
sce->r.im_format.planes = R_IMF_PLANES_RGBA;
|
||||
sce->r.im_format.imtype = R_IMF_IMTYPE_PNG;
|
||||
|
@ -571,7 +571,7 @@ void BKE_scene_init(Scene *sce)
|
|||
sce->r.im_format.quality = 90;
|
||||
sce->r.im_format.compress = 15;
|
||||
|
||||
sce->r.displaymode = R_OUTPUT_AREA;
|
||||
sce->r.displaymode = R_OUTPUT_WINDOW;
|
||||
sce->r.framapto = 100;
|
||||
sce->r.images = 100;
|
||||
sce->r.framelen = 1.0;
|
||||
|
@ -687,6 +687,7 @@ void BKE_scene_init(Scene *sce)
|
|||
sce->physics_settings.gravity[2] = -9.81f;
|
||||
sce->physics_settings.flag = PHYS_GLOBAL_GRAVITY;
|
||||
|
||||
sce->unit.system = USER_UNIT_METRIC;
|
||||
sce->unit.scale_length = 1.0f;
|
||||
|
||||
pset = &sce->toolsettings->particle;
|
||||
|
|
|
@ -928,6 +928,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
|
|||
if (sl->spacetype == SPACE_VIEW3D) {
|
||||
View3D *v3d = (View3D *)sl;
|
||||
v3d->shading.light = V3D_LIGHTING_STUDIO;
|
||||
v3d->shading.flag |= V3D_SHADING_OBJECT_OVERLAP;
|
||||
|
||||
/* Assume (demo) files written with 2.8 want to show
|
||||
* Eevee renders in the viewport. */
|
||||
|
|
|
@ -30,8 +30,10 @@
|
|||
#include "BLI_math.h"
|
||||
#include "BLI_string.h"
|
||||
|
||||
#include "DNA_camera_types.h"
|
||||
#include "DNA_brush_types.h"
|
||||
#include "DNA_freestyle_types.h"
|
||||
#include "DNA_lamp_types.h"
|
||||
#include "DNA_linestyle_types.h"
|
||||
#include "DNA_scene_types.h"
|
||||
#include "DNA_screen_types.h"
|
||||
|
@ -347,5 +349,55 @@ void BLO_update_defaults_startup_blend(Main *bmain)
|
|||
br->flag |= BRUSH_ACCUMULATE;
|
||||
}
|
||||
}
|
||||
|
||||
/* Defaults from T54943. */
|
||||
{
|
||||
for (Scene *scene = bmain->scene.first; scene; scene = scene->id.next) {
|
||||
scene->r.displaymode = R_OUTPUT_WINDOW;
|
||||
scene->r.size = 100;
|
||||
scene->unit.system = USER_UNIT_METRIC;
|
||||
STRNCPY(scene->view_settings.view_transform, "Filmic");
|
||||
}
|
||||
|
||||
for (bScreen *sc = bmain->screen.first; sc; sc = sc->id.next) {
|
||||
for (ScrArea *sa = sc->areabase.first; sa; sa = sa->next) {
|
||||
for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {
|
||||
switch (sl->spacetype) {
|
||||
case SPACE_VIEW3D:
|
||||
{
|
||||
View3D *v3d = (View3D *)sl;
|
||||
v3d->lens = 50;
|
||||
break;
|
||||
}
|
||||
case SPACE_BUTS:
|
||||
{
|
||||
SpaceButs *sbuts = (SpaceButs *)sl;
|
||||
sbuts->mainb = sbuts->mainbuser = BCONTEXT_OBJECT;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
ListBase *lb = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase;
|
||||
for (ARegion *ar = lb->first; ar; ar = ar->next) {
|
||||
if (ar->regiontype == RGN_TYPE_HEADER) {
|
||||
if (sl->spacetype != SPACE_ACTION) {
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (Camera *ca = bmain->camera.first; ca; ca = ca->id.next) {
|
||||
ca->lens = 50;
|
||||
ca->sensor_x = DEFAULT_SENSOR_WIDTH;
|
||||
ca->sensor_y = DEFAULT_SENSOR_HEIGHT;
|
||||
}
|
||||
|
||||
for (Lamp *la = bmain->lamp.first; la; la = la->id.next) {
|
||||
la->energy = 10.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -306,7 +306,7 @@ void ED_object_add_generic_props(wmOperatorType *ot, bool do_editmode)
|
|||
|
||||
void ED_object_add_mesh_props(wmOperatorType *ot)
|
||||
{
|
||||
RNA_def_boolean(ot->srna, "calc_uvs", false, "Generate UVs", "Generate a default UV map");
|
||||
RNA_def_boolean(ot->srna, "calc_uvs", true, "Generate UVs", "Generate a default UV map");
|
||||
}
|
||||
|
||||
bool ED_object_add_generic_get_opts(bContext *C, wmOperator *op, const char view_align_axis,
|
||||
|
|
|
@ -61,6 +61,8 @@ static SpaceLink *buttons_new(const ScrArea *UNUSED(area), const Scene *UNUSED(s
|
|||
sbuts->spacetype = SPACE_BUTS;
|
||||
sbuts->align = BUT_VERTICAL;
|
||||
|
||||
sbuts->mainb = sbuts->mainbuser = BCONTEXT_OBJECT;
|
||||
|
||||
/* header */
|
||||
ar = MEM_callocN(sizeof(ARegion), "header for buts");
|
||||
|
||||
|
|
|
@ -246,7 +246,7 @@ static SpaceLink *clip_new(const ScrArea *sa, const Scene *scene)
|
|||
|
||||
BLI_addtail(&sc->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* tools view */
|
||||
ar = MEM_callocN(sizeof(ARegion), "tools for clip");
|
||||
|
|
|
@ -67,7 +67,7 @@ static SpaceLink *console_new(const ScrArea *UNUSED(area), const Scene *UNUSED(s
|
|||
|
||||
BLI_addtail(&sconsole->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
|
||||
/* main region */
|
||||
|
|
|
@ -119,7 +119,7 @@ static SpaceLink *graph_new(const ScrArea *UNUSED(sa), const Scene *scene)
|
|||
|
||||
BLI_addtail(&sipo->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* channels */
|
||||
ar = MEM_callocN(sizeof(ARegion), "channels region for graphedit");
|
||||
|
|
|
@ -186,7 +186,7 @@ static SpaceLink *image_new(const ScrArea *UNUSED(area), const Scene *UNUSED(sce
|
|||
|
||||
BLI_addtail(&simage->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* buttons/list view */
|
||||
ar = MEM_callocN(sizeof(ARegion), "buttons for image");
|
||||
|
|
|
@ -78,7 +78,7 @@ static SpaceLink *info_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scen
|
|||
|
||||
BLI_addtail(&sinfo->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* main region */
|
||||
ar = MEM_callocN(sizeof(ARegion), "main region for info");
|
||||
|
|
|
@ -114,7 +114,7 @@ static SpaceLink *nla_new(const ScrArea *sa, const Scene *scene)
|
|||
|
||||
BLI_addtail(&snla->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* channel list region */
|
||||
ar = MEM_callocN(sizeof(ARegion), "channel list for nla");
|
||||
|
|
|
@ -317,7 +317,7 @@ static SpaceLink *node_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scen
|
|||
|
||||
BLI_addtail(&snode->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* buttons/list view */
|
||||
ar = MEM_callocN(sizeof(ARegion), "buttons for node");
|
||||
|
|
|
@ -493,7 +493,7 @@ static SpaceLink *outliner_new(const ScrArea *UNUSED(area), const Scene *UNUSED(
|
|||
|
||||
BLI_addtail(&soutliner->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* main region */
|
||||
ar = MEM_callocN(sizeof(ARegion), "main region for outliner");
|
||||
|
|
|
@ -76,7 +76,7 @@ static SpaceLink *script_new(const ScrArea *UNUSED(area), const Scene *UNUSED(sc
|
|||
|
||||
BLI_addtail(&sscript->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* main region */
|
||||
ar = MEM_callocN(sizeof(ARegion), "main region for script");
|
||||
|
|
|
@ -130,7 +130,7 @@ static SpaceLink *sequencer_new(const ScrArea *UNUSED(sa), const Scene *scene)
|
|||
|
||||
BLI_addtail(&sseq->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* buttons/list view */
|
||||
ar = MEM_callocN(sizeof(ARegion), "buttons for sequencer");
|
||||
|
|
|
@ -79,7 +79,7 @@ static SpaceLink *text_new(const ScrArea *UNUSED(area), const Scene *UNUSED(scen
|
|||
|
||||
BLI_addtail(&stext->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* properties region */
|
||||
ar = MEM_callocN(sizeof(ARegion), "properties region for text");
|
||||
|
|
|
@ -64,7 +64,7 @@ static SpaceLink *userpref_new(const ScrArea *UNUSED(area), const Scene *UNUSED(
|
|||
|
||||
BLI_addtail(&spref->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* main region */
|
||||
ar = MEM_callocN(sizeof(ARegion), "main region for userpref");
|
||||
|
|
|
@ -331,7 +331,7 @@ static SpaceLink *view3d_new(const ScrArea *UNUSED(sa), const Scene *scene)
|
|||
v3d->flag = V3D_SELECT_OUTLINE;
|
||||
v3d->flag2 = V3D_SHOW_RECONSTRUCTION | V3D_SHOW_GPENCIL;
|
||||
|
||||
v3d->lens = 35.0f;
|
||||
v3d->lens = 50.0f;
|
||||
v3d->near = 0.01f;
|
||||
v3d->far = 1000.0f;
|
||||
|
||||
|
@ -351,7 +351,7 @@ static SpaceLink *view3d_new(const ScrArea *UNUSED(sa), const Scene *scene)
|
|||
|
||||
BLI_addtail(&v3d->regionbase, ar);
|
||||
ar->regiontype = RGN_TYPE_HEADER;
|
||||
ar->alignment = RGN_ALIGN_BOTTOM;
|
||||
ar->alignment = RGN_ALIGN_TOP;
|
||||
|
||||
/* tool shelf */
|
||||
ar = MEM_callocN(sizeof(ARegion), "toolshelf for view3d");
|
||||
|
|
|
@ -163,8 +163,8 @@ enum {
|
|||
CAMERA_SENSOR_FIT_VERT = 2,
|
||||
};
|
||||
|
||||
#define DEFAULT_SENSOR_WIDTH 32.0f
|
||||
#define DEFAULT_SENSOR_HEIGHT 18.0f
|
||||
#define DEFAULT_SENSOR_WIDTH 36.0f
|
||||
#define DEFAULT_SENSOR_HEIGHT 24.0f
|
||||
|
||||
/* stereo->convergence_mode */
|
||||
enum {
|
||||
|
|
Loading…
Reference in New Issue