|
Blender V5.0
|
#include <fmt/format.h>#include "DNA_anim_types.h"#include "DNA_brush_types.h"#include "DNA_curves_types.h"#include "DNA_defaults.h"#include "DNA_genfile.h"#include "DNA_modifier_types.h"#include "DNA_screen_types.h"#include "DNA_sequence_types.h"#include "DNA_workspace_types.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_math_vector.hh"#include "BLI_set.hh"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BKE_anim_data.hh"#include "BKE_fcurve.hh"#include "BKE_main.hh"#include "BKE_node.hh"#include "BKE_node_legacy_types.hh"#include "BKE_node_runtime.hh"#include "BKE_scene.hh"#include "SEQ_iterator.hh"#include "SEQ_sequencer.hh"#include "RNA_types.hh"#include "ANIM_action.hh"#include "ANIM_action_iterators.hh"#include "ANIM_versioning.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_440.cc.
| #define DNA_GENFILE_VERSIONING_MACROS |
Definition at line 14 of file versioning_440.cc.
|
static |
Definition at line 551 of file versioning_440.cc.
References bNodeSocket::default_value, GEO_NODE_SUBDIVISION_SURFACE, LISTBASE_FOREACH, Main::nodetrees, NTREE_GEOMETRY, PROP_NONE, SOCK_BOOLEAN, SOCK_IN, and version_node_add_socket_if_not_exist().
Referenced by blo_do_versions_440().
Definition at line 778 of file versioning_440.cc.
References Main::actions, add_subsurf_node_limit_surface_option(), SpaceFile::asset_params, FileAssetSelectParams::base_params, BKE_animdata_from_id(), Main::brushes, ImagePaintSettings::clone_alpha, IDProperty::data, DNA_struct_default_get, do_version_viewer_shortcut(), AnimData::drivers, blender::seq::editing_get(), ELEM, eModifierType_Nodes, blender::StringRefBase::endswith(), FILE_SORT_ASSET_CATALOG, FileData::filesdna, blender::animrig::foreach_fcurve_in_action(), FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, blender::seq::foreach_strip(), IDPropertyData::group, Main::hair_curves, IDP_FLAG_OVERRIDABLE_LIBRARY, IDP_FLAG_STATIC_TYPE, IDP_STRING, ToolSettings::imapaint, LISTBASE_FOREACH, MAIN_VERSION_FILE_ATLEAST, Brush::mask_stencil_dimension, Brush::mask_stencil_pos, Main::nodetrees, NTREE_COMPOSIT, NTREE_GEOMETRY, NTREE_SHADER, Main::objects, NodesModifierSettings::properties, remove_triangulate_node_min_size_input(), RGN_TYPE_WINDOW, SCE_COMPOSITOR_DENOISE_BALANCED, SCE_COMPOSITOR_DENOISE_HIGH, Main::scenes, Main::screens, SEQ_SNAP_TO_RETIMING, NodesModifierData::settings, SH_NODE_MIX_SHADER, SI_MODE_PAINT, SequencerToolSettings::snap_mode, FileSelectParams::sort, SPACE_ACTION, SPACE_CONSOLE, SPACE_FILE, SPACE_IMAGE, SPACE_INFO, STREQ, STRNCPY_UTF8, blender::seq::tool_settings_ensure(), V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HIDE, version_cycles_properties_from_ID(), version_cycles_property_boolean_set(), version_cycles_property_int(), version_cycles_property_int_set(), version_fcurve_noise_modifier(), version_geometry_normal_input_node(), version_group_input_socket_data_block_reference(), version_node_locations_to_global(), versioning_clear_strip_unused_flag(), versioning_convert_seq_text_anchor(), and Main::workspaces.
Referenced by do_versions().
|
static |
Definition at line 393 of file versioning_440.cc.
References LISTBASE_FOREACH_MUTABLE, blender::bke::node_find_socket(), bNodeTree::nodes, SH_NODE_BUMP, SOCK_IN, and version_cycles_node_socket_float_value().
Referenced by do_versions_after_linking_440().
|
static |
Definition at line 336 of file versioning_440.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), copy_v3_fl(), bNode::custom1, bNode::flag, bNodeLink::fromnode, bNodeLink::fromsock, bNodeTree::links, LISTBASE_FOREACH_BACKWARD_MUTABLE, bNode::location, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), blender::bke::node_add_static_node(), NODE_COLLAPSED, blender::bke::node_find_socket(), blender::bke::node_remove_link(), NODE_VECTOR_MATH_DOT_PRODUCT, SH_NODE_VECTOR_MATH, SOCK_FLOAT, SOCK_IN, SOCK_OUT, SOCK_RGBA, bNodeSocketValueVector::value, and version_node_add_link().
Referenced by do_versions_after_linking_440().
|
static |
Definition at line 249 of file versioning_440.cc.
References BKE_fcurves_id_cb(), BKE_render_resolution(), BLI_str_escape(), CMP_NODE_GLARE_BLOOM, bNodeTree::id, blender::math::max(), bNode::name, PROP_FACTOR, Scene::r, blender::math::reduce_min(), size(), SOCK_FLOAT, SOCK_IN, bNode::storage, bNodeSocketValueFloat::value, and version_node_add_socket_if_not_exist().
Referenced by do_version_glare_node_bloom_strength_recursive(), and do_versions_after_linking_440().
|
static |
Definition at line 308 of file versioning_440.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), CMP_NODE_GLARE, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), do_version_glare_node_bloom_strength(), do_version_glare_node_bloom_strength_recursive(), LISTBASE_FOREACH, and bNodeTree::nodes.
Referenced by do_version_glare_node_bloom_strength_recursive(), and do_versions_after_linking_440().
|
static |
Definition at line 88 of file versioning_440.cc.
References BKE_fcurves_id_cb(), BKE_render_resolution(), BLI_str_endswith(), BLI_str_escape(), blender::math::clamp(), CMP_NODE_GLARE_BLOOM, fade(), bNodeTree::id, if(), blender::math::min(), mix, bNode::name, blender::math::pow(), PROP_ANGLE, PROP_FACTOR, PROP_NONE, Scene::r, blender::math::reduce_max(), FCurve::rna_path, size(), SOCK_FLOAT, SOCK_IN, SOCK_INT, bNode::storage, and version_node_add_socket_if_not_exist().
Referenced by do_version_glare_node_options_to_inputs_recursive(), and do_versions_after_linking_440().
|
static |
Definition at line 220 of file versioning_440.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), CMP_NODE_GLARE, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), do_version_glare_node_options_to_inputs(), do_version_glare_node_options_to_inputs_recursive(), LISTBASE_FOREACH, and bNodeTree::nodes.
Referenced by do_version_glare_node_options_to_inputs_recursive(), and do_versions_after_linking_440().
|
static |
Definition at line 767 of file versioning_440.cc.
References CMP_NODE_VIEWER, LISTBASE_FOREACH_MUTABLE, NODE_VIEWER_SHORTCUT_NONE, and bNodeTree::nodes.
Referenced by blo_do_versions_440().
Definition at line 408 of file versioning_440.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), BLI_strdupcat(), CMP_NODE_GLARE, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::animrig::versioning::convert_legacy_action_assignments(), blender::animrig::versioning::convert_legacy_animato_actions(), blender::StringRefBase::data(), do_version_bump_filter_width(), do_version_color_to_float_conversion(), do_version_glare_node_bloom_strength(), do_version_glare_node_bloom_strength_recursive(), do_version_glare_node_options_to_inputs(), do_version_glare_node_options_to_inputs_recursive(), StringRef::drop_prefix(), ListBase::first, blender::animrig::foreach_fcurve_in_action(), FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, LISTBASE_FOREACH, MAIN_VERSION_FILE_ATLEAST, MEM_freeN(), Main::nodetrees, NTREE_COMPOSIT, NTREE_SHADER, BlendFileReadReport::reports, FileData::reports, FCurve::rna_path, SCE_SNAP_TO_GRID, Main::scenes, blender::StringRefBase::startswith(), blender::animrig::versioning::tag_action_users_for_slotted_actions_conversion(), and version_node_socket_index_animdata().
Referenced by do_versions_after_linking().
|
static |
Definition at line 566 of file versioning_440.cc.
References Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), bNode::custom1, bNodeSocket::default_value, bNode::flag, GEO_NODE_TRIANGULATE, bNode::inputs, LISTBASE_FOREACH, bNode::locx_legacy, bNode::locy_legacy, Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), MEM_callocN(), NODE_BOOLEAN_MATH_AND, NODE_COMPARE_GREATER_EQUAL, blender::bke::node_find_socket(), NODE_OPTIONS, blender::bke::node_remove_socket(), bNode::outputs, bNode::parent, PROP_NONE, SOCK_BOOLEAN, SOCK_FLOAT, SOCK_HIDDEN, SOCK_IN, SOCK_INT, SOCK_OUT, bNode::storage, STREQ, tree, version_node_add_empty(), version_node_add_link(), and version_node_add_socket_if_not_exist().
Referenced by blo_do_versions_440().
|
static |
Definition at line 687 of file versioning_440.cc.
References data, FMODIFIER_TYPE_NOISE, LISTBASE_FOREACH, and FCurve::modifiers.
Referenced by blo_do_versions_440().
|
static |
Definition at line 756 of file versioning_440.cc.
References LISTBASE_FOREACH, bNodeTree::nodes, NTREE_GEOMETRY, STREQ, and bNodeTree::type.
Referenced by blo_do_versions_440().
|
static |
Clear unnecessary pointers to data blocks on output sockets group input nodes. These values should never have been set in the first place. They are not harmful on their own, but can pull in additional data-blocks when the node group is linked/appended.
Definition at line 722 of file versioning_440.cc.
References LISTBASE_FOREACH, bNodeTree::nodes, SOCK_COLLECTION, SOCK_IMAGE, SOCK_MATERIAL, SOCK_OBJECT, and SOCK_TEXTURE.
Referenced by blo_do_versions_440().
|
static |
Definition at line 700 of file versioning_440.cc.
References LISTBASE_FOREACH, bNodeTree::nodes, and bNode::parent.
Referenced by blo_do_versions_440().
|
static |
Definition at line 750 of file versioning_440.cc.
References Strip::flag.
Referenced by blo_do_versions_440().
|
static |
Definition at line 537 of file versioning_440.cc.
References data, Strip::effectdata, SEQ_TEXT_ALIGN_X_LEFT, STRIP_TYPE_TEXT, and Strip::type.
Referenced by blo_do_versions_440().