Blender V4.5
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 "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()

static 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 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(), Main::brushes, ImagePaintSettings::clone_alpha, RenderData::compositor_denoise_final_quality, RenderData::compositor_denoise_preview_quality, 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, Scene::id, 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, node, Main::nodetrees, NTREE_COMPOSIT, NTREE_GEOMETRY, NTREE_SHADER, Main::objects, NodesModifierSettings::properties, Scene::r, remove_triangulate_node_min_size_input(), RGN_TYPE_WINDOW, SCE_COMPOSITOR_DENOISE_BALANCED, SCE_COMPOSITOR_DENOISE_HIGH, scene, Main::scenes, Main::screens, SEQ_SNAP_TO_RETIMING, Editing::seqbase, 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(), Scene::toolsettings, 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()

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

static void do_version_viewer_shortcut ( bNodeTree * node_tree)
static

◆ do_versions_after_linking_440()

◆ remove_triangulate_node_min_size_input()

◆ version_fcurve_noise_modifier()

static void version_fcurve_noise_modifier ( FCurve & fcurve)
static

◆ version_geometry_normal_input_node()

static void version_geometry_normal_input_node ( bNodeTree & ntree)
static

Definition at line 781 of file versioning_440.cc.

References LISTBASE_FOREACH, node, bNodeTree::nodes, NTREE_GEOMETRY, STREQ, and bNodeTree::type.

Referenced by blo_do_versions_440().

◆ version_group_input_socket_data_block_reference()

static 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 747 of file versioning_440.cc.

References LISTBASE_FOREACH, node, bNodeTree::nodes, SOCK_COLLECTION, SOCK_IMAGE, SOCK_MATERIAL, SOCK_OBJECT, SOCK_TEXTURE, and value.

Referenced by blo_do_versions_440().

◆ version_node_locations_to_global()

static void version_node_locations_to_global ( bNodeTree & ntree)
static

Definition at line 725 of file versioning_440.cc.

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

Referenced by blo_do_versions_440().

◆ versioning_clear_strip_unused_flag()

static bool versioning_clear_strip_unused_flag ( Strip * strip,
void *  )
static

Definition at line 775 of file versioning_440.cc.

References Strip::flag, and strip.

Referenced by blo_do_versions_440().

◆ versioning_convert_seq_text_anchor()

static bool versioning_convert_seq_text_anchor ( Strip * strip,
void *  )
static