Blender  V3.3
Macros | Functions
versioning_280.c File Reference
#include <float.h>
#include <string.h>
#include "BLI_listbase.h"
#include "BLI_math.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_modifier_types.h"
#include "DNA_gpencil_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_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_animsys.h"
#include "BKE_brush.h"
#include "BKE_cloth.h"
#include "BKE_collection.h"
#include "BKE_colortools.h"
#include "BKE_constraint.h"
#include "BKE_curveprofile.h"
#include "BKE_customdata.h"
#include "BKE_fcurve.h"
#include "BKE_fcurve_driver.h"
#include "BKE_freestyle.h"
#include "BKE_global.h"
#include "BKE_gpencil.h"
#include "BKE_gpencil_geom.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_idprop.h"
#include "BKE_key.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_mesh_legacy_convert.h"
#include "BKE_node.h"
#include "BKE_node_tree_update.h"
#include "BKE_paint.h"
#include "BKE_pointcache.h"
#include "BKE_report.h"
#include "BKE_rigidbody.h"
#include "BKE_screen.h"
#include "BKE_studiolight.h"
#include "BKE_unit.h"
#include "BKE_workspace.h"
#include "SEQ_iterator.h"
#include "SEQ_modifier.h"
#include "SEQ_utils.h"
#include "IMB_imbuf.h"
#include "DEG_depsgraph.h"
#include "BLT_translation.h"
#include "BLO_readfile.h"
#include "readfile.h"
#include "versioning_common.h"
#include "MEM_guardedalloc.h"

Go to the source code of this file.

Macros

#define DNA_DEPRECATED_ALLOW
 
#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
 

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. More...
 
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_bbone_scale_animdata_cb (ID *UNUSED(id), AnimData *adt, void *UNUSED(wrapper_data))
 
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 do_version_fcurve_hide_viewport_fix (struct ID *UNUSED(id), struct FCurve *fcu, void *UNUSED(user_data))
 
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 *UNUSED(user_data))
 
void blo_do_versions_280 (FileData *fd, Library *UNUSED(lib), 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 8 of file versioning_280.c.

◆ EEVEE_GET_BOOL

#define EEVEE_GET_BOOL (   _props,
  _name,
  _flag 
)
Value:
{ \
IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
if (_idprop != NULL) { \
const int _value = IDP_Int(_idprop); \
if (_value) { \
scene->eevee.flag |= _flag; \
} \
else { \
scene->eevee.flag &= ~_flag; \
} \
} \
} \
((void)0)
#define IDP_Int(prop)
Definition: BKE_idprop.h:244
struct IDProperty * IDP_GetPropertyFromGroup(const struct IDProperty *prop, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
SyclQueue void void size_t num_bytes void

◆ EEVEE_GET_FLOAT

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

◆ EEVEE_GET_FLOAT_ARRAY

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

◆ EEVEE_GET_INT

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

◆ PAINT_BLEND_ADD

#define PAINT_BLEND_ADD   1

◆ PAINT_BLEND_ALPHA_ADD

#define PAINT_BLEND_ALPHA_ADD   20

◆ PAINT_BLEND_ALPHA_SUB

#define PAINT_BLEND_ALPHA_SUB   19

◆ PAINT_BLEND_AVERAGE

#define PAINT_BLEND_AVERAGE   7

◆ PAINT_BLEND_BLUR

#define PAINT_BLEND_BLUR   4

◆ PAINT_BLEND_COLORDODGE

#define PAINT_BLEND_COLORDODGE   9

◆ PAINT_BLEND_DARKEN

#define PAINT_BLEND_DARKEN   6

◆ PAINT_BLEND_DIFFERENCE

#define PAINT_BLEND_DIFFERENCE   10

◆ PAINT_BLEND_EXCLUSION

#define PAINT_BLEND_EXCLUSION   15

◆ PAINT_BLEND_HARDLIGHT

#define PAINT_BLEND_HARDLIGHT   12

◆ PAINT_BLEND_HUE

#define PAINT_BLEND_HUE   18

◆ PAINT_BLEND_LIGHTEN

#define PAINT_BLEND_LIGHTEN   5

◆ PAINT_BLEND_LUMINOSITY

#define PAINT_BLEND_LUMINOSITY   16

◆ PAINT_BLEND_MIX

#define PAINT_BLEND_MIX   0

◆ PAINT_BLEND_MUL

#define PAINT_BLEND_MUL   3

◆ PAINT_BLEND_OVERLAY

#define PAINT_BLEND_OVERLAY   13

◆ PAINT_BLEND_SATURATION

#define PAINT_BLEND_SATURATION   17

◆ PAINT_BLEND_SCREEN

#define PAINT_BLEND_SCREEN   11

◆ PAINT_BLEND_SMEAR

#define PAINT_BLEND_SMEAR   8

◆ PAINT_BLEND_SOFTLIGHT

#define PAINT_BLEND_SOFTLIGHT   14

◆ PAINT_BLEND_SUB

#define PAINT_BLEND_SUB   2

◆ U

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

Definition at line 107 of file versioning_280.c.

Function Documentation

◆ blo_do_versions_280()

void blo_do_versions_280 ( FileData fd,
Library UNUSEDlib,
Main bmain 
)

Versioning code until next subversion bump goes here.

Note
Be sure to check when bumping the version:
Keep this message at the bottom of the function.

Definition at line 1774 of file versioning_280.c.

References blender::math::abs(), SpaceAction::action, Main::actions, RemeshModifierData::adaptivity, ARegion::alignment, RenderData::alphamode, ToolSettings::annotate_thickness, ToolSettings::annotate_v3d_align, blender::compositor::area(), AREA_FLAG_UNUSED_6, bScreen::areabase, ARM_FLAG_UNUSED_1, ARM_FLAG_UNUSED_12, ARM_FLAG_UNUSED_5, ARM_FLAG_UNUSED_6, 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, View3DOverlay::backwire_opacity, RenderData::bake, RenderData::bake_mode, 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_freestyle_config_init(), BKE_gpencil_stroke_geometry_update(), BKE_main_id_repair_duplicate_names_listbase(), BKE_mesh_calc_edges_loose(), BKE_mesh_update_customdata_pointers(), 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_snprintf(), BLI_str_startswith(), BLI_strncpy(), SceneEEVEE::bloom_clamp, SceneEEVEE::bloom_color, SceneEEVEE::bloom_intensity, SceneEEVEE::bloom_knee, SceneEEVEE::bloom_radius, SceneEEVEE::bloom_threshold, GlowShaderFxData::blur, SceneEEVEE::bokeh_max_size, SceneEEVEE::bokeh_threshold, BRUSH_POSE_IK_ANCHORED, Main::brushes, ParticleEditSettings::brushtype, Main::cameras, View3DShading::cavity_ridge_factor, View3DShading::cavity_valley_factor, CD_SCULPT_FACE_SETS, View3D::clip_end, View3D::clip_start, CurveMapping::clipr, ParticleSystem::clmd, CLOTH_BENDING_LINEAR, CLOTH_COLLSETTINGS_FLAG_ENABLED, CLOTH_COLLSETTINGS_FLAG_SELF, 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, Main::collections, RenderData::color_mgt_flag, 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, Scene::cursor, View3DShading::curvature_ridge_factor, View3DShading::curvature_valley_factor, NoiseGpencilModifierData::curve_intensity, ColorGpencilModifierData::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_update_typemap(), data, DataTransferModifierData::defgrp_name, FileSelectParams::details_flags, Scene::display, ImageFormatData::display_settings, DNA_struct_default_get, DNA_struct_elem_find(), DNA_struct_find(), do_version_bbone_scale_animdata_cb(), 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, Scene::ed, View3DOverlay::edit_flag, Scene::eevee, EEVEE_GET_BOOL, EEVEE_GET_FLOAT, EEVEE_GET_FLOAT_ARRAY, 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, RenderData::engine, 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, NoiseGpencilModifierData::factor, ColorizeShaderFxData::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_MAXFILE, 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, SpaceAction::flag, Collection::flag, NoiseGpencilModifierData::flag, SubdivGpencilModifierData::flag, ArrayGpencilModifierData::flag, ID::flag, ViewLayer::flag, MaterialGPencilStyle::flag, ParticleEditSettings::flag, UnifiedPaintSettings::flag, SceneEEVEE::flag, ARegion::flag, SpaceProperties::flag, SpaceOutliner::flag, SpaceGraph::flag, SpaceNla::flag, SpaceSeq::flag, FileSelectParams::flag, SpaceImage::flag, SpaceNode::flag, View3DShading::flag, View3DOverlay::flag, View3D::flag, World::flag, View3D::flag2, ClothSimSettings::flags, ClothCollSettings::flags, SubsurfModifierData::flags, MultiresModifierData::flags, Sculpt::flags, FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, ViewLayer::freestyle_config, RenderData::gauss, SceneEEVEE::gi_cubemap_draw_size, SceneEEVEE::gi_cubemap_resolution, SceneEEVEE::gi_diffuse_bounces, SceneEEVEE::gi_filter_quality, SceneEEVEE::gi_irradiance_draw_size, SceneEEVEE::gi_irradiance_smoothing, SceneEEVEE::gi_visibility_resolution, 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, ToolSettings::gp_sculpt, GP_SUBDIV_SIMPLE, GPAINT_TOOL_ERASE, View3DOverlay::gpencil_fade_layer, View3DOverlay::gpencil_grid_opacity, View3DOverlay::gpencil_paper_opacity, View3DOverlay::gpencil_vertex_paint_opacity, Main::gpencils, FluidDomainSettings::gravity, Scene::grease_pencil_settings, View3D::gridflag, SceneEEVEE::gtao_distance, SceneEEVEE::gtao_factor, SceneEEVEE::gtao_quality, BrushGpencilSettings::hardeness, ColorizeShaderFxData::high_color, id, Collection::id, Mesh::id, bNodeTree::id, ParticleSettings::id, Scene::id, bScreen::id, Tex::id, World::id, ID_BR, ID_GR, IDP_FreeProperty(), IDP_GetPropertyFromGroup(), if(), BakeData::im_format, RenderData::im_format, 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, image(), 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, TransformOrientationSlot::index_custom, 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, ViewLayer::layer_collections, Scene::layer_properties, ViewLayer::layflag, UnitSettings::length_unit, LIB_EMBEDDED_DATA, View3DShading::light, SceneDisplay::light_direction, SceneEEVEE::light_threshold, 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, MA_BM_SOLID, MA_BS_SOLID, MAIN_VERSION_ATLEAST, RimShaderFxData::mask_rgb, UnitSettings::mass_unit, Scene::master_collection, View3DShading::matcap, SceneDisplay::matcap_ssao_attenuation, SceneDisplay::matcap_ssao_distance, SceneDisplay::matcap_ssao_samples, Main::materials, MAX2, 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_VERTEX_COLORS, MEM_callocN, MEM_freeN, SolidifyModifierData::merge_tolerance, mesh, Main::meshes, min_ii(), TriangulateModifierData::min_vertices, DataTransferModifierData::mix_factor, MaterialGPencilStyle::mix_stroke_factor, MOD_SHRINKWRAP_ABOVE_SURFACE, RenderData::mode, ColorizeShaderFxData::mode, SpaceAction::mode_prev, SceneEEVEE::motion_blur_shutter, mul_v3_fl(), RenderSlot::name, StudioLight::name, bConstraint::next, ID::next, ViewLayer::next, ModifierData::next, ARegion::next, SpaceLink::next, node, bNodeTree::nodes, NoiseGpencilModifierData::noise_scale, View3DOverlay::normals_length, ntree, NTREE_SHADER, ntreeFromID(), NULL, 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_GPENCIL, 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, Scene::orientation_slots, SpaceOutliner::outlinevis, View3D::overlay, SceneEEVEE::overscan, 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, ViewLayer::pass_alpha_threshold, ViewLayer::passflag, PE_BRUSH_COMB, PE_UNUSED_6, SoftBody_Shared::pointcache, RigidBodyWorld_Shared::pointcache, ClothSimSettings::pressure_factor, View3DShading::prev_type, PROF_PRESET_LINE, View3DShading::prop, ParticleSystemModifierData::psys, SoftBody_Shared::ptcaches, RigidBodyWorld_Shared::ptcaches, SubsurfModifierData::quality, MultiresModifierData::quality, Scene::r, R_ADDSKY, R_COLOR_MANAGEMENT_UNUSED_1, R_MODE_UNUSED_1, 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, ParticleSettings::rad_root, ParticleSettings::rad_scale, ParticleSettings::rad_tip, RBC_TYPE_6DOF_SPRING, RBC_TYPE_MOTOR, RBC_TYPE_SLIDER, RE_engine_id_BLENDER_EEVEE, RE_engine_id_BLENDER_WORKBENCH, ARegion::regiontype, Mesh::remesh_voxel_size, SceneDisplay::render_aa, 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, Scene::rigidbody_world, RimShaderFxData::rim_rgb, ROT_MODE_XYZ, View3DCursor::rotation_axis, View3DCursor::rotation_mode, View3DCursor::rotation_quaternion, 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_BLOOM_ENABLED, SCE_EEVEE_GTAO_BENT_NORMALS, SCE_EEVEE_GTAO_BOUNCE, SCE_EEVEE_GTAO_ENABLED, SCE_EEVEE_MOTION_BLUR_ENABLED, SCE_EEVEE_SHADOW_HIGH_BITDEPTH, SCE_EEVEE_SSR_ENABLED, SCE_EEVEE_SSR_HALF_RESOLUTION, SCE_EEVEE_SSR_REFRACTION, SCE_EEVEE_TAA_REPROJECTION, SCE_EEVEE_VOLUMETRIC_LIGHTS, SCE_EEVEE_VOLUMETRIC_SHADOWS, SCE_PASS_COMBINED, SCE_PASS_Z, SCE_SNAP_MODE_GRID, SCE_SNAP_MODE_NODE_X, SCE_SNAP_TRANSFORM_MODE_TRANSLATE, RenderData::scemode, scene, Main::scenes, Main::screens, ToolSettings::sculpt, SCULPT_FLAG_UNUSED_0, SCULPT_FLAG_UNUSED_1, SCULPT_FLAG_UNUSED_2, SCULPT_FLAG_UNUSED_6, View3DOverlay::sculpt_mode_face_sets_opacity, View3DOverlay::sculpt_mode_mask_opacity, SCULPT_TOOL_CLAY_STRIPS, SCULPT_TOOL_CLOTH, SCULPT_TOOL_POSE, ArrayGpencilModifierData::seed, GlowShaderFxData::select_color, ClothCollSettings::selfepsilon, RenderData::seq_flag, SEQ_for_each_callback(), SEQ_SHOW_MARKERS, SEQ_TIMELINE_SHOW_FCURVES, seq_update_flags_cb(), Editing::seqbase, SET_FLAG_FROM_TEST, SH_NODE_BSDF_PRINCIPLED, SH_NODE_EEVEE_SPECULAR, SH_NODE_OUTPUT_MATERIAL, SceneDisplay::shading, View3D::shading, SceneEEVEE::shadow_cascade_size, SceneEEVEE::shadow_cube_size, SHADOW_ESM, View3DShading::shadow_intensity, ShadowShaderFxData::shadow_rgba, SceneDisplay::shadow_shift, ParticleSettings::shape, ParticleSettings::shape_flag, SoftBody::shared, RigidBodyWorld::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_CUSTOM_GRID, SI_FLAG_UNUSED_0, SI_FLAG_UNUSED_1, SI_FLAG_UNUSED_17, 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, SceneGpencil::smaa_threshold, ToolSettings::snap_mode, ToolSettings::snap_node_mode, ToolSettings::snap_transform_mode_flag, ToolSettings::snap_uv_mode, 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, SO_DATA_API, SO_FILTER_CLEARED_1, SO_FILTER_OB_STATE_SELECTABLE, SO_FILTER_UNUSED_5, SO_FLAG_UNUSED_1, 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, SpaceLink::spacetype, src, srgb_to_linearrgb_v3_v3(), srgb_to_linearrgb_v4(), SceneEEVEE::ssr_border_fade, SceneEEVEE::ssr_firefly_fac, SceneEEVEE::ssr_max_roughness, SceneEEVEE::ssr_quality, SceneEEVEE::ssr_thickness, SceneEEVEE::sss_jitter_threshold, SceneEEVEE::sss_samples, 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, SWAP, SpaceOutliner::sync_select_dirty, UnitSettings::system, SceneEEVEE::taa_render_samples, SceneEEVEE::taa_samples, 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, UnitSettings::time_unit, Scene::toolsettings, ToolSettings::transform_pivot_point, TXT_FLAG_UNUSED_8, TXT_FLAG_UNUSED_9, bConstraint::type, SubdivGpencilModifierData::type, bNodeTree::type, RigidBodyCon::type, Tex::type, View3DShading::type, UNIFIED_PAINT_FLAG_UNUSED_0, UNIFIED_PAINT_FLAG_UNUSED_1, ToolSettings::unified_paint_settings, Scene::unit, USER_HEADER_BOTTOM, USER_UNIT_ADAPTIVE, USER_UNIT_NONE, SubsurfModifierData::uv_smooth, MultiresModifierData::uv_smooth, V2D_SCROLL_LEFT, 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_3, 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_EDGES, V3D_OVERLAY_EDIT_FACES, V3D_OVERLAY_EDIT_FREESTYLE_EDGE, V3D_OVERLAY_EDIT_FREESTYLE_FACE, V3D_OVERLAY_EDIT_OCCLUDE_WIRE, 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, 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, VIEW_LAYER_FREESTYLE, Scene::view_layers, ImageFormatData::view_settings, Scene::view_settings, ColorManagedViewSettings::view_transform, SceneDisplay::viewport_aa, SceneEEVEE::volumetric_end, SceneEEVEE::volumetric_light_clamp, SceneEEVEE::volumetric_sample_distribution, SceneEEVEE::volumetric_samples, SceneEEVEE::volumetric_shadow_samples, SceneEEVEE::volumetric_start, SceneEEVEE::volumetric_tile_size, RemeshModifierData::voxel_size, VPAINT_TOOL_AVERAGE, VPAINT_TOOL_BLUR, VPAINT_TOOL_DRAW, VPAINT_TOOL_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, world, Main::worlds, XR_SESSION_USE_POSITION_TRACKING, View3DShading::xray_alpha, and View3DOverlay::xray_alpha_bone.

◆ do_version_area_change_space_to_space_action()

static void do_version_area_change_space_to_space_action ( ScrArea area,
const Scene scene 
)
static

◆ do_version_bbone_scale_animdata_cb()

static void do_version_bbone_scale_animdata_cb ( ID UNUSEDid,
AnimData adt,
void UNUSEDwrapper_data 
)
static

◆ do_version_bbone_scale_fcurve_fix()

static void do_version_bbone_scale_fcurve_fix ( ListBase curves,
FCurve fcu 
)
static

◆ do_version_bones_inherit_scale()

static void do_version_bones_inherit_scale ( ListBase lb)
static

Definition at line 675 of file versioning_280.c.

References BONE_INHERIT_SCALE_NONE_LEGACY, and LISTBASE_FOREACH.

Referenced by blo_do_versions_280().

◆ do_version_bones_split_bbone_scale()

static void do_version_bones_split_bbone_scale ( ListBase lb)
static

Definition at line 665 of file versioning_280.c.

References LISTBASE_FOREACH.

Referenced by blo_do_versions_280().

◆ 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 755 of file versioning_280.c.

References CONSTRAINT_TYPE_SIZELIKE, data, 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 745 of file versioning_280.c.

References CONSTRAINT_TYPE_SAMEVOL, data, 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(*)(CurveMapping *cumap)  callback 
)
static

Definition at line 912 of file versioning_280.c.

References FreestyleLineStyle::alpha_modifiers, Main::brushes, callback, Paint::cavity_curve, WeightVGEditModifierData::cmap_curve, CMP_NODE_CURVE_RGB, CMP_NODE_CURVE_VEC, CMP_NODE_HUECORRECT, CMP_NODE_TIME, GP_Sculpt_Settings::cur_falloff, GP_Sculpt_Settings::cur_primitive, HookGpencilModifierData::curfalloff, HookModifierData::curfalloff, WarpModifierData::curfalloff, curve, NoiseGpencilModifierData::curve_intensity, ColorGpencilModifierData::curve_intensity, OpacityGpencilModifierData::curve_intensity, SmoothGpencilModifierData::curve_intensity, TintGpencilModifierData::curve_intensity, ColorManagedViewSettings::curve_mapping, CurvesModifierData::curve_mapping, HueCorrectModifierData::curve_mapping, ThickGpencilModifierData::curve_thickness, GP_Interpolate_Settings::custom_ipo, Scene::ed, 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, Main::lights, 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, RenderData::mblur_shutter_curve, node, NULL, Main::objects, ImagePaintSettings::paint, Sculpt::paint, UvSculpt::paint, GpPaint::paint, VPaint::paint, Main::particles, Scene::r, scene, Main::scenes, ToolSettings::sculpt, SEQ_modifier_type_info_get(), Editing::seqbase, seqModifierType_Curves, seqModifierType_HueCorrect, SH_NODE_CURVE_RGB, SH_NODE_CURVE_VEC, TEX_NODE_CURVE_RGB, TEX_NODE_CURVE_TIME, FreestyleLineStyle::thickness_modifiers, Scene::toolsettings, ToolSettings::uvsculpt, Scene::view_settings, ToolSettings::vpaint, and ToolSettings::wpaint.

Referenced by blo_do_versions_280().

◆ do_version_fcurve_hide_viewport_fix()

static void do_version_fcurve_hide_viewport_fix ( struct ID UNUSEDid,
struct FCurve fcu,
void UNUSEDuser_data 
)
static

Definition at line 1159 of file versioning_280.c.

References BLI_strdupn(), MEM_freeN, NULL, FCurve::rna_path, and STREQ.

Referenced by do_versions_after_linking_280().

◆ do_version_layers_to_collections()

static void do_version_layers_to_collections ( Main bmain,
Scene scene 
)
static

◆ 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 194 of file versioning_280.c.

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::first, bScreen::id, LISTBASE_FOREACH, ViewLayer::name, ID::name, NULL, Scene::r, scene, screen_parent_find(), Main::screens, STRNCPY, bScreen::temp, Scene::view_layers, Main::wm, and Main::workspaces.

Referenced by do_versions_after_linking_280().

◆ do_version_workspaces_create_from_screens()

static void do_version_workspaces_create_from_screens ( Main bmain)
static

◆ do_versions_after_linking_280()

void do_versions_after_linking_280 ( FileData fd,
Main bmain 
)

Versioning code until next subversion bump goes here.

Note
Be sure to check when bumping the version:
Keep this message at the bottom of the function.

Definition at line 1171 of file versioning_280.c.

References Freestyle::a, blender::compositor::area(), bScreen::areabase, BBONE_HANDLE_ABSOLUTE, BBONE_HANDLE_AUTO, BBONE_HANDLE_RELATIVE, BKE_collection_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_brush_set(), BKE_paint_ensure_from_paintmode(), BKE_paint_toolslots_init_from_main(), BKE_rigidbody_constraints_collection_validate(), BKE_rigidbody_objects_collection_validate(), BKE_workspace_active_screen_get(), BLI_findstring(), BLI_freelistN(), BLI_listbase_count_at_most(), BLI_MEMPOOL_ALLOW_ITER, BLI_mempool_calloc(), BLI_mempool_create(), BLI_snprintf(), BLO_read_assert_message, BRUSH_USE_CONNECTED_ONLY, Main::brushes, CAM_DOF_ENABLED, Scene::camera, camera, Main::cameras, SpaceClip::clip, COLLECTION_HIDE_RENDER, COLLECTION_HIDE_VIEWPORT, Main::collections, copy_v3_v3(), Main::curves, Object::data, DATA_, do_version_area_change_space_to_space_action(), do_version_collection_propagate_lib_to_children(), do_version_fcurve_hide_viewport_fix(), 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, Scene::eevee, ELEM, RenderData::engine, ListBase::first, CameraDOFSettings::flag, Collection::flag, bGPdata::flag, TreeStoreElem::flag, SceneEEVEE::flag, Paint::flags, float(), G_MAIN, Collection::gobject, GP_BRUSH_ICON_PEN, GP_DATA_ANNOTATIONS, GP_LAYER_IS_RULER, ToolSettings::gp_paint, Material::gp_style, MovieClip::gpd, Scene::gpd, SpaceImage::gpd, Brush::gpencil_settings, BrushGpencilSettings::icon_id, bArmature::id, Collection::id, Library::id, TreeStoreElem::id, Scene::id, ID_BR, id_fake_user_set(), ID_MA, IDP_FreeProperty(), ViewLayer::layer_collections, bGPdata::layers, ID::lib, LISTBASE_FOREACH, MA_BM_BLEND, MAIN_VERSION_ATLEAST, Main::materials, MAX_ID_NAME, MEM_callocN, MEM_freeN, Main::meshes, ID::next, TreeStoreElem::nr, ntree, NULL, OB_CAMERA, OB_DUPLI, OB_DUPLI_FLAG_RENDER, OB_DUPLI_FLAG_VIEWPORT, OB_MODE_SCULPT, Main::objects, SpaceOutliner::outlinevis, GpPaint::paint, PAINT_MODE_GPENCIL, PAINT_MODE_SCULPT_GPENCIL, PAINT_MODE_VERTEX_GPENCIL, PAINT_MODE_WEIGHT_GPENCIL, PAINT_SHOW_BRUSH, Main::particles, POSE_RECALC, Scene::r, BezTriple::radius, BPoint::radius, RE_engine_id_BLENDER_EEVEE, Scene::rigidbody_world, Particle::rotation, scene, Main::scenes, Main::screens, SCULPT_TOOL_PAINT, SCULPT_TOOL_POSE, SO_VIEW_LAYER, SPACE_CLIP, SPACE_EMPTY, SPACE_IMAGE, SPACE_OUTLINER, srl(), STREQ, BezTriple::tilt, BPoint::tilt, Scene::toolsettings, SpaceOutliner::treestore, TSE_CLOSED, TSE_LAYER_COLLECTION, Object::type, TreeStoreElem::type, TreeStoreElem::used, BezTriple::vec, BPoint::vec, 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 632 of file versioning_280.c.

References BLI_assert_msg, do_versions_find_region_or_null(), and 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 622 of file versioning_280.c.

References LISTBASE_FOREACH, and NULL.

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 579 of file versioning_280.c.

References copy_v4_v4(), GP_LAYER_HIDE, GP_LAYER_LOCKED, 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()

static void do_versions_material_convert_legacy_blend_mode ( bNodeTree ntree,
char  blend_method 
)
static

◆ do_versions_remove_region()

static void do_versions_remove_region ( ListBase regionbase,
ARegion region 
)
static

Definition at line 606 of file versioning_280.c.

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

◆ do_versions_seq_alloc_transform_and_crop()

static void do_versions_seq_alloc_transform_and_crop ( ListBase seqbase)
static

Definition at line 776 of file versioning_280.c.

References ELEM, ListBase::first, MEM_callocN, NULL, SEQ_TYPE_SOUND_HD, and SEQ_TYPE_SOUND_RAM.

Referenced by blo_do_versions_280().

◆ 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

◆ replace_bbone_scale_rnapath()

static bool replace_bbone_scale_rnapath ( char **  p_old_path)
static

Definition at line 687 of file versioning_280.c.

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

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 UNUSEDuser_data 
)
static