Blender V4.3
versioning_280.cc File Reference
#include <algorithm>
#include <cfloat>
#include <cstring>
#include "BLI_listbase.h"
#include "BLI_math_rotation.h"
#include "BLI_mempool.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "DNA_defaults.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_camera_types.h"
#include "DNA_cloth_types.h"
#include "DNA_collection_types.h"
#include "DNA_constraint_types.h"
#include "DNA_curve_types.h"
#include "DNA_curveprofile_types.h"
#include "DNA_fluid_types.h"
#include "DNA_freestyle_types.h"
#include "DNA_genfile.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_gpu_types.h"
#include "DNA_key_types.h"
#include "DNA_layer_types.h"
#include "DNA_light_types.h"
#include "DNA_lightprobe_types.h"
#include "DNA_linestyle_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_particle_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_shader_fx_types.h"
#include "DNA_text_types.h"
#include "DNA_texture_types.h"
#include "DNA_view3d_types.h"
#include "DNA_workspace_types.h"
#include "DNA_world_types.h"
#include "BKE_anim_data.hh"
#include "BKE_blender.hh"
#include "BKE_collection.hh"
#include "BKE_colortools.hh"
#include "BKE_constraint.h"
#include "BKE_curveprofile.h"
#include "BKE_customdata.hh"
#include "BKE_fcurve.hh"
#include "BKE_fcurve_driver.h"
#include "BKE_freestyle.h"
#include "BKE_gpencil_geom_legacy.h"
#include "BKE_idprop.hh"
#include "BKE_key.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_legacy_convert.hh"
#include "BKE_node.hh"
#include "BKE_paint.hh"
#include "BKE_pointcache.h"
#include "BKE_report.hh"
#include "BKE_rigidbody.h"
#include "BKE_screen.hh"
#include "BKE_studiolight.h"
#include "BKE_unit.hh"
#include "BKE_workspace.hh"
#include "SEQ_iterator.hh"
#include "SEQ_modifier.hh"
#include "SEQ_utils.hh"
#include "NOD_shader.h"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf.hh"
#include "BLT_translation.hh"
#include "BLO_read_write.hh"
#include "BLO_readfile.hh"
#include "readfile.hh"
#include "versioning_common.hh"
#include "MEM_guardedalloc.h"

Go to the source code of this file.

Macros

#define DNA_DEPRECATED_ALLOW
 
#define DNA_GENFILE_VERSIONING_MACROS
 
#define U   (*((const UserDef *)&U))
 
#define CUMA_EXTEND_EXTRAPOLATE_OLD   1
 
#define EEVEE_GET_BOOL(_props, _name, _flag)
 
#define EEVEE_GET_INT(_props, _name)
 
#define EEVEE_GET_FLOAT(_props, _name)
 
#define EEVEE_GET_FLOAT_ARRAY(_props, _name, _length)
 
#define PAINT_BLEND_MIX   0
 
#define PAINT_BLEND_ADD   1
 
#define PAINT_BLEND_SUB   2
 
#define PAINT_BLEND_MUL   3
 
#define PAINT_BLEND_BLUR   4
 
#define PAINT_BLEND_LIGHTEN   5
 
#define PAINT_BLEND_DARKEN   6
 
#define PAINT_BLEND_AVERAGE   7
 
#define PAINT_BLEND_SMEAR   8
 
#define PAINT_BLEND_COLORDODGE   9
 
#define PAINT_BLEND_DIFFERENCE   10
 
#define PAINT_BLEND_SCREEN   11
 
#define PAINT_BLEND_HARDLIGHT   12
 
#define PAINT_BLEND_OVERLAY   13
 
#define PAINT_BLEND_SOFTLIGHT   14
 
#define PAINT_BLEND_EXCLUSION   15
 
#define PAINT_BLEND_LUMINOSITY   16
 
#define PAINT_BLEND_SATURATION   17
 
#define PAINT_BLEND_HUE   18
 
#define PAINT_BLEND_ALPHA_SUB   19
 
#define PAINT_BLEND_ALPHA_ADD   20
 

Enumerations

enum class  eNTreeDoVersionErrors : int8_t { NTREE_DOVERSION_NO_ERROR = 0 , NTREE_DOVERSION_NEED_OUTPUT = (1 << 0) , NTREE_DOVERSION_TRANSPARENCY_EMISSION = (1 << 1) }
 

Functions

static bScreenscreen_parent_find (const bScreen *screen)
 
static void do_version_workspaces_create_from_screens (Main *bmain)
 
static void do_version_area_change_space_to_space_action (ScrArea *area, const Scene *scene)
 
static void do_version_workspaces_after_lib_link (Main *bmain)
 After lib-link versioning for new workspace design.
 
static void do_version_layers_to_collections (Main *bmain, Scene *scene)
 
static void do_version_collection_propagate_lib_to_children (Collection *collection)
 
static void do_versions_fix_annotations (bGPdata *gpd)
 
static void do_versions_remove_region (ListBase *regionbase, ARegion *region)
 
static void do_versions_remove_regions_by_type (ListBase *regionbase, int regiontype)
 
static ARegiondo_versions_find_region_or_null (ListBase *regionbase, int regiontype)
 
static ARegiondo_versions_find_region (ListBase *regionbase, int regiontype)
 
static void do_versions_area_ensure_tool_region (Main *bmain, const short space_type, const short region_flag)
 
static void do_version_bones_split_bbone_scale (ListBase *lb)
 
static void do_version_bones_inherit_scale (ListBase *lb)
 
static bool replace_bbone_scale_rnapath (char **p_old_path)
 
static void do_version_bbone_scale_fcurve_fix (ListBase *curves, FCurve *fcu)
 
static void do_version_constraints_maintain_volume_mode_uniform (ListBase *lb)
 
static void do_version_constraints_copy_scale_power (ListBase *lb)
 
static void do_version_constraints_copy_rotation_mix_mode (ListBase *lb)
 
static void do_versions_seq_alloc_transform_and_crop (ListBase *seqbase)
 
static void do_versions_material_convert_legacy_blend_mode (bNodeTree *ntree, char blend_method)
 
static void do_versions_local_collection_bits_set (LayerCollection *layer_collection)
 
static void do_version_curvemapping_flag_extend_extrapolate (CurveMapping *cumap)
 
static void do_version_curvemapping_walker (Main *bmain, void(*callback)(CurveMapping *cumap))
 
static void displacement_node_insert (bNodeTree *ntree)
 
static void displacement_principled_nodes (bNode *node)
 
static void square_roughness_node_insert (bNodeTree *ntree)
 
static void mapping_node_order_flip (bNode *node)
 
static void vector_curve_node_remap (bNode *node)
 
static void ambient_occlusion_node_relink (bNodeTree *ntree)
 
static void image_node_colorspace (bNode *node)
 
static void light_emission_node_to_energy (Light *light, float *energy, float color[3])
 
static void light_emission_unify (Light *light, const char *engine)
 
static void update_math_node_single_operand_operators (bNodeTree *ntree)
 
static void update_vector_math_node_add_and_subtract_operators (bNodeTree *ntree)
 
static void update_vector_math_node_dot_product_operator (bNodeTree *ntree)
 
static void update_vector_math_node_cross_product_operator (bNodeTree *ntree)
 
static void update_vector_math_node_normalize_operator (bNodeTree *ntree)
 
static void update_vector_math_node_operators_enum_mapping (bNodeTree *ntree)
 
static void update_vector_math_node_average_operator (bNodeTree *ntree)
 
static void update_noise_node_dimensions (bNodeTree *ntree)
 
static void update_mapping_node_fcurve_rna_path_callback (FCurve *fcurve, const char *nodePath, const bNode *minimumNode, const bNode *maximumNode)
 
static void update_mapping_node_inputs_and_properties (bNodeTree *ntree)
 
static void update_musgrave_node_dimensions (bNodeTree *ntree)
 
static void update_musgrave_node_color_output (bNodeTree *ntree)
 
static void update_voronoi_node_dimensions (bNodeTree *ntree)
 
static void update_voronoi_node_f3_and_f4 (bNodeTree *ntree)
 
static void update_voronoi_node_fac_output (bNodeTree *ntree)
 
static void update_voronoi_node_crackle (bNodeTree *ntree)
 
static void update_voronoi_node_coloring (bNodeTree *ntree)
 
static void update_voronoi_node_square_distance (bNodeTree *ntree)
 
static void update_noise_and_wave_distortion (bNodeTree *ntree)
 
static void update_wave_node_directions_and_offset (bNodeTree *ntree)
 
void do_versions_after_linking_280 (FileData *fd, Main *bmain)
 
static void do_versions_seq_unique_name_all_strips (Scene *sce, ListBase *seqbasep)
 
static void do_versions_seq_set_cache_defaults (Editing *ed)
 
static bool seq_update_flags_cb (Sequence *seq, void *)
 
 ENUM_OPERATORS (eNTreeDoVersionErrors, ~int8_t{})
 
void blo_do_versions_280 (FileData *fd, Library *, Main *bmain)
 

Macro Definition Documentation

◆ CUMA_EXTEND_EXTRAPOLATE_OLD

#define CUMA_EXTEND_EXTRAPOLATE_OLD   1

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 10 of file versioning_280.cc.

◆ DNA_GENFILE_VERSIONING_MACROS

#define DNA_GENFILE_VERSIONING_MACROS

Definition at line 23 of file versioning_280.cc.

◆ EEVEE_GET_BOOL

#define EEVEE_GET_BOOL ( _props,
_name,
_flag )
Value:
{ \
IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
if (_idprop != nullptr) { \
const int _value = IDP_Int(_idprop); \
if (_value) { \
scene->eevee.flag |= _flag; \
} \
else { \
scene->eevee.flag &= ~_flag; \
} \
} \
} \
((void)0)
#define IDP_Int(prop)
IDProperty * IDP_GetPropertyFromGroup(const IDProperty *prop, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
Definition idprop.cc:763

Referenced by blo_do_versions_280().

◆ EEVEE_GET_FLOAT

#define EEVEE_GET_FLOAT ( _props,
_name )
Value:
{ \
IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
if (_idprop != nullptr) { \
scene->eevee._name = IDP_Float(_idprop); \
} \
} \
((void)0)
#define IDP_Float(prop)

Referenced by blo_do_versions_280().

◆ EEVEE_GET_FLOAT_ARRAY

#define EEVEE_GET_FLOAT_ARRAY ( _props,
_name,
_length )
Value:
{ \
IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
if (_idprop != nullptr) { \
const float *_values = static_cast<float *>(IDP_Array(_idprop)); \
for (int _i = 0; _i < _length; _i++) { \
scene->eevee._name[_i] = _values[_i]; \
} \
} \
} \
((void)0)
#define IDP_Array(prop)

◆ EEVEE_GET_INT

#define EEVEE_GET_INT ( _props,
_name )
Value:
{ \
IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
if (_idprop != nullptr) { \
scene->eevee._name = IDP_Int(_idprop); \
} \
} \
((void)0)

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_ADD

#define PAINT_BLEND_ADD   1

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_ALPHA_ADD

#define PAINT_BLEND_ALPHA_ADD   20

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_ALPHA_SUB

#define PAINT_BLEND_ALPHA_SUB   19

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_AVERAGE

#define PAINT_BLEND_AVERAGE   7

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_BLUR

#define PAINT_BLEND_BLUR   4

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_COLORDODGE

#define PAINT_BLEND_COLORDODGE   9

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_DARKEN

#define PAINT_BLEND_DARKEN   6

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_DIFFERENCE

#define PAINT_BLEND_DIFFERENCE   10

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_EXCLUSION

#define PAINT_BLEND_EXCLUSION   15

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_HARDLIGHT

#define PAINT_BLEND_HARDLIGHT   12

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_HUE

#define PAINT_BLEND_HUE   18

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_LIGHTEN

#define PAINT_BLEND_LIGHTEN   5

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_LUMINOSITY

#define PAINT_BLEND_LUMINOSITY   16

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_MIX

#define PAINT_BLEND_MIX   0

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_MUL

#define PAINT_BLEND_MUL   3

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_OVERLAY

#define PAINT_BLEND_OVERLAY   13

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_SATURATION

#define PAINT_BLEND_SATURATION   17

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_SCREEN

#define PAINT_BLEND_SCREEN   11

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_SMEAR

#define PAINT_BLEND_SMEAR   8

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_SOFTLIGHT

#define PAINT_BLEND_SOFTLIGHT   14

Referenced by blo_do_versions_280().

◆ PAINT_BLEND_SUB

#define PAINT_BLEND_SUB   2

Referenced by blo_do_versions_280().

◆ U

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

Definition at line 112 of file versioning_280.cc.

Enumeration Type Documentation

◆ eNTreeDoVersionErrors

enum class eNTreeDoVersionErrors : int8_t
strong
Enumerator
NTREE_DOVERSION_NO_ERROR 
NTREE_DOVERSION_NEED_OUTPUT 
NTREE_DOVERSION_TRANSPARENCY_EMISSION 

Definition at line 3020 of file versioning_280.cc.

Function Documentation

◆ ambient_occlusion_node_relink()

◆ blo_do_versions_280()

void blo_do_versions_280 ( FileData * fd,
Library * lib,
Main * bmain )

Always bump subversion in BKE_blender_version.h when adding versioning code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.

Note
Keep this message at the bottom of the function.

Definition at line 3028 of file versioning_280.cc.

References abs(), SpaceAction::action, Main::actions, RemeshModifierData::adaptivity, ARegion::alignment, ARM_BCOLL_SOLO_ACTIVE, ARM_DRAW_RELATION_FROM_HEAD, ARM_FLAG_UNUSED_1, ARM_FLAG_UNUSED_12, ARM_FLAG_UNUSED_7, ARM_FLAG_UNUSED_9, Main::armatures, ARRAY_SET_ITEMS, ARRAY_SIZE, BrushGpencilSettings::aspect_ratio, atanf, B_UNIT_LENGTH, B_UNIT_MASS, B_UNIT_TIME, View3DShading::background_color, ClothSimSettings::bending_model, BKE_animdata_main_cb(), BKE_area_region_free(), BKE_color_managed_display_settings_init(), BKE_color_managed_view_settings_init_render(), BKE_constraint_free_data(), BKE_curvemap_reset(), BKE_curvemapping_add(), BKE_curvemapping_init(), BKE_curveprofile_add(), BKE_gpencil_stroke_geometry_update(), BKE_main_id_repair_duplicate_names_listbase(), BKE_ptcache_add(), BKE_report(), BKE_screen_area_free(), BKE_screen_remove_double_scredges(), BKE_screen_remove_unused_scredges(), BKE_screen_remove_unused_scrverts(), BKE_screen_view3d_shading_init(), BKE_spacedata_find_region_type(), BKE_spacetype_from_id(), BKE_studiolight_find(), BKE_studiolight_find_default(), BKE_unit_base_of_type_get(), BKE_workspace_tool_remove(), blend, BLI_addhead(), BLI_addtail(), BLI_assert, BLI_freelinkN(), BLI_insertlinkafter(), BLI_insertlinkbefore(), BLI_listbase_clear(), BLI_listbase_is_empty(), BLI_remlink(), BLI_str_startswith(), GlowShaderFxData::blur, BRUSH_POSE_IK_ANCHORED, Main::brushes, ParticleEditSettings::brushtype, Main::cameras, View3DShading::cavity_ridge_factor, View3DShading::cavity_valley_factor, CD_PROP_FLOAT2, View3D::clip_end, View3D::clip_start, CurveMapping::clipr, ParticleSystem::clmd, CLOTH_BENDING_LINEAR, CLOTH_COLLSETTINGS_FLAG_ENABLED, CLOTH_SIMSETTINGS_FLAG_GOAL, CLOTH_SIMSETTINGS_FLAG_SCALING, CLOTH_SIMSETTINGS_FLAG_SEW, CurveMapping::cm, ClothModifierData::coll_parms, COLLECTION_HIDE_RENDER, COLLECTION_HIDE_SELECT, COLLECTION_HIDE_VIEWPORT, View3DShading::color_type, ClothSimSettings::compression, ClothSimSettings::compression_damp, CONSTRAINT_SPACE_LOCAL, CONSTRAINT_SPACE_WORLD, CONSTRAINT_SPLINEIK_YS_FIT_CURVE, CONSTRAINT_TYPE_SPLINEIK, CONSTRAINT_TYPE_TRANSFORM_CACHE, copy_v2_fl(), copy_v2_v2(), copy_v3_fl(), copy_v3_v3(), GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, View3DShading::curvature_ridge_factor, View3DShading::curvature_valley_factor, ColorGpencilModifierData::curve_intensity, NoiseGpencilModifierData::curve_intensity, OpacityGpencilModifierData::curve_intensity, SmoothGpencilModifierData::curve_intensity, TintGpencilModifierData::curve_intensity, CURVE_PRESET_BELL, CURVE_PRESET_GAUSS, CURVEMAP_SLOPE_POSITIVE, ToolSettings::custom_bevel_profile_preset, BevelModifierData::custom_profile, CustomData_free_layers(), CustomData_get_layer(), CustomData_has_layer(), CustomData_update_typemap(), DataTransferModifierData::defgrp_name, FileSelectParams::details_flags, DNA_struct_default_get, do_version_bbone_scale_fcurve_fix(), do_version_bones_inherit_scale(), do_version_bones_split_bbone_scale(), do_version_constraints_copy_rotation_mix_mode(), do_version_constraints_copy_scale_power(), do_version_constraints_maintain_volume_mode_uniform(), do_version_curvemapping_flag_extend_extrapolate(), do_version_curvemapping_walker(), do_versions_add_region(), do_versions_area_ensure_tool_region(), do_versions_find_region(), do_versions_find_region_or_null(), do_versions_local_collection_bits_set(), do_versions_remove_region(), do_versions_remove_regions_by_type(), do_versions_seq_alloc_transform_and_crop(), do_versions_seq_set_cache_defaults(), do_versions_seq_unique_name_all_strips(), FluidModifierData::domain, AnimData::drivers, View3DOverlay::edit_flag, EEVEE_GET_BOOL, EEVEE_GET_FLOAT, EEVEE_GET_INT, eGpencilModifierType_Array, eGpencilModifierType_Color, eGpencilModifierType_Multiply, eGpencilModifierType_Noise, eGpencilModifierType_Opacity, eGpencilModifierType_Smooth, eGpencilModifierType_Subdiv, eGpencilModifierType_Thick, eGpencilModifierType_Tint, ELEM, eModifierType_Bevel, eModifierType_Cloth, eModifierType_CorrectiveSmooth, eModifierType_DataTransfer, eModifierType_Fluid, eModifierType_Multires, eModifierType_Ocean, eModifierType_ParticleSystem, eModifierType_Remesh, eModifierType_Shrinkwrap, eModifierType_Solidify, eModifierType_Subsurf, eModifierType_SurfaceDeform, eModifierType_Triangulate, eModifierType_UVWarp, eMultiresModifierFlag_PlainUv_DEPRECATED, eMultiresModifierFlag_UseCrease, BrushGpencilSettings::era_strength_f, BrushGpencilSettings::era_thickness_f, error(), eShaderFxColorizeMode_GrayScale, eShaderFxColorizeMode_Sepia, eShaderFxType_Colorize, eShaderFxType_Glow, eShaderFxType_Pixel, eShaderFxType_Rim, eShaderFxType_Shadow, eSubsurfModifierFlag_SubsurfUv_DEPRECATED, eSubsurfModifierFlag_UseCrease, ColorizeShaderFxData::factor, NoiseGpencilModifierData::factor, NoiseGpencilModifierData::factor_strength, NoiseGpencilModifierData::factor_thickness, NoiseGpencilModifierData::factor_uvs, MultiplyGpencilModifierData::fading_opacity, OceanModifierData::fetch_jonswap, RenderData::ffcodecdata, FFM_PRESET_BEST, FFM_PRESET_GOOD, FFM_PRESET_REALTIME, FFMpegCodecData::ffmpeg_preset, FILE_DETAILS_DATETIME, FILE_DETAILS_SIZE, FILE_PARAMS_FLAG_UNUSED_1, FILE_PARAMS_FLAG_UNUSED_2, FILE_PARAMS_FLAG_UNUSED_3, FileData::filesdna, MaterialGPencilStyle::fill_rgba, MaterialGPencilStyle::fill_style, SpaceOutliner::filter, SpaceOutliner::filter_id_type, ListBase::first, ARegion::flag, ArrayGpencilModifierData::flag, FileSelectParams::flag, ID::flag, MaterialGPencilStyle::flag, NoiseGpencilModifierData::flag, ParticleEditSettings::flag, SpaceAction::flag, SpaceGraph::flag, SpaceImage::flag, SpaceNla::flag, SpaceNode::flag, SpaceOutliner::flag, SpaceProperties::flag, SpaceSeq::flag, SubdivGpencilModifierData::flag, UnifiedPaintSettings::flag, View3D::flag, View3DOverlay::flag, View3DShading::flag, View3D::flag2, ClothCollSettings::flags, ClothSimSettings::flags, MultiresModifierData::flags, Sculpt::flags, SubsurfModifierData::flags, FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, View3D::gizmo_show_armature, View3D::gizmo_show_camera, View3D::gizmo_show_empty, View3D::gizmo_show_light, GlowShaderFxData::glow_color, GP_ARRAY_USE_OB_OFFSET, GP_ARRAY_USE_OFFSET, GP_DATA_ANNOTATIONS, GP_DEFAULT_GRID_LINES, GP_DEFAULT_PIX_FACTOR, View3D::gp_flag, GP_LAYER_USE_LIGHTS, GP_LOCKAXIS_Y, GP_MATERIAL_FILL_SHOW, GP_MATERIAL_FILL_STYLE_CHECKER, GP_MATERIAL_FILL_STYLE_GRADIENT, GP_MATERIAL_FILL_STYLE_SOLID, GP_MATERIAL_FILL_STYLE_TEXTURE, GP_MATERIAL_STROKE_PATTERN, GP_MATERIAL_STROKE_SHOW, GP_MATERIAL_STROKE_TEX_MIX, GP_NOISE_FULL_STROKE, GP_NOISE_MOD_LOCATION, GP_NOISE_MOD_STRENGTH, GP_NOISE_MOD_THICKNESS, GP_NOISE_MOD_UV, GP_PROJECT_CURSOR, GP_PROJECT_VIEWSPACE, GP_SUBDIV_SIMPLE, GPAINT_BRUSH_TYPE_ERASE, View3DOverlay::gpencil_fade_layer, View3DOverlay::gpencil_grid_opacity, View3DOverlay::gpencil_paper_opacity, View3DOverlay::gpencil_vertex_paint_opacity, Main::gpencils, FluidDomainSettings::gravity, View3D::gridflag, BrushGpencilSettings::hardness, ColorizeShaderFxData::high_color, bNodeTree::id, ID_BR, ID_FLAG_EMBEDDED_DATA, ID_GR, IDP_FreeProperty(), IDP_GetPropertyFromGroup(), IMA_ALPHA_IGNORE, IMA_FLAG_UNUSED_1, IMA_FLAG_UNUSED_15, IMA_FLAG_UNUSED_16, IMA_FLAG_UNUSED_4, IMA_FLAG_UNUSED_6, IMA_FLAG_UNUSED_8, IMA_HIGH_BITDEPTH, IMA_TYPE_R_RESULT, Main::images, IMB_BLEND_ADD, IMB_BLEND_ADD_ALPHA, IMB_BLEND_COLORDODGE, IMB_BLEND_DARKEN, IMB_BLEND_DIFFERENCE, IMB_BLEND_ERASE_ALPHA, IMB_BLEND_EXCLUSION, IMB_BLEND_HARDLIGHT, IMB_BLEND_HUE, IMB_BLEND_LIGHTEN, IMB_BLEND_LUMINOSITY, IMB_BLEND_MIX, IMB_BLEND_MUL, IMB_BLEND_OVERLAY, IMB_BLEND_SATURATION, IMB_BLEND_SCREEN, IMB_BLEND_SOFTLIGHT, IMB_BLEND_SUB, ClothSimSettings::internal_compression, ClothSimSettings::internal_spring_max_diversion, ClothSimSettings::internal_tension, is_zero_v3(), GP_Sculpt_Settings::isect_threshold, LA_AREA, LA_LOCAL, LA_SHADOW, LA_SPOT, LA_SUN, LayerCollection::layer_collections, UnitSettings::length_unit, View3DShading::light, Main::lightprobes, Main::lights, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, GP_Sculpt_Settings::lock_axis, ColorManagedViewSettings::look, View3DShading::lookdev_light, ColorizeShaderFxData::low_color, M_PI_4, M_SQRT1_3, MA_BM_SOLID, MA_BS_SOLID, MAIN_VERSION_FILE_ATLEAST, RimShaderFxData::mask_rgb, View3DShading::matcap, Main::materials, ClothSimSettings::max_compression, ClothSimSettings::max_internal_compression, ClothSimSettings::max_internal_tension, ClothSimSettings::max_shear, ClothSimSettings::max_tension, ME_FLAG_UNUSED_0, ME_FLAG_UNUSED_1, ME_FLAG_UNUSED_3, ME_FLAG_UNUSED_4, ME_FLAG_UNUSED_6, ME_FLAG_UNUSED_7, ME_REMESH_REPROJECT_ATTRIBUTES, MEM_callocN, MEM_freeN(), SolidifyModifierData::merge_tolerance, Main::meshes, min_ii(), TriangulateModifierData::min_vertices, DataTransferModifierData::mix_factor, MaterialGPencilStyle::mix_stroke_factor, MOD_SHRINKWRAP_ABOVE_SURFACE, ColorizeShaderFxData::mode, SpaceAction::mode_prev, mul_v3_fl(), RenderSlot::name, StudioLight::name, ARegion::next, bConstraint::next, blender::bke::node_tree_from_id(), NoiseGpencilModifierData::noise_scale, View3DOverlay::normals_length, NTREE_DOVERSION_NEED_OUTPUT, NTREE_DOVERSION_NO_ERROR, NTREE_DOVERSION_TRANSPARENCY_EMISSION, NTREE_SHADER, OB_ADS_UNUSED_1, OB_ADS_UNUSED_2, OB_EMPTY, OB_EMPTY_IMAGE_HIDE_BACK, OB_EMPTY_IMAGE_HIDE_ORTHOGRAPHIC, OB_EMPTY_IMAGE_HIDE_PERSPECTIVE, OB_FLAG_USE_SIMULATION_CACHE, OB_GPENCIL_LEGACY, OB_MATERIAL, OB_MODE_SCULPT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OB_RENDER, OB_SOLID, OB_TEXTURE, OB_TRANSFLAG_UNUSED_1, OB_TRANSFLAG_UNUSED_12, OB_TRANSFLAG_UNUSED_3, OB_TRANSFLAG_UNUSED_6, OB_TRANSFORM_ADJUST_ROOT_PARENT_FOR_VIEW_LOCK, ArrayGpencilModifierData::object, Main::objects, ArrayGpencilModifierData::offset, SpaceFile::op, SpaceOutliner::outlinevis, View3D::overlay, PAINT_BLEND_ADD, PAINT_BLEND_ALPHA_ADD, PAINT_BLEND_ALPHA_SUB, PAINT_BLEND_AVERAGE, PAINT_BLEND_BLUR, PAINT_BLEND_COLORDODGE, PAINT_BLEND_DARKEN, PAINT_BLEND_DIFFERENCE, PAINT_BLEND_EXCLUSION, PAINT_BLEND_HARDLIGHT, PAINT_BLEND_HUE, PAINT_BLEND_LIGHTEN, PAINT_BLEND_LUMINOSITY, PAINT_BLEND_MIX, PAINT_BLEND_MUL, PAINT_BLEND_OVERLAY, PAINT_BLEND_SATURATION, PAINT_BLEND_SCREEN, PAINT_BLEND_SMEAR, PAINT_BLEND_SOFTLIGHT, PAINT_BLEND_SUB, SpaceFile::params, PAROBJECT, PART_DRAW_BB, PART_DRAW_NOT, PART_SHAPE_CLOSE_TIP, ToolSettings::particle, Main::particles, PE_BRUSH_COMB, RigidBodyWorld_Shared::pointcache, SoftBody_Shared::pointcache, ClothSimSettings::pressure_factor, View3DShading::prev_type, printf, PROF_PRESET_LINE, View3DShading::prop, ParticleSystemModifierData::psys, RigidBodyWorld_Shared::ptcaches, SoftBody_Shared::ptcaches, MultiresModifierData::quality, SubsurfModifierData::quality, R_ADDSKY, R_ALPHAPREMUL, R_MODE_UNUSED_10, R_MODE_UNUSED_13, R_MODE_UNUSED_16, R_MODE_UNUSED_17, R_MODE_UNUSED_18, R_MODE_UNUSED_19, R_MODE_UNUSED_2, R_MODE_UNUSED_20, R_MODE_UNUSED_21, R_MODE_UNUSED_27, R_MODE_UNUSED_3, R_MODE_UNUSED_4, R_MODE_UNUSED_5, R_MODE_UNUSED_6, R_MODE_UNUSED_7, R_MODE_UNUSED_8, R_SCEMODE_UNUSED_11, R_SCEMODE_UNUSED_13, R_SCEMODE_UNUSED_16, R_SCEMODE_UNUSED_17, R_SCEMODE_UNUSED_19, R_SCEMODE_UNUSED_8, R_SEQ_UNUSED_0, R_SEQ_UNUSED_1, R_SEQ_UNUSED_2, R_SIMPLIFY_NORMALS, RBC_TYPE_6DOF_SPRING, RBC_TYPE_MOTOR, RBC_TYPE_SLIDER, RE_engine_id_BLENDER_EEVEE, RE_engine_id_BLENDER_WORKBENCH, RE_engine_id_CYCLES, ARegion::regiontype, View3DShading::render_pass, SubsurfModifierData::renderLevels, BlendFileReadReport::reports, FileData::reports, TintGpencilModifierData::rgb, PixelShaderFxData::rgba, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_FLAG_DYNAMIC_SIZE, RGN_FLAG_HIDDEN, RGN_FLAG_HIDDEN_BY_USER, RGN_SPLIT_PREV, RGN_TYPE_EXECUTE, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_PREVIEW, RGN_TYPE_TOOL_HEADER, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, RimShaderFxData::rim_rgb, ROT_MODE_XYZ, RPT_ERROR, SACTCONT_DOPESHEET, SACTION_SHOW_EXTREMES, SACTION_SHOW_INTERPOLATION, SACTION_SHOW_MARKERS, SB_FLAG_UNUSED_2, SB_FLAG_UNUSED_3, SC_VIEW_GRAPH, CorrectiveSmoothModifierData::scale, UVWarpModifierData::scale, SCE_DISPLAY_AA_FXAA, SCE_DISPLAY_AA_SAMPLES_8, SCE_EEVEE_GTAO_ENABLED, SCE_EEVEE_MOTION_BLUR_ENABLED_DEPRECATED, SCE_EEVEE_SSR_ENABLED, SCE_EEVEE_TAA_REPROJECTION, SCE_PASS_COMBINED, SCE_SNAP_TO_GRID, SCE_SNAP_TO_NODE_X, SCE_SNAP_TRANSFORM_MODE_TRANSLATE, Main::scenes, Main::screens, ToolSettings::sculpt, SCULPT_BRUSH_TYPE_CLAY_STRIPS, SCULPT_BRUSH_TYPE_CLOTH, SCULPT_BRUSH_TYPE_POSE, SCULPT_FLAG_UNUSED_0, SCULPT_FLAG_UNUSED_1, SCULPT_FLAG_UNUSED_2, View3DOverlay::sculpt_mode_face_sets_opacity, View3DOverlay::sculpt_mode_mask_opacity, ArrayGpencilModifierData::seed, GlowShaderFxData::select_color, ClothCollSettings::selfepsilon, SEQ_for_each_callback(), SEQ_SHOW_MARKERS, SEQ_TIMELINE_SHOW_FCURVES, seq_update_flags_cb(), SET_FLAG_FROM_TEST, SH_NODE_BSDF_PRINCIPLED, SH_NODE_EEVEE_SPECULAR, SH_NODE_OUTPUT_MATERIAL, View3D::shading, View3DShading::shadow_intensity, ShadowShaderFxData::shadow_rgba, RigidBodyWorld::shared, SoftBody::shared, SHD_GLOSSY_MULTI_GGX, SHD_SUBSURFACE_BURLEY, ClothSimSettings::shear, ClothSimSettings::shear_damp, ArrayGpencilModifierData::shift, SpaceOutliner::show_restrict_flags, ClothSimSettings::shrink_min, ShrinkwrapModifierData::shrinkMode, ShrinkwrapModifierData::shrinkOpts, SI_FLAG_UNUSED_0, SI_FLAG_UNUSED_1, SI_FLAG_UNUSED_17, SI_FLAG_UNUSED_18, SI_FLAG_UNUSED_23, SI_FLAG_UNUSED_24, SI_FLAG_UNUSED_3, SI_FLAG_UNUSED_6, SI_FLAG_UNUSED_7, SI_FLAG_UNUSED_8, ClothModifierData::sim_parms, View3DShading::single_color, SIPO_SHOW_MARKERS, SNLA_FLAG_UNUSED_0, SNLA_FLAG_UNUSED_1, SNLA_FLAG_UNUSED_3, SNLA_SHOW_MARKERS, SNODE_FLAG_UNUSED_10, SNODE_FLAG_UNUSED_11, SNODE_FLAG_UNUSED_6, SNPRINTF, SO_DATA_API, SO_FILTER_CLEARED_1, SO_FILTER_OB_STATE_SELECTABLE, SO_FILTER_UNUSED_5, SO_ID_ORPHANS, SO_LIBRARIES, SO_RESTRICT_ENABLE, SO_RESTRICT_HIDE, SO_SCENES, SO_SEQUENCE, SO_SYNC_SELECT, SO_TREESTORE_UNUSED_1, SO_VIEW_LAYER, SPACE_ACTION, SPACE_CLIP, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_INFO, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SEQ, SPACE_TEXT, SPACE_USERPREF, SPACE_VIEW3D, srgb_to_linearrgb_v3_v3(), srgb_to_linearrgb_v4(), SpaceOutliner::storeflag, STR_ELEM, SurfaceDeformModifierData::strength, STREQ, STRNCPY, MaterialGPencilStyle::stroke_rgba, View3DShading::studio_light, View3DShading::studiolight_blur, View3DShading::studiolight_intensity, STUDIOLIGHT_TYPE_MATCAP, STUDIOLIGHT_TYPE_WORLD, SUBSURF_UV_SMOOTH_NONE, SUBSURF_UV_SMOOTH_PRESERVE_CORNERS, SpaceOutliner::sync_select_dirty, ClothSimSettings::tension, ClothSimSettings::tension_damp, tex, Main::texts, MaterialGPencilStyle::texture_angle, MaterialGPencilStyle::texture_offset, View3DOverlay::texture_paint_mode_opacity, MaterialGPencilStyle::texture_scale, Main::textures, ThickGpencilModifierData::thickness, ThickGpencilModifierData::thickness_fac, tile, SpaceImage::tile_grid_shape, TXT_FLAG_UNUSED_8, TXT_FLAG_UNUSED_9, bConstraint::type, RigidBodyCon::type, SubdivGpencilModifierData::type, Tex::type, View3DShading::type, UNIFIED_PAINT_FLAG_UNUSED_0, UNIFIED_PAINT_FLAG_UNUSED_1, ToolSettings::unified_paint_settings, update_musgrave_node_color_output(), update_vector_math_node_operators_enum_mapping(), update_voronoi_node_f3_and_f4(), update_voronoi_node_fac_output(), USER_HEADER_BOTTOM, USER_UNIT_ADAPTIVE, USER_UNIT_NONE, MultiresModifierData::uv_smooth, SubsurfModifierData::uv_smooth, V2D_SCROLL_RIGHT, V3D_AROUND_CENTER_MEDIAN, V3D_FLAG2_UNUSED_12, V3D_FLAG2_UNUSED_13, V3D_FLAG2_UNUSED_14, V3D_FLAG2_UNUSED_15, V3D_FLAG2_UNUSED_6, V3D_FLAG_UNUSED_1, V3D_FLAG_UNUSED_10, V3D_FLAG_UNUSED_12, V3D_GIZMO_SHOW_ARMATURE_BBONE, V3D_GIZMO_SHOW_ARMATURE_ROLL, V3D_GIZMO_SHOW_CAMERA_DOF_DIST, V3D_GIZMO_SHOW_CAMERA_LENS, V3D_GIZMO_SHOW_EMPTY_FORCE_FIELD, V3D_GIZMO_SHOW_EMPTY_IMAGE, V3D_GIZMO_SHOW_LIGHT_LOOK_AT, V3D_GIZMO_SHOW_LIGHT_SIZE, V3D_GP_SHOW_EDIT_LINES, V3D_LIGHTING_STUDIO, V3D_LOCAL_COLLECTIONS, V3D_OFSDRAW_SHOW_ANNOTATION, V3D_OFSDRAW_SHOW_GRIDFLOOR, V3D_OVERLAY_EDIT_BWEIGHTS, V3D_OVERLAY_EDIT_CREASES, V3D_OVERLAY_EDIT_FACES, V3D_OVERLAY_EDIT_FREESTYLE_EDGE, V3D_OVERLAY_EDIT_FREESTYLE_FACE, V3D_OVERLAY_EDIT_RETOPOLOGY, V3D_OVERLAY_EDIT_SEAMS, V3D_OVERLAY_EDIT_SHARP, V3D_SHADING_BACKFACE_CULLING, V3D_SHADING_MATERIAL_COLOR, V3D_SHADING_OBJECT_OUTLINE, V3D_SHADING_SCENE_LIGHTS_RENDER, V3D_SHADING_SCENE_WORLD_RENDER, V3D_SHADING_SINGLE_COLOR, V3D_SHADING_SPECULAR_HIGHLIGHT, V3D_SHADING_TEXTURE_COLOR, V3D_SHADING_WORLD_ORIENTATION, V3D_SHADING_XRAY_WIREFRAME, V3D_SHOW_ORTHO_GRID, version_cycles_properties_from_ID(), version_cycles_property_boolean(), version_cycles_property_float(), bGPDspoint::vert_color, View3D::vertex_opacity, View3DOverlay::vertex_paint_mode_opacity, ClothSimSettings::vgroup_bend, ClothSimSettings::vgroup_mass, ClothSimSettings::vgroup_shear, ClothSimSettings::vgroup_shrink, ClothSimSettings::vgroup_struct, ColorManagedViewSettings::view_transform, RemeshModifierData::voxel_size, VPAINT_BRUSH_TYPE_AVERAGE, VPAINT_BRUSH_TYPE_BLUR, VPAINT_BRUSH_TYPE_DRAW, VPAINT_BRUSH_TYPE_SMEAR, View3DOverlay::weight_paint_mode_opacity, which_libbase(), View3DShading::wire_color_type, View3DOverlay::wireframe_threshold, Main::wm, WM_OUTLINER_SYNC_SELECT_FROM_ALL, WO_MODE_UNUSED_1, WO_MODE_UNUSED_2, WO_MODE_UNUSED_3, WO_MODE_UNUSED_4, WO_MODE_UNUSED_5, WO_MODE_UNUSED_7, Main::workspaces, Main::worlds, XR_SESSION_USE_POSITION_TRACKING, View3DShading::xray_alpha, and View3DOverlay::xray_alpha_bone.

Referenced by do_versions().

◆ displacement_node_insert()

◆ displacement_principled_nodes()

static void displacement_principled_nodes ( bNode * node)
static

◆ do_version_area_change_space_to_space_action()

◆ do_version_bbone_scale_fcurve_fix()

◆ do_version_bones_inherit_scale()

static void do_version_bones_inherit_scale ( ListBase * lb)
static

◆ do_version_bones_split_bbone_scale()

static void do_version_bones_split_bbone_scale ( ListBase * lb)
static

◆ do_version_collection_propagate_lib_to_children()

static void do_version_collection_propagate_lib_to_children ( Collection * collection)
static

◆ do_version_constraints_copy_rotation_mix_mode()

static void do_version_constraints_copy_rotation_mix_mode ( ListBase * lb)
static

◆ do_version_constraints_copy_scale_power()

static void do_version_constraints_copy_scale_power ( ListBase * lb)
static

Definition at line 592 of file versioning_280.cc.

References CONSTRAINT_TYPE_SIZELIKE, and LISTBASE_FOREACH.

Referenced by blo_do_versions_280().

◆ do_version_constraints_maintain_volume_mode_uniform()

static void do_version_constraints_maintain_volume_mode_uniform ( ListBase * lb)
static

Definition at line 582 of file versioning_280.cc.

References CONSTRAINT_TYPE_SAMEVOL, LISTBASE_FOREACH, and SAMEVOL_UNIFORM.

Referenced by blo_do_versions_280().

◆ do_version_curvemapping_flag_extend_extrapolate()

static void do_version_curvemapping_flag_extend_extrapolate ( CurveMapping * cumap)
static

◆ do_version_curvemapping_walker()

static void do_version_curvemapping_walker ( Main * bmain,
void(* callback )(CurveMapping *cumap) )
static

Definition at line 758 of file versioning_280.cc.

References FreestyleLineStyle::alpha_modifiers, Main::brushes, callback, Paint::cavity_curve, WeightVGEditModifierData::cmap_curve, GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, HookGpencilModifierData::curfalloff, HookModifierData::curfalloff, WarpModifierData::curfalloff, ColorGpencilModifierData::curve_intensity, NoiseGpencilModifierData::curve_intensity, OpacityGpencilModifierData::curve_intensity, SmoothGpencilModifierData::curve_intensity, TintGpencilModifierData::curve_intensity, CurvesModifierData::curve_mapping, HueCorrectModifierData::curve_mapping, ThickGpencilModifierData::curve_thickness, GP_Interpolate_Settings::custom_ipo, eGpencilModifierType_Color, eGpencilModifierType_Hook, eGpencilModifierType_Noise, eGpencilModifierType_Opacity, eGpencilModifierType_Smooth, eGpencilModifierType_Thick, eGpencilModifierType_Tint, ELEM, eModifierType_Hook, eModifierType_Warp, eModifierType_WeightVGEdit, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, ToolSettings::gp_interpolate, ToolSettings::gp_paint, ToolSettings::gp_sculpt, ToolSettings::imapaint, linestyle, Main::linestyles, LISTBASE_FOREACH, LS_MODIFIER_ALONG_STROKE, LS_MODIFIER_CREASE_ANGLE, LS_MODIFIER_CURVATURE_3D, LS_MODIFIER_DISTANCE_FROM_CAMERA, LS_MODIFIER_DISTANCE_FROM_OBJECT, LS_MODIFIER_MATERIAL, LS_MODIFIER_NOISE, LS_MODIFIER_TANGENT, node_tree, Main::objects, GpPaint::paint, ImagePaintSettings::paint, Sculpt::paint, VPaint::paint, Main::particles, Main::scenes, ToolSettings::sculpt, SEQ_modifier_type_info_get(), Sequence::seqbase, seqModifierType_Curves, seqModifierType_HueCorrect, SH_NODE_CURVE_RGB, SH_NODE_CURVE_VEC, FreestyleLineStyle::thickness_modifiers, ToolSettings::vpaint, and ToolSettings::wpaint.

Referenced by blo_do_versions_280().

◆ do_version_layers_to_collections()

◆ do_version_workspaces_after_lib_link()

static void do_version_workspaces_after_lib_link ( Main * bmain)
static

After lib-link versioning for new workspace design.

  • Adds a workspace for (almost) each screen of the old file and adds the needed workspace-layout to wrap the screen.
  • Active screen isn't stored directly in window anymore, but in the active workspace.
  • Active scene isn't stored in screen anymore, but in window.
  • Create workspace instance hook for each window.
Note
Some of the created workspaces might be deleted again in case of reading the default startup.blend.

Definition at line 199 of file versioning_280.cc.

References BKE_view_layer_default_view(), BKE_workspace_active_layout_set(), BKE_workspace_active_set(), BKE_workspace_instance_hook_create(), BKE_workspace_layout_find(), BLI_assert, BLI_findlink(), BLI_findstring(), BLI_freelistN(), BLI_listbase_is_empty(), do_version_workspaces_create_from_screens(), LISTBASE_FOREACH, offsetof, scene, screen_parent_find(), Main::screens, STRNCPY, Main::wm, and Main::workspaces.

Referenced by do_versions_after_linking_280().

◆ do_version_workspaces_create_from_screens()

◆ do_versions_after_linking_280()

void do_versions_after_linking_280 ( FileData * fd,
Main * bmain )

Always bump subversion in BKE_blender_version.h when adding versioning code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.

Note
Keep this message at the bottom of the function.

Definition at line 2202 of file versioning_280.cc.

References ambient_occlusion_node_relink(), BBONE_HANDLE_ABSOLUTE, BBONE_HANDLE_AUTO, BBONE_HANDLE_RELATIVE, BKE_blender_globals_main_swap(), BKE_collection_add(), BKE_collection_master_add(), BKE_collection_object_add_notest(), BKE_collection_object_remove(), BKE_fcurves_id_cb(), BKE_freestyle_config_free(), BKE_keyblock_curve_element_count(), BKE_mesh_do_versions_convert_mfaces_to_mpolys(), BKE_mesh_tessface_clear(), BKE_paint_ensure_from_paintmode(), BKE_rigidbody_constraints_collection_validate(), BKE_rigidbody_objects_collection_validate(), BKE_workspace_active_screen_get(), BLI_assert, BLI_findstring(), BLI_freelistN(), BLI_listbase_is_single(), BLI_MEMPOOL_ALLOW_ITER, BLI_mempool_calloc(), BLI_mempool_create(), BLI_strdupn(), BLO_read_assert_message, Main::brushes, CAM_DOF_ENABLED, CAM_ORTHO, Main::cameras, SpaceClip::clip, COLLECTION_HIDE_RENDER, COLLECTION_HIDE_VIEWPORT, Main::collections, copy_v3_v3(), Main::curves, Object::data, DATA_, displacement_node_insert(), displacement_principled_nodes(), do_version_area_change_space_to_space_action(), do_version_collection_propagate_lib_to_children(), do_version_layers_to_collections(), do_version_workspaces_after_lib_link(), do_versions_fix_annotations(), do_versions_material_convert_legacy_blend_mode(), do_versions_rename_id(), Camera::dof, ELEM, RenderData::engine, ListBase::first, bGPdata::flag, CameraDOFSettings::flag, TreeStoreElem::flag, Paint::flags, float, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, GP_DATA_ANNOTATIONS, GP_LAYER_IS_RULER, ToolSettings::gp_paint, Material::gp_style, MovieClip::gpd, SpaceImage::gpd, GPencil, bArmature::id, Library::id, TreeStoreElem::id, ID_BR, id_fake_user_set(), ID_MA, IDP_FreeProperty(), image_node_colorspace(), bGPdata::layers, ID::lib, light_emission_unify(), Main::lights, LISTBASE_FOREACH, MA_BM_BLEND, MAIN_VERSION_FILE_ATLEAST, mapping_node_order_flip(), Main::materials, MAX_ID_NAME, MEM_callocN, MEM_freeN(), Main::meshes, TreeStoreElem::nr, NTREE_SHADER, OB_CAMERA, OB_DUPLI, OB_DUPLI_FLAG_RENDER, OB_DUPLI_FLAG_VIEWPORT, Main::objects, offsetof, SpaceOutliner::outlinevis, GpPaint::paint, PAINT_SHOW_BRUSH, Main::particles, POSE_RECALC, Scene::r, BezTriple::radius, BPoint::radius, RE_engine_id_BLENDER_EEVEE, RE_engine_id_CYCLES, FCurve::rna_path, scene, Main::scenes, Main::screens, SculptGPencil, SNPRINTF, SO_VIEW_LAYER, SPACE_CLIP, SPACE_EMPTY, SPACE_IMAGE, SPACE_OUTLINER, square_roughness_node_insert(), STREQ, BezTriple::tilt, BPoint::tilt, SpaceOutliner::treestore, TSE_LAYER_COLLECTION, Object::type, TreeStoreElem::type, UNUSED_VARS_NDEBUG, update_mapping_node_inputs_and_properties(), update_math_node_single_operand_operators(), update_musgrave_node_dimensions(), update_noise_and_wave_distortion(), update_noise_node_dimensions(), update_vector_math_node_add_and_subtract_operators(), update_vector_math_node_average_operator(), update_vector_math_node_cross_product_operator(), update_vector_math_node_dot_product_operator(), update_vector_math_node_normalize_operator(), update_voronoi_node_coloring(), update_voronoi_node_crackle(), update_voronoi_node_dimensions(), update_voronoi_node_square_distance(), update_wave_node_directions_and_offset(), TreeStoreElem::used, BezTriple::vec, BPoint::vec, vector_curve_node_remap(), version_cycles_properties_from_ID(), version_cycles_property_float(), version_cycles_property_int(), VertexGPencil, WeightGPencil, wmWindowManager::windows, and Main::wm.

Referenced by do_versions_after_linking().

◆ do_versions_area_ensure_tool_region()

static void do_versions_area_ensure_tool_region ( Main * bmain,
const short space_type,
const short region_flag )
static

◆ do_versions_find_region()

static ARegion * do_versions_find_region ( ListBase * regionbase,
int regiontype )
static

Definition at line 478 of file versioning_280.cc.

References BLI_assert_msg, and do_versions_find_region_or_null().

Referenced by blo_do_versions_280().

◆ do_versions_find_region_or_null()

static ARegion * do_versions_find_region_or_null ( ListBase * regionbase,
int regiontype )
static

Definition at line 468 of file versioning_280.cc.

References LISTBASE_FOREACH.

Referenced by blo_do_versions_280(), and do_versions_find_region().

◆ do_versions_fix_annotations()

static void do_versions_fix_annotations ( bGPdata * gpd)
static

convert old annotations colors

Definition at line 425 of file versioning_280.cc.

References copy_v4_v4(), bGPdata::layers, LISTBASE_FOREACH, and STREQ.

Referenced by do_versions_after_linking_280().

◆ do_versions_local_collection_bits_set()

static void do_versions_local_collection_bits_set ( LayerCollection * layer_collection)
static

◆ do_versions_material_convert_legacy_blend_mode()

◆ do_versions_remove_region()

static void do_versions_remove_region ( ListBase * regionbase,
ARegion * region )
static

Definition at line 452 of file versioning_280.cc.

References BLI_freelinkN().

Referenced by blo_do_versions_280(), and do_versions_remove_regions_by_type().

◆ do_versions_remove_regions_by_type()

static void do_versions_remove_regions_by_type ( ListBase * regionbase,
int regiontype )
static

Definition at line 457 of file versioning_280.cc.

References do_versions_remove_region(), and ListBase::first.

Referenced by blo_do_versions_280().

◆ do_versions_seq_alloc_transform_and_crop()

static void do_versions_seq_alloc_transform_and_crop ( ListBase * seqbase)
static

◆ do_versions_seq_set_cache_defaults()

static void do_versions_seq_set_cache_defaults ( Editing * ed)
static

◆ do_versions_seq_unique_name_all_strips()

static void do_versions_seq_unique_name_all_strips ( Scene * sce,
ListBase * seqbasep )
static

◆ ENUM_OPERATORS()

ENUM_OPERATORS ( eNTreeDoVersionErrors ,
~int8_t{}  )

◆ image_node_colorspace()

static void image_node_colorspace ( bNode * node)
static

◆ light_emission_node_to_energy()

◆ light_emission_unify()

static void light_emission_unify ( Light * light,
const char * engine )
static

◆ mapping_node_order_flip()

static void mapping_node_order_flip ( bNode * node)
static

◆ replace_bbone_scale_rnapath()

static bool replace_bbone_scale_rnapath ( char ** p_old_path)
static

Definition at line 533 of file versioning_280.cc.

References BLI_str_endswith(), BLI_strdupcat(), and MEM_freeN().

Referenced by do_version_bbone_scale_fcurve_fix().

◆ screen_parent_find()

static bScreen * screen_parent_find ( const bScreen * screen)
static

◆ seq_update_flags_cb()

static bool seq_update_flags_cb ( Sequence * seq,
void *  )
static

◆ square_roughness_node_insert()

◆ update_mapping_node_fcurve_rna_path_callback()

static void update_mapping_node_fcurve_rna_path_callback ( FCurve * fcurve,
const char * nodePath,
const bNode * minimumNode,
const bNode * maximumNode )
static

◆ update_mapping_node_inputs_and_properties()

◆ update_math_node_single_operand_operators()

◆ update_musgrave_node_color_output()

static void update_musgrave_node_color_output ( bNodeTree * ntree)
static

◆ update_musgrave_node_dimensions()

static void update_musgrave_node_dimensions ( bNodeTree * ntree)
static

◆ update_noise_and_wave_distortion()

static void update_noise_and_wave_distortion ( bNodeTree * ntree)
static

◆ update_noise_node_dimensions()

static void update_noise_node_dimensions ( bNodeTree * ntree)
static

Definition at line 1664 of file versioning_280.cc.

References LISTBASE_FOREACH, bNodeTree::nodes, SH_NODE_TEX_NOISE, and tex.

Referenced by do_versions_after_linking_280().

◆ update_vector_math_node_add_and_subtract_operators()

◆ update_vector_math_node_average_operator()

◆ update_vector_math_node_cross_product_operator()

◆ update_vector_math_node_dot_product_operator()

◆ update_vector_math_node_normalize_operator()

◆ update_vector_math_node_operators_enum_mapping()

static void update_vector_math_node_operators_enum_mapping ( bNodeTree * ntree)
static

Definition at line 1566 of file versioning_280.cc.

References LISTBASE_FOREACH, bNodeTree::nodes, and SH_NODE_VECTOR_MATH.

Referenced by blo_do_versions_280().

◆ update_voronoi_node_coloring()

static void update_voronoi_node_coloring ( bNodeTree * ntree)
static

The coloring property of the Voronoi node was removed. Previously, if the coloring enum was set to Intensity (0), the voronoi distance was returned in all outputs, otherwise, the Cell ID was returned. Since we remapped the Fac output in update_voronoi_node_fac_output, then to fix this, we relink the Color output to the Distance output if coloring was set to 0, and the other way around otherwise.

Definition at line 2046 of file versioning_280.cc.

References bNodeTree::links, LISTBASE_FOREACH_BACKWARD_MUTABLE, blender::bke::node_add_link(), blender::bke::node_find_socket(), blender::bke::node_remove_link(), SH_NODE_TEX_VORONOI, SOCK_OUT, tex, and version_socket_update_is_used().

Referenced by do_versions_after_linking_280().

◆ update_voronoi_node_crackle()

◆ update_voronoi_node_dimensions()

static void update_voronoi_node_dimensions ( bNodeTree * ntree)
static

◆ update_voronoi_node_f3_and_f4()

static void update_voronoi_node_f3_and_f4 ( bNodeTree * ntree)
static

◆ update_voronoi_node_fac_output()

static void update_voronoi_node_fac_output ( bNodeTree * ntree)
static

◆ update_voronoi_node_square_distance()

◆ update_wave_node_directions_and_offset()

static void update_wave_node_directions_and_offset ( bNodeTree * ntree)
static

Wave Texture node: Restore previous texture directions and offset.

  1. In 2.81, Wave texture had fixed diagonal direction (Bands) or mapping along distance (Rings). Now, directions are customizable properties, with X axis being new default. To fix this we set new direction options to Diagonal and Spherical.
  2. Sine profile is now negatively offset by PI/2 to better match other profiles. To fix this we set new Phase Offset input to PI/2 in nodes with Sine profile.

Definition at line 2185 of file versioning_280.cc.

References LISTBASE_FOREACH, M_PI_2, blender::bke::node_find_socket(), bNodeTree::nodes, SH_NODE_TEX_WAVE, SHD_WAVE_BANDS_DIRECTION_DIAGONAL, SHD_WAVE_PROFILE_SIN, SHD_WAVE_RINGS_DIRECTION_SPHERICAL, SOCK_IN, tex, and version_cycles_node_socket_float_value().

Referenced by do_versions_after_linking_280().

◆ vector_curve_node_remap()

static void vector_curve_node_remap ( bNode * node)
static