Blender
V3.3
|
#include <unistd.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_ipo_types.h"
#include "DNA_key_types.h"
#include "DNA_lattice_types.h"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_node_types.h"
#include "DNA_object_fluidsim_types.h"
#include "DNA_object_force_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "DNA_sdna_types.h"
#include "DNA_sequence_types.h"
#include "DNA_sound_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "DNA_world_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_anim_data.h"
#include "BKE_anim_visualization.h"
#include "BKE_armature.h"
#include "BKE_colortools.h"
#include "BKE_global.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_multires.h"
#include "BKE_node_tree_update.h"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_screen.h"
#include "BKE_sound.h"
#include "BKE_texture.h"
#include "SEQ_iterator.h"
#include "NOD_socket.h"
#include "BLO_readfile.h"
#include "readfile.h"
#include <errno.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 DNA_DEPRECATED_ALLOW |
Definition at line 16 of file versioning_250.c.
#define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19) |
#define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21) |
Definition at line 80 of file versioning_250.c.
References View2D::align, ARegion::alignment, blender::compositor::area(), BLI_addtail(), View2D::flag, View2D::keepofs, View2D::keeptot, View2D::keepzoom, MEM_callocN, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_TOP, RGN_TYPE_HEADER, ARegion::v2d, V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_NEG_Y, V2D_KEEPASPECT, V2D_KEEPTOT_STRICT, V2D_LIMITZOOM, V2D_LOCKOFS_Y, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, V2D_PIXELOFS_X, and V2D_PIXELOFS_Y.
Referenced by do_versions_windowmanager_2_50().
Definition at line 125 of file versioning_250.c.
References SpaceAction::action, View2D::align, ARegion::alignment, blender::compositor::area(), BKE_screen_view3d_do_versions_250(), BLI_addtail(), BLI_insertlinkbefore(), View2D::cur, ListBase::first, ARegion::flag, View2D::flag, float(), View2D::keeptot, View2D::keepzoom, View2D::max, MAXFRAMEF, View2D::maxzoom, MEM_callocN, View2D::min, View2D::minzoom, SpaceAction::mode, ARegion::next, NULL, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_SPLIT_PREV, RGN_TYPE_CHANNELS, RGN_TYPE_TOOL_PROPS, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, SACTCONT_SHAPEKEY, View2D::scroll, sequencer_init_preview_region(), SPACE_ACTION, SPACE_FILE, SPACE_GRAPH, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SEQ, SPACE_TEXT, SPACE_VIEW3D, SpaceLink::spacetype, usdtokens::st(), ST_FIND_WRAP, View2D::tot, ARegion::v2d, V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_NEG_Y, V2D_ALIGN_NO_POS_Y, V2D_IS_INIT, V2D_KEEPASPECT, V2D_KEEPTOT_STRICT, V2D_LIMITZOOM, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_LEFT, V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HANDLES, V2D_VIEWSYNC_AREA_VERTICAL, ARegion::winrct, ARegion::winx, ARegion::winy, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by do_versions_windowmanager_2_50().
Definition at line 668 of file versioning_250.c.
References Freestyle::a, ParticleSettings::acc, Main::actions, Brush::add_col, Tex::afmax, View2D::align, Brush::alpha, animviz_settings_init(), blender::compositor::area(), bScreen::areabase, Main::armatures, ARRAY_SIZE, Scene::audio, FFMpegCodecData::audio_channels, FFMpegCodecData::audio_codec, FFMpegCodecData::audio_mixrate, FFMpegCodecData::audio_volume, ToolSettings::autokey_mode, bPose::avs, Object::avs, ParticleSettings::bb_size, FCurve::bezt, Nurb::bezt, BKE_area_region_free(), BKE_modifier_new(), BKE_modifiers_findby_type(), BKE_ntree_update_tag_all(), BKE_ntree_update_tag_link_added(), BKE_ptcache_ids_from_object(), BKE_scopes_new(), BKE_spacetype_from_id(), BKE_texture_mtex_default(), BLI_addtail(), BLI_freelinkN(), BLI_freelistN(), BLI_insertlinkbefore(), BLI_listbase_is_empty(), blo_do_version_old_trackto_to_constraints(), blo_do_versions_newlibadr(), Key::block, ParticleSettings::boids, bArmature::bonebase, RenderData::border, Nurb::bp, ParticleEditSettings::brush, BRUSH_SPACE_ATTEN, Main::brushes, PTCacheID::cache, CD_MDISPS, bPose::chanbase, ParticleSettings::clength, CMP_NODE_BLUR, CMP_NODE_COLORBALANCE, MVert::co, Tex::coba, RenderData::color_mgt_flag, bPoseChannel::constraints, Object::constraints, PixelFormat::convert(), copy_v3_v3(), copy_v4_v4(), ParticleSettings::courant_target, Brush::crease_pinch_factor, CU_TYPE, View2D::cur, bNodeTree::cur_index, Brush::curve, CURVE_PRESET_SMOOTH, Main::curves, bAction::curves, CustomData_free_layer_active(), data, KeyBlock::data, Object::data, ColorBand::data, Lattice::def, bArmature::deformflag, ArmatureModifierData::deformflag, AudioData::distance_model, do_gravity(), do_version_bone_roll_256(), do_version_constraints_radians_degrees_250(), do_version_mdef_250(), do_versions_gpencil_2_50(), do_versions_node_group_add_socket_2_56_2(), do_versions_socket_default_value_259(), do_versions_windowmanager_2_50(), FluidModifierData::domain, AudioData::doppler_factor, Object::dquat, ParticleSettings::draw, ParticleSettings::draw_as, ParticleSettings::draw_col, Object::drotAngle, Object::drotAxis, Object::dt, Scene::ed, ClothSimSettings::effector_weights, SoftBody::effector_weights, ParticleSettings::effector_weights, ELEM, eModifierType_Armature, eModifierType_Cloth, eModifierType_Curve, eModifierType_Fluid, eModifierType_Fluidsim, eModifierType_Lattice, eModifierType_Multires, eModifierType_Ocean, eModifierType_Solidify, Mesh::fdata, RenderData::ffcodecdata, ListBase::first, FCurve::flag, Brush::flag, Camera::flag, SolidifyModifierData::flag, FluidsimSettings::flag, PartDeflect::flag, Object::flag, ParticleSettings::flag, PointCache::flag, PhysicsSettings::flag, View3D::flag2, FluidDomainSettings::flags, FluidFlowSettings::flags, FFMpegCodecData::flags, float(), FluidModifierData::flow, FLUID_FLOW_INITVELOCITY, FluidsimSettings::fmd, PartDeflect::forcefield, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, RenderData::frame_step, bNodeLink::fromnode, bNodeLink::fromsock, FluidsimModifierData::fss, EffectorWeights::global_gravity, SoftBody::grav, ClothSimSettings::gravity, PhysicsSettings::gravity, BezTriple::h1, BezTriple::h2, HD_AUTO, HD_AUTO_ANIM, Brush::height, Histogram::height, bAction::id, bArmature::id, Brush::id, Curve::id, Key::id, Lattice::id, Material::id, Mesh::id, bNodeTree::id, Object::id, ParticleSettings::id, Scene::id, bScreen::id, bSound::id, Tex::id, INFO_RPT_OP, bNodeTree::inputs, IS_EQF, is_zero_v3(), is_zero_v4(), View2D::keepofs, View2D::keeptot, View2D::keepzoom, Curve::key, Lattice::key, Mesh::key, ParticleSettings::kink_amp_clump, ListBase::last, Main::lattices, lib, ID::lib, NodeColorBalance::lift, bPoseChannel::limitmax, bPoseChannel::limitmin, bNodeSocket::link, bNodeTree::links, MultiresModifierData::lvl, M_PI, AudioData::main, MAIN_VERSION_ATLEAST, SpaceSeq::mainb, Brush::mask_mtex, SolidifyModifierData::mat_ofs_rim, Object::matbits, Main::materials, View2D::maxzoom, MEM_calloc_arrayN, MEM_callocN, Main::meshes, View2D::min, MIN2, View2D::minzoom, AudioData::mixrate, MOD_FLUID_TYPE_DOMAIN, MOD_FLUID_TYPE_FLOW, Object::mode, RenderData::mode, Object::modifiers, MOTIONPATH_BAKE_HEADS, MOTIONPATH_TYPE_ACFRA, MOTIONPATH_VIEW_FNUMS, MOTIONPATH_VIEW_KFNOS, MOTIONPATH_VIEW_KFRAS, Brush::mtex, Mesh::mvert, bNodeSocket::name, ID::name, bSound::newpackedfile, PTCacheID::next, bPoseChannel::next, FCurve::next, Bone::next, Nurb::next, ID::next, KeyBlock::next, Base::next, ModifierData::next, bNodeSocket::next, ARegion::next, SpaceLink::next, node, NODE_GROUP, nodeCountSocketLinks(), bNodeTree::nodes, nodeSocketIsHidden(), Material::nodetree, Scene::nodetree, Tex::nodetree, Main::nodetrees, nodeUniqueName(), ntree, NULL, Curve::nurb, OB_ARMATURE, OB_CAMERA, OB_CURVES_LEGACY, OB_FLUIDSIM_ACTIVE, OB_FLUIDSIM_OVERRIDE_TIME, OB_LATTICE, OB_MATERIAL, Brush::ob_mode, OB_MODE_ALL_PAINT, OB_MODE_POSE, OB_SOLID, OB_TEXTURE, Base::object, LatticeModifierData::object, CurveModifierData::object, ArmatureModifierData::object, Main::objects, OceanModifierData::oceancache, bNodeTree::outputs, bSound::packedfile, Object::parent, PAROBJECT, PARSKEL, PART_DRAW_AXIS, PART_DRAW_COL_MAT, PART_DRAW_DOT, PART_DRAW_HALO, PART_DRAW_MAT_COL, PART_DRAW_REND, PART_HAIR_REGROW, PART_TIME_AUTOSF, ToolSettings::particle, Main::particles, Object::partype, bAnimVizSettings::path_ac, bAnimVizSettings::path_bakeflag, bAnimVizSettings::path_bc, bAnimVizSettings::path_ef, ParticleSettings::path_end, bAnimVizSettings::path_sf, bAnimVizSettings::path_step, bAnimVizSettings::path_type, bAnimVizSettings::path_viewflag, bArmature::pathflag, Object::pd, NodeBlurData::percentx, NodeBlurData::percenty, PFIELD_DO_LOCATION, PFIELD_PLANAR, PFIELD_SHAPE_PLANE, PFIELD_SHAPE_SURFACE, PFIELD_SURFACE, PFIELD_WIND, PHYS_GLOBAL_GRAVITY, Scene::physics_settings, BoidSettings::pitch, Brush::plane_trim, Nurb::pntsu, Lattice::pntsu, Nurb::pntsv, Lattice::pntsv, Lattice::pntsw, Object::pose, CurveMapping::preset, PTCACHE_DISK_CACHE, PTCacheID::ptcaches, Object::quat, Material::r, Scene::r, R_COLOR_MANAGEMENT, Brush::rate, bScreen::redraws_flag, Key::refkey, SpaceLink::regionbase, ARegion::regiontype, ParticleSettings::ren_as, MultiresModifierData::renderlvl, OceanModifierData::resolution, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, ROT_MODE_EUL, bPoseChannel::rotAxis, Object::rotAxis, Object::rotmode, SpaceInfo::rpt_mask, SpaceImage::sample_line_hist, Tex::saturation, UnitSettings::scale_length, SCE_SELECT_PATH, SCE_SELECT_VERTEX, scene, Main::scenes, SpaceImage::scopes, Main::screens, View2D::scroll, MultiresModifierData::sculptlvl, ParticleEditSettings::selectmode, ToolSettings::selectmode, SEQ_DRAW_IMG_IMBUF, SEQ_for_each_callback(), seq_set_pitch_cb(), seq_set_sat_cb(), seq_set_volume_cb(), seq_sound_proxy_update_cb(), SEQ_VIEW_SEQUENCE, Editing::seqbase, Editing::seqbasep, sequencer_init_preview_region(), PartDeflect::shape, Main::shapekeys, ClothModifierData::sim_parms, Brush::size, KeyBlock::slidermax, KeyBlock::slidermin, Curve::smallcaps_scale, Brush::smooth_stroke_factor, Brush::smooth_stroke_radius, SOCK_IN, SOCK_OUT, Object::soft, Main::sounds, SPACE_ACTION, SPACE_IMAGE, SPACE_INFO, SPACE_NLA, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, SpaceLink::spacetype, Brush::spacing, Material::specr, AudioData::speed_of_sound, srgb_to_linearrgb_v3_v3(), usdtokens::st(), ParticleBrushData::strength, Brush::sub_col, Main::subversionfile, tex, TEX_NODE_OUTPUT, Brush::texture_overlay_alpha, Main::textures, BezTriple::tilt, BPoint::tilt, TIME_ALL_3D_WIN, TIME_ALL_ANIM_WIN, ParticleSettings::time_flag, FluidDomainSettings::time_scale, bNodeLink::tonode, Scene::toolsettings, bNodeLink::tosock, ColorBand::tot, View2D::tot, Object::totcol, KeyBlock::totelem, Mesh::totface, MultiresModifierData::totlvl, FCurve::totvert, Mesh::totvert, Nurb::type, ModifierData::type, FluidModifierData::type, bNodeSocket::type, Object::type, Scene::unit, unit_axis_angle(), unit_qt(), Brush::unprojected_radius, UV_SELECT_VERTEX, ToolSettings::uv_selectmode, ARegion::v2d, V2D_ALIGN_NO_NEG_X, V2D_ALIGN_NO_NEG_Y, V2D_KEEPASPECT, V2D_KEEPTOT_BOUNDS, V2D_LIMITZOOM, V2D_LOCKOFS_X, V2D_LOCKZOOM_X, V2D_LOCKZOOM_Y, V2D_SCROLL_RIGHT, V3D_HIDE_OVERLAYS, BezTriple::vec, BPoint::vec, FluidFlowSettings::vel_multi, ClothSimSettings::velocity_smooth, Main::versionfile, ToolSettings::vgroup_weight, SpaceSeq::view, AudioData::volume, FluidDomainSettings::vorticity, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by do_versions().
Definition at line 537 of file versioning_250.c.
References Bone::arm_mat, Bone::arm_roll, Bone::childbase, copy_m3_m4(), ListBase::first, mat3_to_vec_roll(), Bone::next, and NULL.
Referenced by blo_do_versions_250().
Definition at line 515 of file versioning_250.c.
References CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_ROTLIMIT, data, bConstraint::data, ListBase::first, float(), M_PI, bConstraint::next, and bConstraint::type.
Referenced by blo_do_versions_250().
Definition at line 491 of file versioning_250.c.
References MeshDeformModifierData::bindcagecos, MeshDeformModifierData::bindcos, BKE_modifier_mdef_compact_influences(), eModifierType_MeshDeform, ListBase::first, Object::id, main(), Object::modifiers, ID::next, ModifierData::next, NULL, and ModifierData::type.
Referenced by blo_do_versions_250().
Definition at line 2337 of file versioning_250.c.
References AnimData::action, BKE_animdata_from_id(), ListBase::first, FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, GS, id, bAction::idroot, if(), lib_node_do_versions_group_indices(), LISTBASE_FOREACH, MAIN_VERSION_ATLEAST, ID::name, AnimData::nla_tracks, node, NODE_GROUP, bNodeTree::nodes, ntree, NULL, NlaStrip::strips, and AnimData::tmpact.
Referenced by do_versions_after_linking().
Definition at line 447 of file versioning_250.c.
References blender::compositor::area(), bScreen::areabase, ListBase::first, SpaceSeq::gpd, SpaceImage::gpd, SpaceNode::gpd, main(), SpaceLink::next, NULL, SPACE_IMAGE, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, SpaceLink::spacetype, and versions_gpencil_add_main().
Referenced by blo_do_versions_250().
|
static |
Definition at line 557 of file versioning_250.c.
References BKE_ntree_update_tag_interface(), BLI_addtail(), BLI_strncpy(), bNodeTree::cur_index, bNodeTree::inputs, bNodeSocket::limit, bNodeSocket::link, MEM_callocN, bNodeSocket::name, bNodeSocket::next, NULL, bNodeTree::outputs, bNodeSocket::prev, SOCK_IN, type, and bNodeSocket::type.
Referenced by blo_do_versions_250().
|
static |
Definition at line 592 of file versioning_250.c.
References copy_v3_v3(), copy_v4_v4(), bNodeSocket::default_value, bNodeSocketValueFloat::max, bNodeSocketValueVector::max, MEM_callocN, bNodeSocketValueFloat::min, bNodeSocketValueVector::min, PROP_NONE, SOCK_FLOAT, SOCK_RGBA, SOCK_VECTOR, bNodeSocketValueFloat::subtype, bNodeSocketValueVector::subtype, bNodeSocket::type, bNodeSocketValueFloat::value, bNodeSocketValueVector::value, and bNodeSocketValueRGBA::value.
Referenced by blo_do_versions_250().
Definition at line 387 of file versioning_250.c.
References blender::compositor::area(), area_add_header_region(), area_add_window_regions(), bScreen::areabase, ListBase::first, SpaceLink::next, SpaceLink::regionbase, SPACE_EMPTY, and SpaceLink::spacetype.
Referenced by blo_do_versions_250().
Definition at line 2303 of file versioning_250.c.
References ListBase::first, bNode::id, bNode::inputs, bNodeTree::links, NULL, and bNode::outputs.
Referenced by do_versions_after_linking_250().
Definition at line 661 of file versioning_250.c.
Referenced by blo_do_versions_250().
Definition at line 653 of file versioning_250.c.
References Sequence::sat.
Referenced by blo_do_versions_250().
Definition at line 647 of file versioning_250.c.
References Sequence::volume.
Referenced by blo_do_versions_250().
Definition at line 627 of file versioning_250.c.
References BKE_main_blendfile_path(), BKE_sound_new_file(), BLI_join_dirfile(), BLI_path_abs(), BLI_snprintf(), StripProxy::dir, Strip::dir, FILE_MAX, FILE_MAXDIR, Sequence::flag, StripElem::name, Strip::proxy, SEQ_TYPE_SOUND_HD, SEQ_USE_PROXY_CUSTOM_DIR, SEQ_USE_PROXY_CUSTOM_FILE, Sequence::sound, str, Sequence::strip, Strip::stripdata, Sequence::type, and user_data.
Referenced by blo_do_versions_250().
Definition at line 102 of file versioning_250.c.
References View2D::align, ARegion::alignment, View2D::cur, ARegion::flag, View2D::keeptot, View2D::keepzoom, View2D::max, View2D::maxzoom, View2D::min, View2D::minzoom, ARegion::regiontype, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_TYPE_PREVIEW, View2D::tot, ARegion::v2d, V2D_ALIGN_FREE, V2D_KEEPASPECT, V2D_KEEPTOT_FREE, V2D_KEEPZOOM, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by area_add_window_regions(), and blo_do_versions_250().
|
static |
Definition at line 428 of file versioning_250.c.
References BKE_id_new_name_validate(), BKE_lib_libblock_session_uuid_ensure(), BLI_addtail(), G, G_DEBUG, id, ID_GD, LIB_FAKEUSER, LIB_TAG_TEMP_MAIN, ID::name, and ID::tag.
Referenced by do_versions_gpencil_2_50().