Blender V5.0
versioning_440.cc File Reference
#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

Functions

static void do_version_glare_node_options_to_inputs (const Scene *scene, bNodeTree *node_tree, bNode *node)
static void do_version_glare_node_options_to_inputs_recursive (const Scene *scene, bNodeTree *node_tree, blender::Set< bNodeTree * > &node_trees_already_versioned)
static void do_version_glare_node_bloom_strength (const Scene *scene, bNodeTree *node_tree, bNode *node)
static void do_version_glare_node_bloom_strength_recursive (const Scene *scene, bNodeTree *node_tree, blender::Set< bNodeTree * > &node_trees_already_versioned)
static void do_version_color_to_float_conversion (bNodeTree *node_tree)
static void do_version_bump_filter_width (bNodeTree *node_tree)
void do_versions_after_linking_440 (FileData *fd, Main *bmain)
static bool versioning_convert_seq_text_anchor (Strip *strip, void *)
static void add_subsurf_node_limit_surface_option (Main &bmain)
static void remove_triangulate_node_min_size_input (bNodeTree *tree)
static void version_fcurve_noise_modifier (FCurve &fcurve)
static void version_node_locations_to_global (bNodeTree &ntree)
static void version_group_input_socket_data_block_reference (bNodeTree &ntree)
static bool versioning_clear_strip_unused_flag (Strip *strip, void *)
static void version_geometry_normal_input_node (bNodeTree &ntree)
static void do_version_viewer_shortcut (bNodeTree *node_tree)
void blo_do_versions_440 (FileData *fd, Library *, Main *bmain)

Macro Definition Documentation

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 9 of file versioning_440.cc.

◆ DNA_GENFILE_VERSIONING_MACROS

#define DNA_GENFILE_VERSIONING_MACROS

Definition at line 14 of file versioning_440.cc.

Function Documentation

◆ add_subsurf_node_limit_surface_option()

void add_subsurf_node_limit_surface_option ( Main & bmain)
static

◆ blo_do_versions_440()

void blo_do_versions_440 ( FileData * fd,
Library * lib,
Main * bmain )

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().

◆ do_version_bump_filter_width()

void do_version_bump_filter_width ( bNodeTree * node_tree)
static

◆ 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_version_viewer_shortcut()

void do_version_viewer_shortcut ( bNodeTree * node_tree)
static

◆ do_versions_after_linking_440()

◆ remove_triangulate_node_min_size_input()

◆ version_fcurve_noise_modifier()

void version_fcurve_noise_modifier ( FCurve & fcurve)
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().

◆ version_geometry_normal_input_node()

void version_geometry_normal_input_node ( bNodeTree & ntree)
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().

◆ version_group_input_socket_data_block_reference()

void version_group_input_socket_data_block_reference ( bNodeTree & ntree)
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().

◆ version_node_locations_to_global()

void version_node_locations_to_global ( bNodeTree & ntree)
static

Definition at line 700 of file versioning_440.cc.

References LISTBASE_FOREACH, bNodeTree::nodes, and bNode::parent.

Referenced by blo_do_versions_440().

◆ versioning_clear_strip_unused_flag()

bool versioning_clear_strip_unused_flag ( Strip * strip,
void *  )
static

Definition at line 750 of file versioning_440.cc.

References Strip::flag.

Referenced by blo_do_versions_440().

◆ versioning_convert_seq_text_anchor()

bool versioning_convert_seq_text_anchor ( Strip * strip,
void *  )
static