Blender V5.3
versioning_defaults.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_listbase.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_mempool.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_utildefines.hh"
#include "DNA_camera_types.h"
#include "DNA_curveprofile_types.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_light_types.h"
#include "DNA_mask_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_space_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_workspace_types.h"
#include "DNA_world_types.h"
#include "BKE_appdir.hh"
#include "BKE_attribute.hh"
#include "BKE_brush.hh"
#include "BKE_colortools.hh"
#include "BKE_curveprofile.h"
#include "BKE_customdata.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_idprop.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_main_namemap.hh"
#include "BKE_material.hh"
#include "BKE_mesh.hh"
#include "BKE_node_legacy_types.hh"
#include "BKE_node_runtime.hh"
#include "BKE_node_tree_update.hh"
#include "BKE_paint.hh"
#include "BKE_paint_types.hh"
#include "BKE_screen.hh"
#include "BKE_workspace.hh"
#include "BLO_readfile.hh"
#include "BLT_translation.hh"
#include "versioning_common.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define DNA_DEPRECATED_ALLOW
#define U   (*((const UserDef *)&U))

Functions

static bool blender::blo_is_builtin_template (const char *app_template)
static void blender::blo_update_defaults_screen (bScreen *screen, const char *app_template, const char *workspace_name)
void blender::BLO_update_defaults_workspace (WorkSpace *workspace, const char *app_template)
static void blender::blo_update_defaults_paint (Paint *paint)
static void blender::blo_update_defaults_windowmanager (wmWindowManager *wm)
static void blender::blo_update_defaults_scene (Main *bmain, Scene *scene)
void blender::BLO_update_defaults_startup_blend (Main *bmain, const char *app_template)

Detailed Description

This file handles updating the startup.blend, this is used when reading old files.

Unlike regular versioning this makes changes that ensure the startup file has brushes and other presets setup to take advantage of newer features.

To update preference defaults see versioning_userdef.cc.

Definition in file versioning_defaults.cc.

Macro Definition Documentation

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 16 of file versioning_defaults.cc.

◆ U

#define U   (*((const UserDef *)&U))

Definition at line 76 of file versioning_defaults.cc.