Blender V5.0
blender::ed::space_node::NodeClipboardItemIDInfo Struct Reference

Public Attributes

std::string id_name
std::string library_path
std::optional< IDHashpacked_id_hash
std::optional< ID * > new_id = {}

Detailed Description

Definition at line 34 of file clipboard.cc.

Member Data Documentation

◆ id_name

std::string blender::ed::space_node::NodeClipboardItemIDInfo::id_name

◆ library_path

std::string blender::ed::space_node::NodeClipboardItemIDInfo::library_path

Library filepath of the referenced ID, together with its name it forms a unique identifier.

Note
Library reference is stored as an absolute path. Since the Node clipboard is runtime data, persistent over new blend-files opening, this should guarantee that identical IDs from identical libraries can be matched accordingly, even across several blend-files.

Definition at line 44 of file clipboard.cc.

Referenced by blender::ed::space_node::NodeClipboard::copy_add_node(), and blender::ed::space_node::NodeClipboard::paste_validate_id_references().

◆ new_id

std::optional<ID *> blender::ed::space_node::NodeClipboardItemIDInfo::new_id = {}

The validated ID pointer (may be the same as the original one, or a new one).

Definition at line 52 of file clipboard.cc.

Referenced by blender::ed::space_node::NodeClipboard::paste_update_node_id_references(), and blender::ed::space_node::NodeClipboard::paste_validate_id_references().

◆ packed_id_hash

std::optional<IDHash> blender::ed::space_node::NodeClipboardItemIDInfo::packed_id_hash

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