Blender
V3.3
|
#include "BLI_compiler_attrs.h"
#include "BLI_utildefines.h"
#include <stddef.h>
#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_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_force_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_sdna_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.h"
#include "BKE_animsys.h"
#include "BKE_colortools.h"
#include "BKE_fcurve_driver.h"
#include "BKE_main.h"
#include "BKE_mask.h"
#include "BKE_modifier.h"
#include "BKE_node.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "BKE_tracking.h"
#include "DNA_material_types.h"
#include "SEQ_effects.h"
#include "SEQ_iterator.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_string_utils.h"
#include "BLT_translation.h"
#include "BLO_readfile.h"
#include "NOD_common.h"
#include "NOD_composite.h"
#include "NOD_socket.h"
#include "readfile.h"
#include "MEM_guardedalloc.h"
Go to the source code of this file.
Macros | |
#define | DNA_DEPRECATED_ALLOW |
#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) |
#define BRUSH_RANDOM_ROTATION (1 << 25) |
#define BRUSH_TORUS (1 << 1) |
#define DNA_DEPRECATED_ALLOW |
Definition at line 14 of file versioning_270.c.
#define LA_YF_PHOTON 5 |
#define RV3D_VIEW_PERSPORTHO 7 |
#define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19) |
#define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21) |
|
static |
Definition at line 260 of file versioning_270.c.
References BLI_sprintfN(), MEM_freeN, FCurve::rna_path, and STREQ.
Referenced by do_version_hue_sat_node().
|
static |
Definition at line 82 of file versioning_270.c.
References BLI_addtail(), BLI_strncpy(), BLI_uniquename(), DATA_, bGPDpalette::info, MEM_callocN, and NULL.
Referenced by blo_do_versions_270().
|
static |
Definition at line 112 of file versioning_270.c.
References ARRAY_SET_ITEMS, BLI_addtail(), BLI_strncpy(), BLI_uniquename(), bGPDpalettecolor::color, bGPDpalette::colors, copy_v4_v4(), DATA_, bGPDpalettecolor::fill, bGPDpalettecolor::info, MEM_callocN, and NULL.
Referenced by blo_do_versions_270().
Definition at line 454 of file versioning_270.c.
References Freestyle::a, DisplaySafeAreas::action, DisplaySafeAreas::action_center, Brush::alpha, MovieTrackingStabilization::anchor_frame, blender::compositor::area(), bScreen::areabase, Main::armatures, ARRAY_SET_ITEMS, ARRAY_SIZE, RenderData::bake, 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(), BKE_tracking_object_get_tracks(), BLI_addtail(), BLI_freelinkN(), BLI_listbase_clear(), BLI_listbase_count(), BLI_listbase_is_empty(), BLI_strncpy(), ParticleEditSettings::brush, BRUSH_ACCUMULATE, MTex::brush_angle_mode, BRUSH_FRONTFACE_FALLOFF, BRUSH_GRAB_ACTIVE_VERTEX, BRUSH_INVERT_TO_SCRAPE_FILL, BRUSH_ORIGINAL_PLANE, BRUSH_RAKE, BRUSH_RANDOM_ROTATION, BRUSH_SCENE_SPACING, BRUSH_TORUS, Main::brushes, camera, Main::cameras, CD_MDEFORMVERT, bPose::chanbase, ParticleSettings::child_flag, FluidDomainSettings::clipping, CurveMapping::clipr, ParticleSystem::clmd, ParticleSettings::clump_noise_size, ParticleSettings::clumpcurve, CurveMapping::cm, CMP_NODE_COMPOSITE, CMP_NODE_GLARE, CMP_NODE_OUTPUT_FILE, CMP_NODE_PLANETRACKDEFORM, bMotionPath::color, bGPDpalettecolor::color, ImageFormatData::compress, Sculpt::constant_detail, FFMpegCodecData::constant_rate_factor, bPoseChannel::constraints, Object::constraints, CameraStereoSettings::convergence_distance, copy_v2_fl2(), copy_v4_v4(), CurvePaintSettings::corner_angle, ParticleBrushData::count, CU_BEZIER, CURVE_PAINT_FLAG_CORNERS_DETECT, ToolSettings::curve_paint_settings, CURVE_PRESET_MAX, CurvePaintSettings::curve_type, CURVEMAP_SLOPE_POS_NEG, bPoseChannel::custom_scale, CustomData_set_layer_name(), data, MovieTrackingSettings::default_weight, DecimateModifierData::defgrp_factor, SimpleDeformModifierData::deform_axis, DEG2RADF, ImageFormatData::depth, FluidDomainSettings::display_thickness, DNA_struct_elem_find(), 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, Scene::ed, 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, enabled, eParticleInstanceSpace_World, CurvePaintSettings::error_threshold, ImageFormatData::exr_codec, HookModifierData::falloff_type, RenderData::ffcodecdata, FFM_CRF_NONE, FFM_PRESET_BEST, FFM_PRESET_GOOD, FFM_PRESET_NONE, FFM_PRESET_REALTIME, FFMpegCodecData::ffmpeg_preset, FILE_MAX, ImagePackedFile::filepath, Image::filepath, BakeData::filepath, FileData::filesdna, bGPDpalettecolor::fill, Brush::fill_threshold, ListBase::first, bMotionPath::flag, Brush::flag, bGPDpalettecolor::flag, ImageUser::flag, FreestyleLineStyle::flag, PointCache::flag, BakeData::flag, VPaint::flag, CurvePaintSettings::flag, MovieTrackingStabilization::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, BakeData::height, Brush::id, Camera::id, Image::id, FreestyleLineStyle::id, Material::id, Mesh::id, MovieClip::id, Object::id, ParticleSettings::id, Scene::id, bScreen::id, wmWindowManager::id, ID_RECALC_PSYS_RESET, if(), BakeData::im_format, RenderData::im_format, IMA_SHOW_STEREO, image(), Main::images, ImageFormatData::imtype, INDEX_ID_MAX, bGPDpalette::info, FreestyleLineStyle::integration_type, CameraStereoSettings::interocular_distance, SpaceImage::iuser, View2D::keepzoom, ParticleSettings::kink_extra_steps, MTex::kinkampfac, LA_LOCAL, LA_YF_PHOTON, ListBase::last, LIB_FAKEUSER, Main::lights, Material::line_col, bMotionPath::line_thickness, 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_ATLEAST, BakeData::margin, mask(), Brush::mask_mtex, Main::masks, BevelModifierData::mat, SurfaceDeformModifierData::mat, Main::materials, MAX_MTEX, View2D::maxzoom, RenderData::mblur_shutter_curve, MEM_callocN, MEM_mallocN, Main::meshes, migrate_single_rot_stabilization_track_settings(), min_ff(), View2D::minzoom, NormalEditModifierData::mix_limit, MOD_BEVEL_AMT_OFFSET, SpaceClip::mode, Object::modifiers, MOTIONPATH_FLAG_LINES, Main::movieclips, bPoseChannel::mpath, Object::mpath, Brush::mtex, ParticleSettings::mtex, MTEX_ANGLE_RAKE, MTEX_ANGLE_RANDOM, ModifierData::name, ID::name, bPoseChannel::next, ID::next, ModifierData::next, ParticleSystem::next, ARegion::next, SpaceLink::next, MovieTrackingTrack::next, MovieTrackingObject::next, wmWindow::next, node, bNodeTree::nodes, BakeData::normal_space, BakeData::normal_swizzle, ntree, NTREE_COMPOSIT, ntreeFromID(), ntreeSetTypes(), NULL, Brush::ob_mode, OB_MODE_SCULPT, Main::objects, MovieTracking::objects, ImagePackedFile::packedfile, Image::packedfiles, SpaceFile::params, PART_CHILD_USE_CLUMP_CURVE, PART_CHILD_USE_ROUGH_CURVE, ToolSettings::particle, ParticleInstanceModifierData::particle_amount, Main::particles, Object::particlesystem, BakeData::pass_filter, PC_COLOR_HIDE, PC_COLOR_LOCKED, PC_COLOR_ONIONSKIN, PC_COLOR_VOLUMETRIC, ImageFormatData::planes, ParticleSystem::pointcache, Object::pose, ModifierData::prev, BevelModifierData::profile, ParticleSystemModifierData::psys, PTCACHE_BAKED, ImageFormatData::quality, Scene::r, 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, MTex::random_angle, ParticleSystem::recalc, SpaceAction::regionbase, SpaceLink::regionbase, ARegion::regiondata, ARegion::regiontype, RGN_ALIGN_NONE, RGN_FLAG_HIDDEN, RGN_TYPE_CHANNELS, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, Object::rigidbody_constraint, ParticleSettings::roughcurve, RV3D_VIEW_PERSPORTHO, RV3D_VIEW_USER, Scene::safe_areas, SC_MODE_MASKEDIT, SC_MODE_TRACKING, MovieTrackingStabilization::scale, scene, Main::scenes, SCREENNORMAL, Main::screens, ToolSettings::sculpt, Brush::sculpt_tool, SCULPT_TOOL_FLATTEN, SCULPT_TOOL_GRAB, SCULPT_TOOL_SNAKE_HOOK, SEQ_for_each_callback(), seq_update_effectdata_cb(), seq_update_proxy_cb(), SEQ_VIEW_SEQUENCE, Editing::seqbase, set_listbasepointers(), MovieTracking::settings, ClothModifierData::sim_parms, RenderData::simplify_particles, RenderData::simplify_particles_render, RenderData::simplify_subsurf, RenderData::simplify_subsurf_render, FluidDomainSettings::slice_depth, FluidDomainSettings::slice_per_voxel, Mesh::smoothresh, FreestyleLineStyle::sort_key, ParticleInstanceModifierData::space, SPACE_ACTION, SPACE_CLIP, SPACE_FILE, SPACE_IMAGE, SPACE_SEQ, SPACE_VIEW3D, SpaceLink::spacetype, 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, MovieTracking::stabilization, NodeGlare::star_45, Camera::stereo, View3D::stereo3d_camera, View3D::stereo3d_convergence_alpha, View3D::stereo3d_flag, Image::stereo3d_format, wmWindow::stereo3d_format, View3D::stereo3d_volume_alpha, STEREO_3D_ID, STEREO_LEFT_NAME, STEREO_LEFT_SUFFIX, STEREO_RIGHT_NAME, STEREO_RIGHT_SUFFIX, NodeGlare::streaks, ParticleBrushData::strength, SceneRenderView::suffix, FreestyleLineStyle::texstep, FileSelectParams::thumbnail_size, ClothSimSettings::time_scale, DisplaySafeAreas::title, DisplaySafeAreas::title_center, Scene::toolsettings, MovieClip::tracking, TRACKING_SHOW_STAB_TRACKS, ModifierData::type, bNodeTree::type, NodeGlare::type, ARegion::ui_previews, unit_m4(), ARegion::v2d, V2D_LIMITZOOM, V3D_S3D_DISPPLANE, BevelModifierData::val_flags, SpaceSeq::view, RegionView3D::view, RenderData::views, VP_FLAG_VGROUP_RESTRICT, ToolSettings::vpaint, MovieTrackingTrack::weight, MovieTrackingTrack::weight_stab, BakeData::width, wmWindowManager::windows, Main::wm, and ToolSettings::wpaint.
Definition at line 225 of file versioning_270.c.
References ARegion::alignment, BLI_insertlinkbefore(), ListBase::first, ARegion::flag, MEM_callocN, ARegion::next, ARegion::regiontype, RGN_ALIGN_RIGHT, RGN_FLAG_HIDDEN, RGN_TYPE_UI, and RGN_TYPE_WINDOW.
Referenced by blo_do_versions_270().
|
static |
Definition at line 375 of file versioning_270.c.
References data, 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, and ChannelDriver::variables.
Referenced by do_versions_after_linking_270().
Definition at line 249 of file versioning_270.c.
References LISTBASE_FOREACH.
Referenced by blo_do_versions_270().
Definition at line 161 of file versioning_270.c.
References CONSTRAINT_TYPE_TRANSFORM, data, bConstraint::data, DEG2RADF, ListBase::first, mul_v3_fl(), bConstraint::next, TRANS_ROTATION, and bConstraint::type.
Referenced by blo_do_versions_270().
Definition at line 183 of file versioning_270.c.
References CONSTRAINT_TYPE_TRANSFORM, copy_v3_v3(), data, bConstraint::data, ListBase::first, if(), bConstraint::next, TRANS_ROTATION, TRANS_SCALE, and bConstraint::type.
Referenced by blo_do_versions_270().
Definition at line 212 of file versioning_270.c.
References CONSTRAINT_TYPE_STRETCHTO, data, bConstraint::data, ListBase::first, bConstraint::next, and bConstraint::type.
Referenced by blo_do_versions_270().
Definition at line 273 of file versioning_270.c.
References AnimData::action, anim_change_prop_name(), BKE_animdata_from_id(), BLI_sprintfN(), BLI_str_escape(), bAction::curves, ListBase::first, NodeHueSat::hue, hue, bNodeTree::id, MEM_freeN, node, node_verify_sockets(), nodeFindSocket(), ntree, NULL, NodeHueSat::sat, saturation, SOCK_IN, STRPREFIX, and NodeHueSat::val.
Referenced by do_versions_after_linking_270().
Definition at line 1707 of file versioning_270.c.
References BKE_fcurves_main_cb(), CMP_NODE_HUE_SAT, do_version_bbone_easing_fcurve_fix(), do_version_hue_sat_node(), FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, LISTBASE_FOREACH, MAIN_VERSION_ATLEAST, node, bNodeTree::nodes, ntree, NTREE_COMPOSIT, ntreeSetTypes(), NULL, and bNodeTree::type.
Referenced by do_versions_after_linking().
Definition at line 336 of file versioning_270.c.
References CMP_NODE_R_LAYERS, do_versions_compositor_render_passes_storage(), LISTBASE_FOREACH, node, node_verify_sockets(), bNodeTree::nodes, and ntree.
Referenced by blo_do_versions_270().
Definition at line 309 of file versioning_270.c.
References BLI_strncpy(), MEM_callocN, node, node_cmp_rlayers_sock_to_pass(), NULL, and NodeImageLayer::pass_name.
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 150 of file versioning_270.c.
References MovieTrackingStabilization::flag, NULL, MovieTrackingStabilization::tot_rot_track, and TRACK_USE_2D_STAB_ROT.
Referenced by blo_do_versions_270().
|
static |
Definition at line 353 of file versioning_270.c.
References BLI_str_replaceN(), MEM_freeN, and NULL.
Referenced by do_version_bbone_easing_fcurve_fix().
Definition at line 433 of file versioning_270.c.
References copy_v4_fl(), data, Sequence::effectdata, SeqEffectHandle::init, NULL, SEQ_effect_handle_get(), SEQ_TYPE_TEXT, and Sequence::type.
Referenced by blo_do_versions_270().
Definition at line 414 of file versioning_270.c.
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().