Blender V5.3
blender::NodesModifierDataBlock Struct Reference

#include <DNA_modifier_types.h>

Public Attributes

char * id_name = nullptr
char * lib_name = nullptr
struct ID * id = nullptr
int id_type = 0
char _pad [4] = {}

Detailed Description

Maps a name (+ optional library name) to a data-block. The name can be stored on disk and is remapped to the data-block when the data is loaded.

At run-time, #BakeDataBlockID is used to pair up the data-block and library name.

Definition at line 2464 of file DNA_modifier_types.h.

Member Data Documentation

◆ _pad

char blender::NodesModifierDataBlock::_pad[4] = {}

Definition at line 2480 of file DNA_modifier_types.h.

◆ id

struct ID* blender::NodesModifierDataBlock::id = nullptr

ID that this is mapped to.

Definition at line 2477 of file DNA_modifier_types.h.

Referenced by blender::add_missing_data_block_mappings(), and blender::nodes_modifier_data_block_destruct().

◆ id_name

char* blender::NodesModifierDataBlock::id_name = nullptr

Name of the data-block. Can be empty in which case the name of the id below is used. This only needs to be set manually when the name stored on disk does not exist in the .blend file anymore, because e.g. the ID has been renamed.

Definition at line 2470 of file DNA_modifier_types.h.

Referenced by blender::add_missing_data_block_mappings(), blender::copy_data(), and blender::nodes_modifier_data_block_destruct().

◆ id_type

int blender::NodesModifierDataBlock::id_type = 0

Type of ID that is referenced by this mapping.

Definition at line 2479 of file DNA_modifier_types.h.

Referenced by blender::add_missing_data_block_mappings().

◆ lib_name

char* blender::NodesModifierDataBlock::lib_name = nullptr

Name of the library the ID is in. Can be empty when the ID is not linked or when id_name is empty as well and thus the names from the id below are used.

Definition at line 2475 of file DNA_modifier_types.h.

Referenced by blender::add_missing_data_block_mappings(), blender::copy_data(), and blender::nodes_modifier_data_block_destruct().


The documentation for this struct was generated from the following file: