|
Blender V5.0
|
#include <algorithm>#include <climits>#include <unistd.h>#include "DNA_armature_types.h"#include "DNA_camera_types.h"#include "DNA_collection_types.h"#include "DNA_constraint_types.h"#include "DNA_curve_types.h"#include "DNA_effect_types.h"#include "DNA_key_types.h"#include "DNA_lattice_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_nla_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_sequence_types.h"#include "DNA_sound_types.h"#include "DNA_space_types.h"#include "DNA_vfont_types.h"#include "DNA_view3d_types.h"#include "DNA_world_types.h"#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_time.h"#include "BLI_utildefines.h"#include "BKE_action.hh"#include "BKE_armature.hh"#include "BKE_constraint.h"#include "BKE_customdata.hh"#include "BKE_deform.hh"#include "BKE_lattice.hh"#include "BKE_main.hh"#include "BKE_mesh.hh"#include "BKE_mesh_legacy_convert.hh"#include "BKE_modifier.hh"#include "BKE_node.hh"#include "BKE_node_legacy_types.hh"#include "BKE_object.hh"#include "BKE_particle.h"#include "BKE_pointcache.h"#include "SEQ_iterator.hh"#include "SEQ_sequencer.hh"#include "BLO_readfile.hh"#include "readfile.hh"#include <cerrno>Go to the source code of this file.
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
| #define | U (*((const UserDef *)&U)) |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 21 of file versioning_legacy.cc.
| #define U (*((const UserDef *)&U)) |
Definition at line 83 of file versioning_legacy.cc.
| void blo_do_version_old_trackto_to_constraints | ( | Object * | ob | ) |
Definition at line 423 of file versioning_legacy.cc.
References BKE_constraint_add_for_object(), CONSTRAINT_TYPE_TRACKTO, bConstraint::data, data, Object::track, Object::trackflag, and Object::upflag.
Referenced by blo_do_versions_250(), and blo_do_versions_pre250().
Definition at line 457 of file versioning_legacy.cc.
References MCol::a, ParticleSettings::acc, Main::actions, blender::seq::active_seqbase_get(), Image::alpha_mode, World::aodist, World::aoenergy, bScreen::areabase, ARM_DEF_VGROUP, Main::armatures, ARRAY_SIZE, Image::aspx, Image::aspy, bSound::attenuation, Scene::audio, AUDIO_SCRUB, b, Tex::bfac, RenderData::bg_stamp, BKE_armature_where_is(), BKE_mesh_calc_edges_legacy(), BKE_mesh_strip_loose_faces(), BKE_modifier_get_info(), BKE_modifier_new(), BKE_modifier_unique_name(), BKE_modifiers_findby_type(), BKE_object_defgroup_find_name(), BKE_object_defgroup_unique_name(), BKE_object_do_version_give_parteff_245(), BKE_particlesettings_add(), BKE_pose_tag_recalc(), BKE_ptcache_add(), BLI_addhead(), BLI_addtail(), BLI_findindex(), BLI_insertlinkbefore(), BLI_listbase_count(), BLI_str_endswith(), BLI_strncpy_utf8(), BLI_time_now_seconds(), blo_do_version_old_trackto_to_constraints(), blo_do_versions_newlibadr(), blo_do_versions_oldnewmap_insert(), BLO_readfile_id_runtime_tags(), BLO_readfile_id_runtime_tags_for_write(), Key::block, bone_version_238(), bone_version_239(), bArmature::bonebase, ParticleEditSettings::brush, Main::brushes, calc_lat_fudu(), CAM_ORTHO, CAM_SHOW_SAFE_MARGINS, CAM_SHOWPASSEPARTOUT, Main::cameras, ceil, bPose::chanbase, ParticleSettings::child_percent, ParticleSettings::child_render_percent, col, Main::collections, Object::constinv, CONSTRAINT_IK_POS, CONSTRAINT_IK_ROT, CONSTRAINT_IK_STRETCH, CONSTRAINT_SPACE_LOCAL, CONSTRAINT_TYPE_ACTION, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_ROTLIKE, CONSTRAINT_TYPE_TRACKTO, Object::constraints, copy_v3_v3(), CU_PATH, Main::curves, customdata_version_242(), customdata_version_243(), ImageUser::cycl, PartEff::damp, ParticleSettings::dampfac, data, Object::data, CurveModifierData::defaxis, SoftBody::defgoal, ArmatureModifierData::deformflag, bArmature::deformflag, PartEff::disp, ParticleSettings::disp, Tex::dist_amount, bSound::distance, do_version_bone_head_tail_237(), do_version_constraints_245(), do_version_free_effects_245(), do_version_ntree_242_2(), ToolSettings::doublimit, ParticleSettings::draw, ParticleSettings::draw_as, ParticleSettings::draw_line, ParticleSettings::draw_step, Object::dt, Object::dtx, Lattice::du, Lattice::dv, Lattice::dw, Scene::ed, ParticleEditSettings::emitterdist, eModifierType_Armature, eModifierType_Cloth, eModifierType_Curve, eModifierType_Fluidsim, eModifierType_Mirror, eModifierType_ParticleSystem, eModifierType_Softbody, eModifierType_Subsurf, Object::empty_drawsize, Object::empty_drawtype, PartEff::end, ParticleSettings::end, eSubsurfModifierFlag_ControlEdges, eSubsurfModifierFlag_DebugIncr, eSubsurfModifierFlag_Incremental, Tex::extend, PartDeflect::f_noise, RenderData::fg_stamp, Image::filepath, VFont::filepath, Tex::filtersize, ListBase::first, AudioData::flag, bArmature::flag, Camera::flag, Curve::flag, FluidsimSettings::flag, Image::flag, ImageUser::flag, Lattice::flag, Mesh::flag, MirrorModifierData::flag, PartEff::flag, ParticleEditSettings::flag, ParticleSettings::flag, ParticleSystem::flag, Tex::flag, View3D::flag, bSound::flags, SubsurfModifierData::flags, FO_BUILTIN_NAME, Main::fonts, PartEff::force, PartDeflect::forcefield, blender::seq::foreach_strip(), RenderData::framapto, RenderData::framelen, ImageUser::frames, ParticleSettings::from, RenderData::frs_sec, RenderData::frs_sec_base, FluidsimModifierData::fss, Lattice::fu, Lattice::fv, Lattice::fw, Tex::gfac, View3D::gridflag, View3D::gridlines, View3D::gridsubdiv, PartEff::group, ParticleSettings::hair_step, i, bArmature::id, bNodeTree::id, bScreen::id, bSound::id, Camera::id, Collection::id, Curve::id, Image::id, Key::id, Lattice::id, Material::id, Mesh::id, Object::id, ParticleSettings::id, Scene::id, Tex::id, VFont::id, World::id, ID_IS_LINKED, ID_RECALC_ALL, ID_RECALC_PSYS_REDO, idproperties_fix_group_lengths(), Tex::ima, IMA_ALPHA_STRAIGHT, IMA_OLD_PREMUL, IMA_SRC_FILE, IMA_SRC_MOVIE, IMA_SRC_VIEWER, IMA_TYPE_COMPOSITE, IMA_TYPE_IMAGE, IMA_TYPE_R_RESULT, Tex::imaflag, Main::images, RenderData::images, ToolSettings::imapaint, Object::instance_faces_scale, ParticleSettings::instance_object, Main::is_locked_for_linking, Tex::iuser, SoftBody::keys, FluidsimSettings::lastgoodframe, Main::lattices, Camera::lens, SubsurfModifierData::levels, SpaceText::lheight, ID::lib, lib, FileData::libmap, Main::libraries, PartEff::lifetime, ParticleSettings::lifetime, Main::lights, LISTBASE_FOREACH, MAIN_VERSION_FILE_ATLEAST, SpaceProperties::mainb, Object::mat, PartEff::mat, Main::materials, bSound::max_gain, MEM_callocN(), MEM_dupallocN(), MEM_freeN(), Main::meshes, FluidsimSettings::meshVelocities, Main::metaballs, Tex::mg_gain, Tex::mg_H, Tex::mg_lacunarity, Tex::mg_octaves, Tex::mg_offset, bSound::min_gain, AudioData::mixrate, MOD_MIR_AXIS_X, MOD_MIR_AXIS_Y, MOD_MIR_AXIS_Z, ModifierData::mode, RenderData::mode, SpaceAction::mode, SubsurfModifierData::modifier, Object::modifiers, RenderData::motion_blur_shutter, Tex::nabla, ID::name, ModifierData::name, ID_Readfile_Data::Tags::needs_linking, bSound::newpackedfile, ID::next, ModifierData::next, ScrArea::next, SpaceLink::next, Material::nodetree, Main::nodetrees, ImagePaintSettings::normal_angle, PartEff::normfac, ParticleSettings::normfac, Tex::ns_outscale, ntree_version_241(), ntree_version_242(), ntree_version_245(), Curve::nurb, OB_ARMATURE, OB_ARROWS, OB_CURVES_LEGACY, OB_DRAW_IN_FRONT, OB_DUPLIPARTS, OB_DUPLIVERTS, OB_FLUIDSIM_PARTICLE, OB_LATTICE, OB_MESH, OB_SB_ENABLE, OB_SB_POSTDEF, OB_SOLID, PartEff::obfac, ParticleSettings::obfac, ArmatureModifierData::object, Main::objects, ImageUser::offset, PartEff::omat, ParticleSettings::omat, OnlyDeform, Camera::ortho_scale, bSound::packedfile, PAF_BSPLINE, PAF_DIED, PAF_EDISTR, PAF_FACE, PAF_SHOWE, PAF_STATIC, PAF_TRAND, PAF_UNBORN, PAF_VECT, Object::parent, PARSKEL, ParticleSystem::part, PART_DIED, PART_DRAW_LINE, PART_DRAW_OB, PART_DRAW_PATH, PART_DRAW_VEL_LENGTH, PART_EDISTR, PART_FLUID, PART_FROM_FACE, PART_HAIR, PART_HAIR_BSPLINE, PART_ROT_VEL, PART_TRAND, PART_UNBORN, ToolSettings::particle, Main::particles, Object::particlesystem, Object::partype, Camera::passepartalpha, Object::pd, PE_BRUSH_CUT, PE_DEFLECT_EMITTER, PE_KEEP_LENGTHS, PE_LOCK_FIRST, PFIELD_WIND, SoftBody::physics_speed, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, ClothModifierData::point_cache, ParticleSystem::pointcache, Object::pose, Image::preview, printf, ParticleSystemModifierData::psys, PSYS_CURRENT, PSYS_VG_DENSITY, PSYS_VG_LENGTH, PSYS_VG_VEL, PTCACHE_BAKED, PTCACHE_DISK_CACHE, ClothModifierData::ptcaches, ParticleSystem::ptcaches, Scene::r, R_PASSEPARTOUT, BezTriple::radius, BPoint::radius, PartEff::randfac, ParticleSettings::randfac, PartEff::randlife, ParticleSettings::randlife, ID::recalc, ParticleSystem::recalc, Key::refkey, ParticleSettings::ren_step, SubsurfModifierData::renderLevels, Tex::rfac, ROTLIKE_X, ROTLIKE_Y, ROTLIKE_Z, ParticleSettings::rotmode, SACTCONT_DOPESHEET, SACTSNAP_FRAME, SCE_LAY_SKY, SCE_LAY_SOLID, SCE_PASS_COMBINED, SCE_PASS_DEPTH, SCE_PASS_NORMAL, SCE_PASS_VECTOR, RenderData::scemode, Main::scenes, Main::screens, ImagePaintSettings::seam_bleed, PartDeflect::seed, PartEff::seed, ParticleSystem::seed, ToolSettings::select_thresh, Editing::seqbase, ImageUser::sfra, Main::shapekeys, RenderData::simplify_particles, RenderData::simplify_subsurf, ParticleBrushData::size, SNPRINTF_UTF8, Object::soft, Object::softflag, Main::sounds, Image::source, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, SPACE_PROPERTIES, SPACE_TEXT, SPACE_VIEW3D, ScrArea::spacedata, SpaceLink::spacetype, PartEff::speedtex, PartEff::sta, ParticleSettings::sta, PartEff::staticstep, ParticleBrushData::step, PointCache::step, ParticleBrushData::strength, STREQ, STREQLEN, strip_set_alpha_mode_cb(), strip_set_blend_mode_cb(), STRNCPY(), STRNCPY_UTF8, PartEff::stype, SubsurfModifierData::subdivType, Main::subversionfile, SpaceText::tabnumber, TEX_CHECKER_EVEN, TEX_CHECKER_ODD, TEX_EXTEND, TEX_IMAGE, TEX_REPEAT, Main::texts, Main::textures, RenderData::threads, Scene::toolsettings, ParticleEditSettings::totaddkey, Object::totcol, Mesh::totface_legacy, PartEff::totkey, SoftBody::totkey, PartEff::totpart, ParticleSettings::totpart, ParticleSystem::totpart, ParticleEditSettings::totrekey, Object::trackflag, Object::transflag, Camera::type, FluidsimSettings::type, Image::type, ModifierData::type, ModifierTypeInfo::type, Object::type, ParticleSettings::type, Tex::type, unit_m4(), ToolSettings::unwrapper, Object::upflag, ID::us, UVCALC_FILLHOLES, ToolSettings::uvcalc_flag, UVCALC_UNWRAP_METHOD_ANGLE, UVCALC_UNWRAP_METHOD_CONFORMAL, V3D_SELECT_OUTLINE, V3D_SHOW_FLOOR, V3D_SHOW_X, V3D_SHOW_Y, V3D_SHOW_Z, vcol_to_fcol(), Main::versionfile, PartEff::vertgroup, SoftBody::vertgroup, PartEff::vertgroup_v, ParticleSystem::vgroup, Tex::vn_mexp, Tex::vn_w1, bSound::volume, Main::worlds, Tex::xrepeat, and Tex::yrepeat.
Referenced by do_versions().
|
static |
Definition at line 127 of file versioning_legacy.cc.
References bone_version_238(), and LISTBASE_FOREACH.
Referenced by blo_do_versions_pre250(), and bone_version_238().
|
static |
Definition at line 141 of file versioning_legacy.cc.
References bone_version_239(), and LISTBASE_FOREACH.
Referenced by blo_do_versions_pre250(), and bone_version_239().
|
static |
Definition at line 260 of file versioning_legacy.cc.
References CD_MCOL, CD_MDEFORMVERT, CD_MFACE, CD_MTFACE, CD_SET_DEFAULT, CustomData_add_layer(), CustomData_add_layer_with_data(), Mesh::edge_data, Mesh::edges_num, Mesh::fdata_legacy, CustomData::layers, MEM_freeN(), CustomDataLayer::name, SNPRINTF_UTF8, STRNCPY_UTF8, Mesh::totface_legacy, CustomData::totlayer, CustomDataLayer::type, Mesh::vert_data, and Mesh::verts_num.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 349 of file versioning_legacy.cc.
References CustomDataLayer::active, CustomDataLayer::active_rnd, Mesh::fdata_legacy, CustomData::layers, and CustomData::totlayer.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 110 of file versioning_legacy.cc.
References add_v3_v3v3(), Bone::arm_head, Bone::arm_mat, Bone::arm_tail, Bone::childbase, copy_v3_v3(), do_version_bone_head_tail_237(), Bone::length, LISTBASE_FOREACH, and mul_v3_fl().
Referenced by blo_do_versions_pre250(), and do_version_bone_head_tail_237().
|
static |
Definition at line 409 of file versioning_legacy.cc.
References CONSTRAINT_TYPE_LOCLIKE, data, LISTBASE_FOREACH, and LOCLIKE_TIP.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 389 of file versioning_legacy.cc.
References EFF_PARTICLE, PartEff::keys, MEM_freeN(), and Effect::type.
Referenced by do_version_free_effects_245().
|
static |
Definition at line 402 of file versioning_legacy.cc.
References BLI_pophead(), and do_version_free_effect_245().
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 361 of file versioning_legacy.cc.
References CMP_NODE_IMAGE, CMP_NODE_VIEWER, ImageUser::cycl, ELEM, ImageUser::frames, LISTBASE_FOREACH, MEM_callocN(), MEM_freeN(), bNodeTree::nodes, NTREE_COMPOSIT, ImageUser::offset, ImageUser::sfra, and bNodeTree::type.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 249 of file versioning_legacy.cc.
References ListBase::first, idproperties_fix_groups_lengths_recurse(), ID::next, and ID::properties.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 230 of file versioning_legacy.cc.
References IDProperty::data, ListBase::first, IDPropertyData::group, i, IDP_GROUP, idproperties_fix_groups_lengths_recurse(), IDProperty::len, IDProperty::next, printf, and IDProperty::type.
Referenced by idproperties_fix_group_lengths(), and idproperties_fix_groups_lengths_recurse().
|
static |
Definition at line 151 of file versioning_legacy.cc.
References CMP_NODE_BLUR, CMP_NODE_VECBLUR, LISTBASE_FOREACH, MEM_callocN(), bNodeTree::nodes, NTREE_COMPOSIT, R_FILTER_QUAD, and bNodeTree::type.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 177 of file versioning_legacy.cc.
References CMP_NODE_HUE_SAT, LISTBASE_FOREACH, bNodeTree::nodes, NTREE_COMPOSIT, and bNodeTree::type.
Referenced by blo_do_versions_pre250().
Definition at line 193 of file versioning_legacy.cc.
References Image::alpha_mode, blo_do_versions_newlibadr(), CMP_NODE_ALPHAOVER, Image::flag, ImageUser::flag, GS, bNodeTree::id, ID_IM, ID_IS_LINKED, IMA_ALPHA_STRAIGHT, IMA_OLD_PREMUL, LISTBASE_FOREACH, MEM_callocN(), ID::name, bNodeTree::nodes, NTREE_COMPOSIT, and bNodeTree::type.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 440 of file versioning_legacy.cc.
References Strip::alpha_mode, ELEM, SEQ_ALPHA_STRAIGHT, STRIP_TYPE_IMAGE, STRIP_TYPE_MOVIE, and Strip::type.
|
static |
Definition at line 448 of file versioning_legacy.cc.
References Strip::blend_mode, Strip::blend_opacity, and STRIP_BLEND_REPLACE.
Referenced by blo_do_versions_pre250().
|
static |
Definition at line 85 of file versioning_legacy.cc.
References MEM_freeN(), MEM_malloc_arrayN(), Mesh::totface_legacy, MFace::v1, MFace::v2, MFace::v3, and MFace::v4.
Referenced by blo_do_versions_pre250().