|
Blender V4.5
|
#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 "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 576 of file versioning_440.cc.
References add_subsurf_node_limit_surface_option(), 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 add_subsurf_node_limit_surface_option(), and blo_do_versions_440().
Definition at line 803 of file versioning_440.cc.
References Main::actions, add_subsurf_node_limit_surface_option(), SpaceFile::asset_params, FileAssetSelectParams::base_params, BKE_animdata_from_id(), blo_do_versions_440(), 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::seq::for_each_callback(), blender::animrig::foreach_fcurve_in_action(), FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, 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(), 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 blo_bhead_prev(), blo_do_versions_440(), and do_versions().
|
static |
Definition at line 418 of file versioning_440.cc.
References do_version_bump_filter_width(), 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_version_bump_filter_width(), and do_versions_after_linking_440().
|
static |
Definition at line 339 of file versioning_440.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), BLI_findlink(), CMP_NODE_MATH, CMP_NODE_NORMAL, copy_v3_fl(), bNode::custom1, do_version_color_to_float_conversion(), bNode::flag, bNodeLink::fromnode, bNodeLink::fromsock, bNode::inputs, 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_HIDDEN, NODE_MATH_MULTIPLY, blender::bke::node_remove_link(), PROP_NONE, SOCK_FLOAT, SOCK_IN, SOCK_OUT, SOCK_RGBA, SOCK_VECTOR, blender::math::numbers::sqrt3, bNodeSocketValueVector::value, version_node_add_link(), version_node_add_socket_if_not_exist(), and bNode::width.
Referenced by do_version_color_to_float_conversion(), and do_versions_after_linking_440().
|
static |
Definition at line 248 of file versioning_440.cc.
References BKE_fcurves_id_cb(), BKE_render_resolution(), BLI_str_escape(), CMP_NODE_GLARE_BLOOM, do_version_glare_node_bloom_strength(), bNodeTree::id, blender::math::max(), bNode::name, PROP_FACTOR, NodeGlare::quality, Scene::r, blender::math::reduce_min(), SOCK_FLOAT, SOCK_IN, bNode::storage, NodeGlare::type, bNodeSocketValueFloat::value, and version_node_add_socket_if_not_exist().
Referenced by do_version_glare_node_bloom_strength(), do_version_glare_node_bloom_strength_recursive(), and do_versions_after_linking_440().
|
static |
Definition at line 307 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 87 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, do_version_glare_node_options_to_inputs(), 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, SOCK_FLOAT, SOCK_IN, SOCK_INT, bNode::storage, NodeGlare::type, and version_node_add_socket_if_not_exist().
Referenced by do_version_glare_node_options_to_inputs(), do_version_glare_node_options_to_inputs_recursive(), and do_versions_after_linking_440().
|
static |
Definition at line 219 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 792 of file versioning_440.cc.
References CMP_NODE_VIEWER, do_version_viewer_shortcut(), LISTBASE_FOREACH_MUTABLE, NODE_VIEWER_SHORTCUT_NONE, and bNodeTree::nodes.
Referenced by blo_do_versions_440(), and do_version_viewer_shortcut().
Definition at line 433 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(), do_versions_after_linking_440(), 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 blo_bhead_prev(), do_versions_after_linking(), and do_versions_after_linking_440().
|
static |
Definition at line 591 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, bNodeTree::links, 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(), bNodeTree::nodes, bNode::outputs, bNode::parent, PROP_NONE, remove_triangulate_node_min_size_input(), SOCK_BOOLEAN, SOCK_FLOAT, SOCK_HIDDEN, SOCK_IN, SOCK_INT, SOCK_OUT, bNode::storage, STREQ, version_node_add_empty(), version_node_add_link(), and version_node_add_socket_if_not_exist().
Referenced by blo_do_versions_440(), and remove_triangulate_node_min_size_input().
|
static |
Definition at line 712 of file versioning_440.cc.
References data, FMODIFIER_TYPE_NOISE, LISTBASE_FOREACH, FCurve::modifiers, and version_fcurve_noise_modifier().
Referenced by blo_do_versions_440(), and version_fcurve_noise_modifier().
|
static |
Definition at line 781 of file versioning_440.cc.
References LISTBASE_FOREACH, bNodeTree::nodes, NTREE_GEOMETRY, STREQ, bNodeTree::type, and version_geometry_normal_input_node().
Referenced by blo_do_versions_440(), and version_geometry_normal_input_node().
|
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 747 of file versioning_440.cc.
References LISTBASE_FOREACH, bNodeTree::nodes, SOCK_COLLECTION, SOCK_IMAGE, SOCK_MATERIAL, SOCK_OBJECT, SOCK_TEXTURE, and version_group_input_socket_data_block_reference().
Referenced by blo_do_versions_440(), and version_group_input_socket_data_block_reference().
|
static |
Definition at line 725 of file versioning_440.cc.
References LISTBASE_FOREACH, bNodeTree::nodes, bNode::parent, and version_node_locations_to_global().
Referenced by blo_do_versions_440(), and version_node_locations_to_global().
|
static |
Definition at line 775 of file versioning_440.cc.
References Strip::flag, and versioning_clear_strip_unused_flag().
Referenced by blo_do_versions_440(), and versioning_clear_strip_unused_flag().
|
static |
Definition at line 562 of file versioning_440.cc.
References data, Strip::effectdata, SEQ_TEXT_ALIGN_X_LEFT, STRIP_TYPE_TEXT, Strip::type, and versioning_convert_seq_text_anchor().
Referenced by blo_do_versions_440(), and versioning_convert_seq_text_anchor().