Blender V4.3
versioning_270.cc File Reference
#include "BLI_compiler_attrs.h"
#include "BLI_utildefines.h"
#include <cstddef>
#include <string>
#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_constraint_types.h"
#include "DNA_fluid_types.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_light_types.h"
#include "DNA_linestyle_types.h"
#include "DNA_mask_types.h"
#include "DNA_mesh_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_particle_types.h"
#include "DNA_pointcache_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "DNA_genfile.h"
#include "BKE_anim_data.hh"
#include "BKE_animsys.h"
#include "BKE_colortools.hh"
#include "BKE_customdata.hh"
#include "BKE_fcurve_driver.h"
#include "BKE_main.hh"
#include "BKE_mask.h"
#include "BKE_modifier.hh"
#include "BKE_node.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "DNA_material_types.h"
#include "SEQ_effects.hh"
#include "SEQ_iterator.hh"
#include "BLI_listbase.h"
#include "BLI_math_matrix.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_string.h"
#include "BLI_string_utils.hh"
#include "BLT_translation.hh"
#include "BLO_readfile.hh"
#include "NOD_composite.hh"
#include "NOD_socket.hh"
#include "readfile.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 SEQ_USE_PROXY_CUSTOM_DIR   (1 << 19)
 
#define SEQ_USE_PROXY_CUSTOM_FILE   (1 << 21)
 
#define BRUSH_RAKE   (1 << 7)
 
#define BRUSH_RANDOM_ROTATION   (1 << 25)
 
#define BRUSH_TORUS   (1 << 1)
 
#define RV3D_VIEW_PERSPORTHO   7
 
#define LA_YF_PHOTON   5
 

Functions

static bGPDpaletteBKE_gpencil_palette_addnew (bGPdata *gpd, const char *name)
 
static bGPDpalettecolorBKE_gpencil_palettecolor_addnew (bGPDpalette *palette, const char *name)
 
static void migrate_single_rot_stabilization_track_settings (MovieTrackingStabilization *stab)
 
static void do_version_constraints_radians_degrees_270_1 (ListBase *lb)
 
static void do_version_constraints_radians_degrees_270_5 (ListBase *lb)
 
static void do_version_constraints_stretch_to_limits (ListBase *lb)
 
static void do_version_action_editor_properties_region (ListBase *regionbase)
 
static void do_version_bones_super_bbone (ListBase *lb)
 
static void anim_change_prop_name (FCurve *fcu, const char *prefix, const char *old_prop_name, const char *new_prop_name)
 
static void do_version_hue_sat_node (bNodeTree *ntree, bNode *node)
 
static void do_versions_compositor_render_passes_storage (bNode *node)
 
static void do_versions_compositor_render_passes (bNodeTree *ntree)
 
static char * replace_bbone_easing_rnapath (char *old_path)
 
static void do_version_bbone_easing_fcurve_fix (ID *, FCurve *fcu)
 
static bool seq_update_proxy_cb (Sequence *seq, void *)
 
static bool seq_update_effectdata_cb (Sequence *seq, void *)
 
void blo_do_versions_270 (FileData *fd, Library *, Main *bmain)
 
void do_versions_after_linking_270 (Main *bmain)
 

Macro Definition Documentation

◆ BRUSH_RAKE

#define BRUSH_RAKE   (1 << 7)

Referenced by blo_do_versions_270().

◆ BRUSH_RANDOM_ROTATION

#define BRUSH_RANDOM_ROTATION   (1 << 25)

Referenced by blo_do_versions_270().

◆ BRUSH_TORUS

#define BRUSH_TORUS   (1 << 1)

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 18 of file versioning_270.cc.

◆ DNA_GENFILE_VERSIONING_MACROS

#define DNA_GENFILE_VERSIONING_MACROS

Definition at line 21 of file versioning_270.cc.

◆ LA_YF_PHOTON

#define LA_YF_PHOTON   5

Referenced by blo_do_versions_270().

◆ RV3D_VIEW_PERSPORTHO

#define RV3D_VIEW_PERSPORTHO   7

Referenced by blo_do_versions_270().

◆ SEQ_USE_PROXY_CUSTOM_DIR

#define SEQ_USE_PROXY_CUSTOM_DIR   (1 << 19)

Referenced by seq_update_proxy_cb().

◆ SEQ_USE_PROXY_CUSTOM_FILE

#define SEQ_USE_PROXY_CUSTOM_FILE   (1 << 21)

Referenced by seq_update_proxy_cb().

◆ U

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

Definition at line 84 of file versioning_270.cc.

Function Documentation

◆ anim_change_prop_name()

static void anim_change_prop_name ( FCurve * fcu,
const char * prefix,
const char * old_prop_name,
const char * new_prop_name )
static

Definition at line 262 of file versioning_270.cc.

References BLI_sprintfN(), MEM_freeN(), FCurve::rna_path, and STREQ.

Referenced by do_version_hue_sat_node().

◆ BKE_gpencil_palette_addnew()

static bGPDpalette * BKE_gpencil_palette_addnew ( bGPdata * gpd,
const char * name )
static

◆ BKE_gpencil_palettecolor_addnew()

static bGPDpalettecolor * BKE_gpencil_palettecolor_addnew ( bGPDpalette * palette,
const char * name )
static

◆ blo_do_versions_270()

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

Definition at line 467 of file versioning_270.cc.

References Main::armatures, ARRAY_SET_ITEMS, ARRAY_SIZE, ClothSimSettings::bending_damping, BKE_area_region_free(), BKE_curvemap_reset(), BKE_curvemapping_init(), BKE_curvemapping_set_defaults(), BKE_gpencil_palette_addnew(), BKE_gpencil_palettecolor_addnew(), BKE_mask_parent_init(), BKE_modifier_unique_name(), BKE_scene_add_render_view(), BLI_addtail(), BLI_freelinkN(), BLI_listbase_clear(), BLI_listbase_count(), BLI_listbase_is_empty(), ParticleEditSettings::brush, BRUSH_ACCUMULATE, BRUSH_FRONTFACE_FALLOFF, BRUSH_GRAB_ACTIVE_VERTEX, BRUSH_INVERT_TO_SCRAPE_FILL, BRUSH_ORIGINAL_PLANE, BRUSH_RAKE, BRUSH_RANDOM_ROTATION, BRUSH_SCENE_SPACING, Main::brushes, Main::cameras, CD_MDEFORMVERT, FluidDomainSettings::clipping, CurveMapping::clipr, ParticleSystem::clmd, CurveMapping::cm, CMP_NODE_GLARE_SIMPLE_STAR, CMP_NODE_GLARE_STREAKS, bGPDpalettecolor::color, Sculpt::constant_detail, copy_v2_fl2(), copy_v4_v4(), CurvePaintSettings::corner_angle, ParticleBrushData::count, CU_BEZIER, CURVE_PAINT_FLAG_CORNERS_DETECT, CURVE_PRESET_MAX, CurvePaintSettings::curve_type, CURVEMAP_SLOPE_POS_NEG, CustomData_set_layer_name(), DecimateModifierData::defgrp_factor, SimpleDeformModifierData::deform_axis, DEG2RADF, FluidDomainSettings::display_thickness, do_version_action_editor_properties_region(), do_version_bones_super_bbone(), do_version_constraints_radians_degrees_270_1(), do_version_constraints_radians_degrees_270_5(), do_version_constraints_stretch_to_limits(), do_versions_compositor_render_passes(), FluidModifierData::domain, BooleanModifierData::double_threshold, eHook_Falloff_InvSquare, ELEM, eModifierType_Bevel, eModifierType_Boolean, eModifierType_Cloth, eModifierType_Decimate, eModifierType_Fluid, eModifierType_Hook, eModifierType_NormalEdit, eModifierType_ParticleInstance, eModifierType_ParticleSystem, eModifierType_SimpleDeform, eModifierType_SurfaceDeform, eParticleInstanceSpace_World, CurvePaintSettings::error_threshold, HookModifierData::falloff_type, FFM_CRF_NONE, FFM_PRESET_BEST, FFM_PRESET_GOOD, FFM_PRESET_NONE, FFM_PRESET_REALTIME, ImagePackedFile::filepath, FileData::filesdna, bGPDpalettecolor::fill, bGPDpalettecolor::flag, CurvePaintSettings::flag, FreestyleLineStyle::flag, ImageUser::flag, NodePlaneTrackDeformData::flag, SpaceSeq::flag, VPaint::flag, float, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, GP_DATA_SHOW_ONIONSKINS, GP_LAYER_HIDE, GP_LAYER_LOCKED, GP_LAYER_ONIONSKIN, GP_LAYER_VOLUMETRIC, GP_PROJECT_VIEWSPACE, ToolSettings::gpencil_v2d_align, ToolSettings::gpencil_v3d_align, Main::gpencils, HD_AUTO, ID_FLAG_FAKEUSER, ID_RECALC_PSYS_RESET, IMA_SHOW_STEREO, Main::images, INDEX_ID_MAX, bGPDpalette::info, FreestyleLineStyle::integration_type, SpaceImage::iuser, MTex::kinkampfac, LA_LOCAL, LA_YF_PHOTON, Main::lights, linestyle, Main::linestyles, LISTBASE_FOREACH, LS_INTEGRATION_MEAN, LS_NO_SORTING, LS_SORT_KEY_DISTANCE_FROM_CAMERA, LS_TEXTURE, M_PI, M_SQRT3, MAIN_VERSION_FILE_ATLEAST, Main::masks, BevelModifierData::mat, SurfaceDeformModifierData::mat, Main::materials, MAX_MTEX, MEM_callocN, MEM_mallocN, Main::meshes, migrate_single_rot_stabilization_track_settings(), min_ff(), NormalEditModifierData::mix_limit, MOD_BEVEL_AMT_OFFSET, SpaceClip::mode, MOTIONPATH_FLAG_LINES, Main::movieclips, MTEX_ANGLE_RAKE, MTEX_ANGLE_RANDOM, node_tree, blender::bke::node_tree_from_id(), blender::bke::node_tree_set_type(), NTREE_COMPOSIT, OB_MODE_SCULPT, Main::objects, ImagePackedFile::packedfile, SpaceFile::params, PART_CHILD_USE_CLUMP_CURVE, PART_CHILD_USE_ROUGH_CURVE, ToolSettings::particle, ParticleInstanceModifierData::particle_amount, Main::particles, PC_COLOR_HIDE, PC_COLOR_LOCKED, PC_COLOR_ONIONSKIN, PC_COLOR_VOLUMETRIC, printf, BevelModifierData::profile, ParticleSystemModifierData::psys, PTCACHE_BAKED, R_BAKE_CLEAR, R_BAKE_PASS_FILTER_ALL, R_BAKE_POSX, R_BAKE_POSY, R_BAKE_POSZ, R_BAKE_SPACE_TANGENT, R_IMF_CHAN_DEPTH_8, R_IMF_EXR_CODEC_DWAA, R_IMF_EXR_CODEC_DWAB, R_IMF_IMTYPE_PNG, R_IMF_PLANES_RGBA, CurvePaintSettings::radius_max, SpaceAction::regionbase, RGN_ALIGN_NONE, RGN_FLAG_HIDDEN, RGN_TYPE_CHANNELS, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, RV3D_VIEW_PERSPORTHO, RV3D_VIEW_USER, SC_MODE_MASKEDIT, SC_MODE_TRACKING, Main::scenes, SCREENNORMAL, Main::screens, ToolSettings::sculpt, SCULPT_BRUSH_TYPE_FLATTEN, SCULPT_BRUSH_TYPE_GRAB, SCULPT_BRUSH_TYPE_SNAKE_HOOK, SEQ_for_each_callback(), seq_update_effectdata_cb(), seq_update_proxy_cb(), SEQ_VIEW_SEQUENCE, set_listbasepointers(), ClothModifierData::sim_parms, FluidDomainSettings::slice_depth, FluidDomainSettings::slice_per_voxel, FreestyleLineStyle::sort_key, ParticleInstanceModifierData::space, SPACE_ACTION, SPACE_CLIP, SPACE_FILE, SPACE_IMAGE, SPACE_SEQ, SPACE_VIEW3D, RigidBodyCon::spring_damping_ang_x, RigidBodyCon::spring_damping_ang_y, RigidBodyCon::spring_damping_ang_z, RigidBodyCon::spring_stiffness_ang_x, RigidBodyCon::spring_stiffness_ang_y, RigidBodyCon::spring_stiffness_ang_z, NodeGlare::star_45, View3D::stereo3d_camera, View3D::stereo3d_convergence_alpha, View3D::stereo3d_flag, View3D::stereo3d_volume_alpha, STEREO_3D_ID, STEREO_LEFT_NAME, STEREO_LEFT_SUFFIX, STEREO_RIGHT_NAME, STEREO_RIGHT_SUFFIX, NodeGlare::streaks, ParticleBrushData::strength, STRNCPY, SceneRenderView::suffix, FreestyleLineStyle::texstep, FileSelectParams::thumbnail_size, ClothSimSettings::time_scale, TRACKING_OBJECT_CAMERA, TRACKING_SHOW_STAB_TRACKS, NodeGlare::type, unit_m4(), V2D_LIMITZOOM, V3D_S3D_DISPPLANE, BevelModifierData::val_flags, RegionView3D::view, SpaceSeq::view, VP_FLAG_VGROUP_RESTRICT, ToolSettings::vpaint, Main::wm, and ToolSettings::wpaint.

Referenced by do_versions().

◆ do_version_action_editor_properties_region()

static void do_version_action_editor_properties_region ( ListBase * regionbase)
static

◆ do_version_bbone_easing_fcurve_fix()

◆ do_version_bones_super_bbone()

static void do_version_bones_super_bbone ( ListBase * lb)
static

◆ do_version_constraints_radians_degrees_270_1()

static void do_version_constraints_radians_degrees_270_1 ( ListBase * lb)
static

◆ do_version_constraints_radians_degrees_270_5()

static void do_version_constraints_radians_degrees_270_5 ( ListBase * lb)
static

◆ do_version_constraints_stretch_to_limits()

static void do_version_constraints_stretch_to_limits ( ListBase * lb)
static

Definition at line 217 of file versioning_270.cc.

References CONSTRAINT_TYPE_STRETCHTO, and LISTBASE_FOREACH.

Referenced by blo_do_versions_270().

◆ do_version_hue_sat_node()

◆ do_versions_after_linking_270()

◆ do_versions_compositor_render_passes()

static void do_versions_compositor_render_passes ( bNodeTree * ntree)
static

◆ do_versions_compositor_render_passes_storage()

static void do_versions_compositor_render_passes_storage ( bNode * node)
static

◆ migrate_single_rot_stabilization_track_settings()

static void migrate_single_rot_stabilization_track_settings ( MovieTrackingStabilization * stab)
static

Setup rotation stabilization from ancient single track spec. Former Version of 2D stabilization used a single tracking marker to determine the rotation to be compensated. Now several tracks can contribute to rotation detection and this feature is enabled by the MovieTrackingTrack::flag on a per track base.

Definition at line 159 of file versioning_270.cc.

References MovieTrackingTrack::flag, MovieTrackingStabilization::rot_track_legacy, MovieTrackingStabilization::tot_rot_track, and TRACK_USE_2D_STAB_ROT.

Referenced by blo_do_versions_270().

◆ replace_bbone_easing_rnapath()

static char * replace_bbone_easing_rnapath ( char * old_path)
static

Definition at line 367 of file versioning_270.cc.

References BLI_string_replaceN(), and MEM_freeN().

Referenced by do_version_bbone_easing_fcurve_fix().

◆ seq_update_effectdata_cb()

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

◆ seq_update_proxy_cb()