Blender V5.3
versioning_280.cc File Reference
#include <algorithm>
#include <cfloat>
#include <cstring>
#include "BLI_enum_flags.hh"
#include "BLI_listbase.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_mempool.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_brush_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_gpu_types.h"
#include "DNA_grease_pencil_modifier_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_windowmanager_types.h"
#include "DNA_workspace_types.h"
#include "DNA_world_types.h"
#include "BKE_anim_data.hh"
#include "BKE_annotations_geom.h"
#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_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_node_legacy_types.hh"
#include "BKE_paint.hh"
#include "BKE_paint_types.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 "ANIM_versioning.hh"
#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.

Namespaces

namespace  blender
 BMesh Iterators.

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  blender::eNTreeDoVersionErrors : int8_t { blender::NTREE_DOVERSION_NO_ERROR = 0 , blender::NTREE_DOVERSION_NEED_OUTPUT = (1 << 0) , blender::NTREE_DOVERSION_TRANSPARENCY_EMISSION = (1 << 1) }

Functions

static bScreen * blender::screen_parent_find (const bScreen *screen)
static void blender::do_version_workspaces_create_from_screens (Main *bmain)
static void blender::do_version_area_change_space_to_space_action (ScrArea *area, const Scene *scene)
static void blender::do_version_workspaces_after_lib_link (Main *bmain)
 After lib-link versioning for new workspace design.
static void blender::do_version_layers_to_collections (Main *bmain, Scene *scene)
static void blender::do_version_collection_propagate_lib_to_children (Collection *collection)
static void blender::do_versions_fix_annotations (bGPdata *gpd)
static void blender::do_versions_remove_region (ListBaseT< ARegion > *regionbase, ARegion *region)
static void blender::do_versions_remove_regions_by_type (ListBaseT< ARegion > *regionbase, int regiontype)
static ARegion * blender::do_versions_find_region_or_null (ListBaseT< ARegion > *regionbase, int regiontype)
static ARegion * blender::do_versions_find_region (ListBaseT< ARegion > *regionbase, int regiontype)
static void blender::do_versions_area_ensure_tool_region (Main *bmain, const short space_type, const short region_flag)
static void blender::do_version_bones_split_bbone_scale (ListBaseT< Bone > *lb)
static void blender::do_version_bones_inherit_scale (ListBaseT< Bone > *lb)
static char * blender::replace_bbone_scale_rnapath (const char *old_path)
static void blender::do_version_bbone_scale_fcurve_fix (ListBaseT< FCurve > *curves, FCurve *fcu)
static void blender::do_version_constraints_maintain_volume_mode_uniform (ListBaseT< bConstraint > *lb)
static void blender::do_version_constraints_copy_scale_power (ListBaseT< bConstraint > *lb)
static void blender::do_version_constraints_copy_rotation_mix_mode (ListBaseT< bConstraint > *lb)
static void blender::do_versions_seq_alloc_transform_and_crop (ListBaseT< Strip > *seqbase)
static void blender::do_versions_material_convert_legacy_blend_mode (bNodeTree *ntree, char blend_method)
static void blender::do_versions_local_collection_bits_set (LayerCollection *layer_collection)
static void blender::do_version_curvemapping_flag_extend_extrapolate (CurveMapping *cumap)
static void blender::do_version_curvemapping_walker (Main *bmain, void(*callback)(CurveMapping *cumap))
static void blender::displacement_node_insert (bNodeTree *ntree)
static void blender::displacement_principled_nodes (bNode *node)
static void blender::square_roughness_node_insert (bNodeTree *ntree)
static void blender::mapping_node_order_flip (bNode *node)
static void blender::vector_curve_node_remap (bNode *node)
static void blender::ambient_occlusion_node_relink (bNodeTree *ntree)
static void blender::image_node_colorspace (bNode *node)
static void blender::light_emission_node_to_energy (Light *light, float *energy, float color[3])
static void blender::light_emission_unify (Light *light, const char *engine)
static void blender::update_math_node_single_operand_operators (bNodeTree *ntree)
static void blender::update_vector_math_node_add_and_subtract_operators (bNodeTree *ntree)
static void blender::update_vector_math_node_dot_product_operator (bNodeTree *ntree)
static void blender::update_vector_math_node_cross_product_operator (bNodeTree *ntree)
static void blender::update_vector_math_node_normalize_operator (bNodeTree *ntree)
static void blender::update_vector_math_node_operators_enum_mapping (bNodeTree *ntree)
static void blender::update_vector_math_node_average_operator (bNodeTree *ntree)
static void blender::update_noise_node_dimensions (bNodeTree *ntree)
static void blender::update_mapping_node_fcurve_rna_path_callback (FCurve *fcurve, const char *nodePath, const bNode *minimumNode, const bNode *maximumNode)
static void blender::update_mapping_node_inputs_and_properties (bNodeTree *ntree)
static void blender::update_musgrave_node_dimensions (bNodeTree *ntree)
static void blender::update_musgrave_node_color_output (bNodeTree *ntree)
static void blender::update_voronoi_node_dimensions (bNodeTree *ntree)
static void blender::update_voronoi_node_f3_and_f4 (bNodeTree *ntree)
static void blender::update_voronoi_node_fac_output (bNodeTree *ntree)
static void blender::update_voronoi_node_crackle (bNodeTree *ntree)
static void blender::update_voronoi_node_coloring (bNodeTree *ntree)
static void blender::update_voronoi_node_square_distance (bNodeTree *ntree)
static void blender::update_noise_and_wave_distortion (bNodeTree *ntree)
static void blender::update_wave_node_directions_and_offset (bNodeTree *ntree)
void blender::do_versions_after_linking_280 (FileData *fd, Main *bmain)
static void blender::do_versions_seq_unique_name_all_strips (Scene *sce, ListBaseT< Strip > *seqbasep)
static void blender::do_versions_seq_set_cache_defaults (Editing *ed)
static bool blender::strip_update_flags_cb (Strip *strip, void *)
 blender::ENUM_OPERATORS (eNTreeDoVersionErrors)
void blender::blo_do_versions_280 (FileData *fd, Library *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 10 of file versioning_280.cc.

◆ DNA_GENFILE_VERSIONING_MACROS

#define DNA_GENFILE_VERSIONING_MACROS

Definition at line 24 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_get(_idprop); \
if (_value) { \
scene.eevee.flag |= _flag; \
} \
else { \
scene.eevee.flag &= ~_flag; \
} \
} \
} \
((void)0)
#define IDP_int_get(prop)

Referenced by blender::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_get(_idprop); \
} \
} \
((void)0)
#define IDP_float_get(prop)

Referenced by blender::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)

◆ EEVEE_GET_INT

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

Referenced by blender::blo_do_versions_280().

◆ 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 119 of file versioning_280.cc.