|
Blender V4.3
|
#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 |
| #define BRUSH_RAKE (1 << 7) |
Referenced by blo_do_versions_270().
| #define BRUSH_RANDOM_ROTATION (1 << 25) |
Referenced by blo_do_versions_270().
| #define BRUSH_TORUS (1 << 1) |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 18 of file versioning_270.cc.
| #define DNA_GENFILE_VERSIONING_MACROS |
Definition at line 21 of file versioning_270.cc.
| #define LA_YF_PHOTON 5 |
Referenced by blo_do_versions_270().
| #define RV3D_VIEW_PERSPORTHO 7 |
Referenced by blo_do_versions_270().
| #define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19) |
Referenced by seq_update_proxy_cb().
| #define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21) |
Referenced by seq_update_proxy_cb().
|
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().
|
static |
Definition at line 90 of file versioning_270.cc.
References BLI_addtail(), BLI_uniquename(), DATA_, bGPDpalette::info, MEM_callocN, offsetof, and STRNCPY.
Referenced by blo_do_versions_270().
|
static |
Definition at line 120 of file versioning_270.cc.
References ARRAY_SET_ITEMS, BLI_addtail(), BLI_uniquename(), bGPDpalettecolor::color, bGPDpalette::colors, copy_v4_v4(), DATA_, bGPDpalettecolor::fill, bGPDpalettecolor::info, MEM_callocN, offsetof, and STRNCPY.
Referenced by blo_do_versions_270().
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().
|
static |
Definition at line 228 of file versioning_270.cc.
References ARegion::alignment, BLI_insertlinkbefore(), ARegion::flag, LISTBASE_FOREACH, MEM_callocN, ARegion::regiontype, RGN_ALIGN_RIGHT, RGN_FLAG_HIDDEN, RGN_TYPE_UI, and RGN_TYPE_WINDOW.
Referenced by blo_do_versions_270().
Definition at line 389 of file versioning_270.cc.
References FCurve::driver, DRIVER_TARGETS_LOOPER_BEGIN, DRIVER_TARGETS_LOOPER_END, ListBase::first, FMODIFIER_TYPE_STEPPED, LISTBASE_FOREACH, FCurve::modifiers, replace_bbone_easing_rnapath(), FCurve::rna_path, FMod_Stepped::start_frame, and ChannelDriver::variables.
Referenced by do_versions_after_linking_270().
|
static |
Definition at line 251 of file versioning_270.cc.
References do_version_bones_super_bbone(), and LISTBASE_FOREACH.
Referenced by blo_do_versions_270(), and do_version_bones_super_bbone().
|
static |
Definition at line 170 of file versioning_270.cc.
References CONSTRAINT_TYPE_TRANSFORM, DEG2RADF, LISTBASE_FOREACH, mul_v3_fl(), and TRANS_ROTATION.
Referenced by blo_do_versions_270().
|
static |
Definition at line 190 of file versioning_270.cc.
References CONSTRAINT_TYPE_TRANSFORM, copy_v3_v3(), LISTBASE_FOREACH, TRANS_ROTATION, and TRANS_SCALE.
Referenced by blo_do_versions_270().
|
static |
Definition at line 217 of file versioning_270.cc.
References CONSTRAINT_TYPE_STRETCHTO, and LISTBASE_FOREACH.
Referenced by blo_do_versions_270().
Definition at line 275 of file versioning_270.cc.
References AnimData::action, anim_change_prop_name(), BKE_animdata_from_id(), BLI_sprintfN(), BLI_str_escape(), bAction::curves, NodeHueSat::hue, bNodeTree::id, LISTBASE_FOREACH, MEM_freeN(), blender::bke::node_add_static_socket(), blender::bke::node_find_socket(), PROP_FACTOR, NodeHueSat::sat, SOCK_FLOAT, SOCK_IN, STRPREFIX, and NodeHueSat::val.
Referenced by do_versions_after_linking_270().
| void do_versions_after_linking_270 | ( | Main * | bmain | ) |
Definition at line 1610 of file versioning_270.cc.
References BKE_fcurves_main_cb(), do_version_bbone_easing_fcurve_fix(), do_version_hue_sat_node(), FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, LISTBASE_FOREACH, MAIN_VERSION_FILE_ATLEAST, blender::bke::node_tree_set_type(), and NTREE_COMPOSIT.
Referenced by do_versions_after_linking().
|
static |
Definition at line 350 of file versioning_270.cc.
References do_versions_compositor_render_passes_storage(), LISTBASE_FOREACH, node_verify_sockets(), and bNodeTree::nodes.
Referenced by blo_do_versions_270().
|
static |
Definition at line 322 of file versioning_270.cc.
References MEM_callocN, node_cmp_rlayers_sock_to_pass(), NodeImageLayer::pass_name, and STRNCPY.
Referenced by do_versions_compositor_render_passes().
|
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().
|
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().
|
static |
Definition at line 446 of file versioning_270.cc.
References copy_v4_fl(), Sequence::effectdata, SeqEffectHandle::init, SEQ_effect_handle_get(), SEQ_TYPE_TEXT, and Sequence::type.
Referenced by blo_do_versions_270().
|
static |
Definition at line 426 of file versioning_270.cc.
References Sequence::flag, MEM_callocN, Strip::proxy, SEQ_STORAGE_PROXY_CUSTOM_DIR, SEQ_STORAGE_PROXY_CUSTOM_FILE, SEQ_USE_PROXY_CUSTOM_DIR, SEQ_USE_PROXY_CUSTOM_FILE, Sequence::stereo3d_format, StripProxy::storage, and Sequence::strip.
Referenced by blo_do_versions_270().