|
Blender V5.0
|
#include <fmt/format.h>#include "MEM_guardedalloc.h"#include "DNA_ID.h"#include "DNA_brush_types.h"#include "DNA_camera_types.h"#include "DNA_curves_types.h"#include "DNA_defaults.h"#include "DNA_genfile.h"#include "DNA_grease_pencil_types.h"#include "DNA_material_types.h"#include "DNA_mesh_types.h"#include "DNA_modifier_types.h"#include "DNA_node_types.h"#include "DNA_rigidbody_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_sequence_types.h"#include "DNA_windowmanager_types.h"#include "DNA_workspace_types.h"#include "DNA_world_types.h"#include "BLI_function_ref.hh"#include "BLI_listbase.h"#include "BLI_math_color.h"#include "BLI_math_numbers.hh"#include "BLI_math_vector.h"#include "BLI_math_vector.hh"#include "BLI_math_vector_types.hh"#include "BLI_set.hh"#include "BLI_string_ref.hh"#include "BLI_string_utf8.h"#include "BLI_string_utils.hh"#include "BLI_sys_types.h"#include "BKE_anim_data.hh"#include "BKE_animsys.h"#include "BKE_armature.hh"#include "BKE_attribute_legacy_convert.hh"#include "BKE_colortools.hh"#include "BKE_curves.hh"#include "BKE_grease_pencil.hh"#include "BKE_idprop.hh"#include "BKE_image_format.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_mesh_legacy_convert.hh"#include "BKE_node.hh"#include "BKE_node_legacy_types.hh"#include "BKE_node_runtime.hh"#include "BKE_paint.hh"#include "BKE_pointcache.h"#include "BKE_report.hh"#include "BLT_translation.hh"#include "BLO_read_write.hh"#include "SEQ_edit.hh"#include "SEQ_effects.hh"#include "SEQ_iterator.hh"#include "SEQ_modifier.hh"#include "SEQ_relations.hh"#include "SEQ_sequencer.hh"#include "SEQ_utils.hh"#include "WM_api.hh"#include "AS_asset_library.hh"#include "readfile.hh"#include "versioning_common.hh"Go to the source code of this file.
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
| #define | DNA_GENFILE_VERSIONING_MACROS |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 9 of file versioning_500.cc.
| #define DNA_GENFILE_VERSIONING_MACROS |
Definition at line 16 of file versioning_500.cc.
Always bump subversion in BKE_blender_version.h when adding versioning code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.
Definition at line 3181 of file versioning_500.cc.
References ARegion::alignment, SpaceFile::asset_params, FileAssetSelectParams::base_params, SpaceFile::browse_mode, CMP_NODE_DISPLACE, CMP_NODE_EXTENSION_MODE_CLIP, CMP_NODE_EXTENSION_MODE_REPEAT, CMP_NODE_INTERPOLATION_ANISOTROPIC, CMP_NODE_NORMAL, CMP_NODE_ROTATE, CMP_NODE_SCALE, CMP_NODE_SPLIT, CMP_NODE_TRANSFORM, CMP_NODE_TRANSLATE, CMP_NODE_TRANSLATE_REPEAT_AXIS_NONE, CMP_NODE_TRANSLATE_REPEAT_AXIS_X, CMP_NODE_TRANSLATE_REPEAT_AXIS_XY, CMP_NODE_TRANSLATE_REPEAT_AXIS_Y, CMP_NODE_VIEW_LEVELS, CMP_NODE_ZCOMBINE, copy_unified_paint_settings(), blender::bke::curves_convert_customdata_to_storage(), data, do_version_convert_to_generic_nodes(), do_version_match_string_options_to_inputs(), do_version_normal_node_dot_product(), do_version_points_to_volume_options_to_inputs(), do_version_scene_remove_use_nodes(), do_version_split_node_rotation(), do_version_transform_geometry_options_to_inputs(), do_version_triangulate_options_to_inputs(), do_version_volume_to_mesh_options_to_inputs(), do_versions_add_region_if_not_found(), blender::seq::editing_get(), ELEM, FILE_BROWSE_MODE_ASSETS, FileSelectParams::filter_id, FILTER_ID_SCE, ARegion::flag, for_each_mode_paint_settings(), FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, blender::seq::foreach_strip(), GEO_NODE_POINTS_TO_VOLUME, GEO_NODE_TRANSFORM_GEOMETRY, GEO_NODE_TRIANGULATE, GEO_NODE_VOLUME_TO_MESH, GreasePencilDrawing::geometry, GP_DRAWING, blender::bke::grease_pencil_convert_customdata_to_storage(), Main::grease_pencils, Main::hair_curves, i, initialize_closure_input_structure_types(), LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MAIN_VERSION_FILE_ATLEAST, MEM_callocN(), blender::bke::mesh_custom_normals_to_generic(), blender::bke::mesh_sculpt_mask_to_generic(), Main::meshes, NTREE_COMPOSIT, NTREE_GEOMETRY, blender::bke::pointcloud_convert_customdata_to_storage(), Main::pointclouds, rename_mesh_uv_seam_attribute(), RGN_ALIGN_BOTTOM, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, Main::scenes, Main::screens, SPACE_ACTION, SPACE_FILE, SPACE_GRAPH, SPACE_NLA, SPACE_SEQ, STREQ, GreasePencilDrawingBase::type, U, update_brush_sizes(), USER_HEADER_BOTTOM, ToolSettings::uv_flag, UV_FLAG_SELECT_ISLAND, UV_SELECT_VERT, ToolSettings::uv_selectmode, version_node_input_socket_name(), version_node_output_socket_name(), version_node_socket_name(), version_seq_text_from_legacy(), and versioning_replace_legacy_combined_and_separate_color_nodes().
Referenced by do_versions().
Definition at line 859 of file versioning_500.cc.
References UnifiedPaintSettings::alpha, BKE_curvemapping_copy(), BLI_assert, UnifiedPaintSettings::color, UnifiedPaintSettings::color_jitter_flag, copy_v3_v3(), UnifiedPaintSettings::curve_rand_hue, UnifiedPaintSettings::curve_rand_saturation, UnifiedPaintSettings::curve_rand_value, UnifiedPaintSettings::flag, UnifiedPaintSettings::hsv_jitter, UnifiedPaintSettings::secondary_color, UnifiedPaintSettings::size, Scene::toolsettings, Paint::unified_paint_settings, UnifiedPaintSettings::unprojected_size, and UnifiedPaintSettings::weight.
Referenced by blo_do_versions_500().
|
static |
Definition at line 2921 of file versioning_500.cc.
References SubsurfModifierData::adaptive_object_edge_length, SubsurfModifierData::adaptive_pixel_size, SubsurfModifierData::adaptive_space, eModifierType_Subsurf, eSubsurfModifierFlag_UseAdaptiveSubdivision, SubsurfModifierData::flags, LISTBASE_FOREACH, Main::objects, Main::scenes, SUBSURF_ADAPTIVE_SPACE_PIXEL, version_cycles_properties_from_ID(), version_cycles_property_boolean(), and version_cycles_property_float().
Definition at line 1703 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 2416 of file versioning_500.cc.
References CMP_NODE_RELATIVE_TO_PIXEL_DATA_TYPE_FLOAT, CMP_NODE_RELATIVE_TO_PIXEL_REFERENCE_DIMENSION_GREATER, bNode::custom1, bNode::custom2, bNodeLink::fromnode, bNodeLink::fromsock, bNodeTree::links, LISTBASE_FOREACH, bNode::location, blender::bke::node_add_node(), blender::bke::node_find_socket(), NODE_MATH_MULTIPLY, blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), bNode::parent, SOCK_IN, SOCK_OUT, bNodeSocketValueFloat::value, version_node_add_empty(), version_node_add_link(), version_node_add_socket(), and bNode::width.
Definition at line 1938 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 2191 of file versioning_500.cc.
References bNode::custom1, bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 2235 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 2267 of file versioning_500.cc.
References bNode::custom1, bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1528 of file versioning_500.cc.
References BLI_assert, copy_v4_v4(), ListBase::first, bNode::flag, bNodeLink::fromnode, bNodeLink::fromsock, bNode::inputs, bNodeTree::links, LISTBASE_FOREACH, bNode::location, bNodeSocket::name, blender::bke::node_add_node(), NODE_DO_OUTPUT, blender::bke::node_find_socket(), blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), bNode::parent, SOCK_IN, bNodeSocketValueRGBA::value, version_node_add_link(), and version_node_remove().
Referenced by do_versions_after_linking_500().
Definition at line 2245 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
|
static |
Definition at line 1416 of file versioning_500.cc.
References BKE_curvemapping_copy(), BKE_curvemapping_copy_data(), BKE_curvemapping_free_data(), BRUSH_JITTER_COLOR, copy_v3_v3(), Brush::curve_rand_hue, BrushGpencilSettings::curve_rand_hue, Brush::curve_rand_saturation, BrushGpencilSettings::curve_rand_saturation, Brush::curve_rand_value, BrushGpencilSettings::curve_rand_value, Brush::flag2, Brush::gpencil_settings, Brush::hsv_jitter, is_zero_v3(), BrushGpencilSettings::random_hue, BrushGpencilSettings::random_saturation, and BrushGpencilSettings::random_value.
|
static |
Definition at line 1178 of file versioning_500.cc.
References CD_PROP_FLOAT, CMP_NODE_COMBINE_XYZ_DEPRECATED, CMP_NODE_CURVE_VEC_DEPRECATED, CMP_NODE_MAP_RANGE_DEPRECATED, CMP_NODE_MAP_VALUE_DEPRECATED, CMP_NODE_MATH_DEPRECATED, CMP_NODE_MIX_RGB_DEPRECATED, CMP_NODE_SEPARATE_XYZ_DEPRECATED, CMP_NODE_VALTORGB_DEPRECATED, CMP_NODE_VALUE_DEPRECATED, data, do_version_map_value_node(), do_version_mix_color_use_alpha(), bNodeSocket::identifier, LISTBASE_FOREACH_MUTABLE, MEM_callocN(), bNodeSocket::name, blender::bke::node_find_socket(), NODE_MAP_RANGE_LINEAR, NODE_MIX_MODE_UNIFORM, bNodeTree::nodes, SH_NODE_COMBXYZ, SH_NODE_CURVE_VEC, SH_NODE_MAP_RANGE, SH_NODE_MATH, SH_NODE_MIX, SH_NODE_SEPXYZ, SH_NODE_VALTORGB, SH_NODE_VALUE, SHD_MIXRGB_CLAMP, SOCK_IN, SOCK_OUT, SOCK_RGBA, and STRNCPY_UTF8.
Referenced by blo_do_versions_500().
|
static |
Definition at line 1278 of file versioning_500.cc.
References BKE_animdata_fix_paths_rename_all_ex(), BLI_str_escape(), LISTBASE_FOREACH_MUTABLE, bNodeTree::nodes, SH_NODE_CURVE_VEC, and SH_NODE_MIX.
Referenced by do_versions_after_linking_500().
Definition at line 1830 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1779 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1731 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1909 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 2329 of file versioning_500.cc.
References copy_v2_v2(), bNode::custom1, bNodeLink::fromnode, bNodeLink::fromsock, bNodeTree::links, LISTBASE_FOREACH, bNode::location, blender::bke::node_add_node(), blender::bke::node_find_socket(), blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), NODE_VECTOR_MATH_MULTIPLY, bNode::parent, SOCK_IN, SOCK_OUT, bNodeSocketValueFloat::value, bNodeSocketValueVector::value, version_node_add_link(), and bNode::width.
Definition at line 2255 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
|
static |
Definition at line 712 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 2286 of file versioning_500.cc.
References bNode::custom1, bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 1949 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
|
static |
Definition at line 1570 of file versioning_500.cc.
References BKE_image_format_copy(), BKE_image_format_free(), BLI_listbase_count(), BLI_path_split_dir_file(), BLI_strdup(), BLI_strdup_null(), data, FILE_MAX, NodeCompositorFileOutputItem::format, i, NodeCompositorFileOutputItem::identifier, input, bNode::inputs, LISTBASE_FOREACH_INDEX, MEM_calloc_arrayN(), MEM_freeN(), NodeCompositorFileOutputItem::name, NodeCompositorFileOutputItem::override_node_format, R_IMF_IMTYPE_MULTILAYER, NodeCompositorFileOutputItem::save_as_render, SOCK_VECTOR, NodeCompositorFileOutputItem::socket_type, bNode::storage, STRNCPY(), and NodeCompositorFileOutputItem::vector_socket_dimensions.
Definition at line 682 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 692 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1713 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 2009 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1974 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1768 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1757 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1722 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 2537 of file versioning_500.cc.
References CMP_NODE_COLOR_BALANCE_LGG, copy_v4_v4(), bNodeLink::fromnode, bNodeLink::fromsock, bNodeTree::links, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD_MUTABLE, bNode::location, blender::bke::node_add_static_node(), blender::bke::node_find_socket(), blender::bke::node_remove_link(), bNode::parent, SH_NODE_GAMMA, SOCK_IN, SOCK_OUT, bNodeSocketValueMenu::value, bNodeSocketValueRGBA::value, and version_node_add_link().
Definition at line 1848 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 986 of file versioning_500.cc.
References add_node(), bNode::custom1, bNodeSocket::default_value, bNode::flag, TexMapping::flag, bNodeLink::fromnode, bNodeLink::fromsock, bNode::label, NodeFrame::label_size, bNodeTree::links, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD_MUTABLE, TexMapping::loc, bNode::location, blender::math::max(), max, TexMapping::max, MEM_freeN(), blender::math::min(), min, TexMapping::min, blender::bke::node_add_static_node(), NODE_COLLAPSED, blender::bke::node_find_socket(), NODE_FRAME, NODE_MATH_ADD, NODE_MATH_MAXIMUM, NODE_MATH_MINIMUM, NODE_MATH_MULTIPLY, blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), bNode::parent, RPT_, size(), TexMapping::size, SOCK_IN, SOCK_OUT, bNode::storage, STRNCPY(), TEXMAP_CLIP_MAX, TEXMAP_CLIP_MIN, version_node_add_empty(), version_node_add_link(), version_node_add_socket(), version_node_remove(), and version_socket_update_is_used().
Referenced by do_version_convert_to_generic_nodes().
Definition at line 1987 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 672 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Referenced by blo_do_versions_500().
Definition at line 2059 of file versioning_500.cc.
References Material::a, Material::b, bNode::custom1, bNode::flag, Material::g, bNode::height, Material::id, bNode::label, LISTBASE_FOREACH, bNode::location, Material::metallic, blender::bke::node_add_static_node(), NODE_DO_OUTPUT, blender::bke::node_find_socket(), NODE_FRAME, blender::bke::node_tree_add_tree_embedded(), bNodeTree::nodes, Material::nodetree, bNode::parent, Material::r, Material::roughness, RPT_, SH_NODE_BSDF_DIFFUSE, SH_NODE_BSDF_PRINCIPLED, SHD_OUTPUT_CYCLES, SHD_OUTPUT_EEVEE, SOCK_IN, SOCK_OUT, Material::spec, STREQ, STRNCPY(), bNodeSocketValueRGBA::value, version_node_add_empty(), version_node_add_link(), version_node_add_socket(), and bNode::width.
Definition at line 722 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 732 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 890 of file versioning_500.cc.
References BLI_findlink(), CMP_NODE_SEPARATE_COLOR, bNode::custom1, bNode::custom2, bNodeSocket::default_value, bNode::flag, bNodeLink::fromnode, bNodeLink::fromsock, bNode::inputs, bNodeTree::links, LISTBASE_FOREACH, bNode::location, blender::bke::node_add_static_node(), NODE_COLLAPSED, blender::bke::node_find_socket(), NODE_MATH_MULTIPLY, blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), bNode::parent, SH_NODE_MATH, SHD_MIXRGB_USE_ALPHA, SOCK_IN, SOCK_OUT, bNodeSocketValueFloat::value, bNodeSocketValueRGBA::value, version_node_add_link(), version_socket_update_is_used(), and bNode::width.
Referenced by do_version_convert_to_generic_nodes().
Definition at line 1998 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 543 of file versioning_500.cc.
References copy_v3_v3(), bNode::custom1, bNodeSocket::default_value, bNode::flag, bNodeLink::fromnode, bNodeLink::fromsock, bNodeTree::links, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, bNode::location, blender::bke::node_add_node(), NODE_COLLAPSED, blender::bke::node_find_socket(), blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), NODE_VECTOR_MATH_DOT_PRODUCT, blender::math::normalize(), bNode::parent, SOCK_IN, SOCK_OUT, bNodeSocketValueVector::value, version_node_add_link(), and version_node_remove().
Referenced by blo_do_versions_500().
Definition at line 635 of file versioning_500.cc.
References blender::bke::node_find_socket(), NodeGeometryPointsToVolume::resolution_mode, SOCK_IN, bNode::storage, and version_node_add_socket().
Referenced by blo_do_versions_500().
Definition at line 743 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 754 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 1355 of file versioning_500.cc.
References BKE_ptcache_ids_from_object(), BLI_freelistN(), BLO_reportf_wrap(), ELEM, LISTBASE_FOREACH, PTCACHE_COMPRESS_LZMA_DEPRECATED, PTCACHE_COMPRESS_LZO_DEPRECATED, PTCACHE_COMPRESS_ZSTD_FILTERED, PTCACHE_TYPE_CLOTH, PTCACHE_TYPE_DYNAMICPAINT, PTCACHE_TYPE_PARTICLES, PTCACHE_TYPE_RIGIDBODY, PTCACHE_TYPE_SMOKE_DOMAIN, PTCACHE_TYPE_SMOKE_HIGHRES, PTCACHE_TYPE_SOFTBODY, FileData::reports, RPT_, and RPT_WARNING.
Referenced by do_versions_after_linking_500().
Definition at line 702 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1891 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 764 of file versioning_500.cc.
References bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 774 of file versioning_500.cc.
References bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 1866 of file versioning_500.cc.
References bNode::custom1, bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
|
static |
Definition at line 526 of file versioning_500.cc.
References Scene::compositing_node_group, Scene::r, R_DOCOMP, and RenderData::scemode.
Referenced by blo_do_versions_500().
Definition at line 2180 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 784 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 1314 of file versioning_500.cc.
References bNode::custom2, blender::bke::node_add_static_socket(), blender::bke::node_find_socket(), blender::math::numbers::pi_v, PROP_ANGLE, PROP_FACTOR, SOCK_FLOAT, SOCK_IN, and SOCK_VECTOR.
Referenced by blo_do_versions_500().
Definition at line 1927 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 793 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1460 of file versioning_500.cc.
References CMP_NODE_GLARE_QUALITY_HIGH, CMP_NODE_GLARE_SUN_BEAMS, copy_v2_v2(), copy_v4_v4(), bNodeTree::links, LISTBASE_FOREACH_BACKWARD_MUTABLE, bNode::location, blender::bke::node_add_node(), blender::bke::node_find_socket(), blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), bNode::parent, SOCK_IN, SOCK_OUT, bNodeSocketValueFloat::value, bNodeSocketValueRGBA::value, bNodeSocketValueVector::value, version_node_add_link(), and version_node_remove().
Referenced by do_versions_after_linking_500().
|
static |
Definition at line 2960 of file versioning_500.cc.
References add(), copy_v2_v2(), bNode::custom1, data, bNodeSocket::default_value, ELEM, bNodeLink::fromnode, bNodeLink::fromsock, bNodeTree::links, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD_MUTABLE, bNode::location, max, MEM_callocN(), NodeCombSepColor::mode, NODE_COMBSEP_COLOR_RGB, blender::bke::node_find_socket(), NODE_MATH_ADD, NODE_MATH_MAXIMUM, NODE_MATH_MULTIPLY, blender::bke::node_remove_link(), blender::bke::node_tree_set_type(), bNodeTree::nodes, SH_NODE_TEX_GRADIENT, SHD_BLEND_DIAGONAL, SHD_BLEND_LINEAR, SHD_BLEND_QUADRATIC, SOCK_IN, SOCK_OUT, bNode::storage, version_node_add_empty(), version_node_add_link(), version_node_add_socket(), and version_node_remove().
Definition at line 1746 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1960 of file versioning_500.cc.
References bNode::custom1, bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 626 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Referenced by blo_do_versions_500().
Definition at line 1812 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 1794 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 647 of file versioning_500.cc.
References bNode::custom1, bNode::custom2, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Referenced by blo_do_versions_500().
Definition at line 808 of file versioning_500.cc.
References bNode::custom1, blender::bke::node_find_socket(), SOCK_IN, and version_node_add_socket().
Definition at line 817 of file versioning_500.cc.
References blender::bke::node_find_socket(), SOCK_IN, bNode::storage, and version_node_add_socket().
Definition at line 661 of file versioning_500.cc.
References blender::bke::node_find_socket(), NodeGeometryVolumeToMesh::resolution_mode, SOCK_IN, bNode::storage, and version_node_add_socket().
Referenced by blo_do_versions_500().
Definition at line 1637 of file versioning_500.cc.
References bNode::flag, bNodeSocket::flag, World::horb, World::horg, World::horr, World::id, bNode::label, LISTBASE_FOREACH, bNode::location, blender::bke::node_add_static_node(), NODE_DO_OUTPUT, NODE_FRAME, blender::bke::node_tree_add_tree_embedded(), bNodeTree::nodes, World::nodetree, bNode::parent, RPT_, SOCK_IN, SOCK_OUT, SOCK_UNAVAIL, STREQ, STRNCPY(), bNodeSocketValueRGBA::value, version_node_add_empty(), version_node_add_link(), version_node_add_socket(), and bNode::width.
Always bump subversion in BKE_blender_version.h when adding versioning code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check.
Definition at line 2653 of file versioning_500.cc.
References Main::armatures, BKE_animdata_from_id(), BKE_pose_rebuild(), BLI_listbase_is_empty(), BONE_HIDDEN_P, CMP_NODE_COMPOSITE_DEPRECATED, CMP_NODE_SUNBEAMS_DEPRECATED, DATA_, DNA_struct_default_get, do_version_composite_node_in_scene_tree(), do_version_convert_to_generic_nodes_after_linking(), do_version_remove_lzo_and_lzma_compression(), do_version_sun_beams(), AnimData::drivers, Scene::ed, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD_MUTABLE, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), MAIN_VERSION_FILE_ATLEAST, NODE_INTERFACE_SOCKET_INPUT, NODE_INTERFACE_SOCKET_OUTPUT, blender::bke::node_tree_set_type(), bNodeTree::nodes, NTREE_COMPOSIT, OB_ARMATURE, Main::objects, PCHAN_DRAW_HIDDEN, RE_engine_id_BLENDER_EEVEE, RE_engine_id_BLENDER_EEVEE_NEXT, Main::scenes, WorkSpace::sequencer_scene, sequencer_substitute_transform_effects(), STREQ, STRNCPY_UTF8, bNodeTree::tree_interface, users, version_bone_hide_property_driver(), version_get_scene_compositor_node_tree(), version_node_remove(), window_has_sequence_editor_open(), Main::wm, WM_window_get_active_scene(), and WM_window_get_active_workspace().
Referenced by do_versions_after_linking().
|
static |
Definition at line 182 of file versioning_500.cc.
References CustomData::layers, name, and CustomData::totlayer.
Referenced by rename_mesh_uv_seam_attribute().
|
static |
Definition at line 845 of file versioning_500.cc.
References ToolSettings::curves_sculpt, ToolSettings::gp_paint, ToolSettings::gp_sculptpaint, ToolSettings::gp_vertexpaint, ToolSettings::gp_weightpaint, ToolSettings::imapaint, ToolSettings::sculpt, Scene::toolsettings, ToolSettings::vpaint, and ToolSettings::wpaint.
Referenced by blo_do_versions_500().
|
static |
Definition at line 92 of file versioning_500.cc.
References BLI_assert, IDP_CopyProperty_ex(), and LIB_ID_CREATE_NO_USER_REFCOUNT.
Referenced by version_system_idprops_children_bones_generate(), version_system_idprops_generate(), and version_system_idprops_nodes_generate().
|
static |
Definition at line 268 of file versioning_500.cc.
References i, LISTBASE_FOREACH, NODE_EVALUATE_CLOSURE, NODE_INTERFACE_SOCKET_STRUCTURE_TYPE_AUTO, NODE_INTERFACE_SOCKET_STRUCTURE_TYPE_DYNAMIC, bNodeTree::nodes, NodeEvaluateClosureInputItem::structure_type, and NodeEvaluateClosureOutputItem::structure_type.
Referenced by blo_do_versions_500().
|
static |
Definition at line 2024 of file versioning_500.cc.
References LISTBASE_FOREACH, MEM_callocN(), NODE_CLOSURE_INPUT, NODE_CLOSURE_OUTPUT, NODE_COMBINE_BUNDLE, NODE_EVALUATE_CLOSURE, NODE_SEPARATE_BUNDLE, and bNodeTree::nodes.
|
static |
Fix node interface sockest that could become both inputs and outputs before the current design was settled on.
Definition at line 2866 of file versioning_500.cc.
References remove_in_and_out_node_panel_recursive(), bNodeTreeInterface::root_panel, and bNodeTree::tree_interface.
|
static |
Definition at line 2814 of file versioning_500.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), bNodeTreeInterfaceSocket::attribute_domain, BLI_strdup(), BLI_strdup_null(), blender::VectorData< T, Allocator >::data, bNodeTreeInterfaceSocket::default_attribute_name, bNodeTreeInterfaceSocket::default_input, bNodeTreeInterfaceSocket::description, Vector< T, InlineBufferCapacity, Allocator >::extend(), bNodeTreeInterfaceSocket::flag, bNodeTreeInterfaceSocket::identifier, IDP_CopyProperty_ex(), Vector< T, InlineBufferCapacity, Allocator >::is_empty(), bNodeTreeInterfaceSocket::item, bNodeTreeInterfaceItem::item_type, bNodeTreeInterfacePanel::items_array, bNodeTreeInterfacePanel::items_num, LIB_ID_CREATE_NO_USER_REFCOUNT, MEM_callocN(), MEM_freeN(), bNodeTreeInterfaceSocket::name, NODE_INTERFACE_PANEL, NODE_INTERFACE_SOCKET, NODE_INTERFACE_SOCKET_INPUT, NODE_INTERFACE_SOCKET_OUTPUT, bNodeTreeInterfaceSocket::properties, Vector< T, InlineBufferCapacity, Allocator >::release(), remove_in_and_out_node_panel_recursive(), blender::VectorData< T, Allocator >::size, bNodeTreeInterfaceSocket::socket_type, and bNodeTreeInterfaceSocket::structure_type.
Referenced by remove_in_and_out_node_interface(), and remove_in_and_out_node_panel_recursive().
|
static |
Definition at line 192 of file versioning_500.cc.
References Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLI_uniquename_cb(), CD_MASK_PROP_ALL, Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), Mesh::corner_data, Mesh::edge_data, Mesh::face_data, find_old_seam_layer(), CustomData::layers, LISTBASE_FOREACH, CustomDataLayer::name, name, STRNCPY_UTF8, CustomData::totlayer, Mesh::vert_data, and Mesh::vertex_group_names.
Referenced by blo_do_versions_500().
Definition at line 2871 of file versioning_500.cc.
References Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BLO_reportf_wrap(), fixed, bNodeTree::links, LISTBASE_FOREACH, Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), bNodeTree::nodes, FileData::reports, and RPT_WARNING.
|
static |
Definition at line 2907 of file versioning_500.cc.
References Scene::ed, blender::seq::meta_stack_active_get(), blender::seq::meta_stack_set(), and MetaStack::parent_strip.
|
static |
Definition at line 2504 of file versioning_500.cc.
References Scene::ed, blender::seq::foreach_strip(), and Editing::seqbase.
Referenced by do_versions_after_linking_500().
|
static |
Definition at line 231 of file versioning_500.cc.
References Main::brushes, LISTBASE_FOREACH, Main::scenes, UnifiedPaintSettings::size, and UnifiedPaintSettings::unprojected_size.
Referenced by blo_do_versions_500().
|
static |
Definition at line 1621 of file versioning_500.cc.
References BKE_imtype_is_image(), BKE_imtype_is_movie(), BKE_imtype_is_multi_layer_image(), BLI_assert_unreachable, MEDIA_TYPE_IMAGE, MEDIA_TYPE_MULTI_LAYER_IMAGE, and MEDIA_TYPE_VIDEO.
|
static |
Definition at line 2613 of file versioning_500.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_animdata_ensure_id(), BKE_fcurve_copy(), BKE_fcurve_free(), BLI_addtail(), BLI_remlink(), BLI_str_quoted_substr_range(), BLI_string_joinN, copy(), AnimData::drivers, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LISTBASE_FOREACH, MEM_SAFE_FREE, STREQ, and users.
Referenced by do_versions_after_linking_500().
|
static |
Definition at line 2301 of file versioning_500.cc.
References BLI_listbase_count(), BLI_strdup(), blender::bke::custom_data_type_to_socket_type(), NodeGeometryViewer::data_type_legacy, GEO_NODE_VIEWER, NodeGeometryViewerItem::identifier, NodeGeometryViewer::items, NodeGeometryViewer::items_num, LISTBASE_FOREACH, MEM_calloc_arrayN(), NodeGeometryViewerItem::name, NodeGeometryViewer::next_identifier, bNodeTree::nodes, SOCK_FLOAT, SOCK_GEOMETRY, and NodeGeometryViewerItem::socket_type.
|
static |
Definition at line 827 of file versioning_500.cc.
References blender::seq::foreach_strip(), LISTBASE_FOREACH, and Main::scenes.
Referenced by blo_do_versions_500().
| void version_system_idprops_children_bones_generate | ( | Main * | bmain | ) |
Definition at line 159 of file versioning_500.cc.
References Main::armatures, Bone::childbase, idprops_process(), and LISTBASE_FOREACH.
Referenced by do_versions().
| void version_system_idprops_generate | ( | Main * | bmain | ) |
Allow 5.0+ to 'convert' older blendfiles' system properties storage.
Definition at line 101 of file versioning_500.cc.
References Main::armatures, Bone::childbase, FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, blender::seq::foreach_strip(), idprops_process(), LISTBASE_FOREACH, Main::objects, ID::properties, Main::scenes, and ID::system_properties.
Referenced by do_versions().
| void version_system_idprops_nodes_generate | ( | Main * | bmain | ) |
Definition at line 149 of file versioning_500.cc.
References FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, idprops_process(), and LISTBASE_FOREACH.
Referenced by do_versions().
|
static |
Definition at line 294 of file versioning_500.cc.
References CMP_NODE_COMBHSVA_LEGACY, CMP_NODE_COMBINE_COLOR, CMP_NODE_COMBRGBA_LEGACY, CMP_NODE_COMBSEP_COLOR_HSV, CMP_NODE_COMBSEP_COLOR_RGB, CMP_NODE_COMBSEP_COLOR_YCC, CMP_NODE_COMBSEP_COLOR_YUV, CMP_NODE_COMBYCCA_LEGACY, CMP_NODE_COMBYUVA_LEGACY, CMP_NODE_SEPARATE_COLOR, CMP_NODE_SEPHSVA_LEGACY, CMP_NODE_SEPRGBA_LEGACY, CMP_NODE_SEPYCCA_LEGACY, CMP_NODE_SEPYUVA_LEGACY, FN_NODE_COMBINE_COLOR, FN_NODE_SEPARATE_COLOR, LISTBASE_FOREACH, MEM_callocN(), NodeCMPCombSepColor::mode, NodeCombSepColor::mode, NODE_COMBSEP_COLOR_HSV, NODE_COMBSEP_COLOR_RGB, bNodeTree::nodes, NTREE_COMPOSIT, NTREE_GEOMETRY, NTREE_SHADER, NTREE_TEXTURE, SH_NODE_COMBHSV_LEGACY, SH_NODE_COMBINE_COLOR, SH_NODE_COMBRGB_LEGACY, SH_NODE_SEPARATE_COLOR, SH_NODE_SEPHSV_LEGACY, SH_NODE_SEPRGB_LEGACY, STRNCPY_UTF8, TEX_NODE_COMBINE_COLOR, TEX_NODE_COMPOSE_LEGACY, TEX_NODE_DECOMPOSE_LEGACY, TEX_NODE_SEPARATE_COLOR, bNodeTree::type, version_node_input_socket_name(), version_node_output_socket_name(), and NodeCMPCombSepColor::ycc_mode.
Referenced by blo_do_versions_500().
|
static |
Definition at line 2489 of file versioning_500.cc.
References bScreen::areabase, LISTBASE_FOREACH, SPACE_SEQ, and WM_window_get_active_screen().
Referenced by do_versions_after_linking_500().