64#include "RNA_prototypes.hh"
87 bNodeTreePath *path = MEM_new<bNodeTreePath>(
"node tree path");
130 bNodeTreePath *path = MEM_new<bNodeTreePath>(
"node tree path");
176 if (path == snode->
treepath.first_) {
210 for (path = snode->
treepath.last(), i = 0; path; path = path->
prev, i++) {
222 for (
const auto [i, path] : snode->
treepath.enumerate()) {
223 length += strlen(path.display_name);
235 const char *value_orig = value;
238 for (
const auto [i, path] : snode->
treepath.enumerate()) {
239 const int len = strlen(path.display_name);
243 memcpy(value, path.display_name,
len);
277namespace ed::space_node {
283 if (path && path->
prev) {
290 const bNode &query_node)
295 snode, compute_context_cache, query_node);
296 if (!compute_context) {
307 for (
const ComputeContext *context = compute_context; context !=
nullptr;
308 context = context->parent())
328 std::reverse(node_ids.
begin(), node_ids.
end());
330 const bNestedNodeRef *nested_node_ref = root_tree.nested_node_ref_from_node_id_path(node_ids);
331 if (nested_node_ref ==
nullptr) {
334 found.
id = nested_node_ref->
id;
342 if (snode && snode->
from) {
344 return id_cast<Object *>(snode->
from);
357 if (snode.
id ==
nullptr) {
390 if (used_modifier ==
nullptr) {
400 const std::optional<ObjectAndModifier> object_and_modifier =
402 if (!object_and_modifier) {
406 if (object_and_modifier->object != object_orig) {
443 if (!active_effect) {
454 if (!output_node_ptr) {
457 const bNode &output_node = *output_node_ptr;
465 parent_compute_context, output_node,
storage.inspection_index);
471 parent_compute_context, output_node,
storage.inspection_index);
475 const bNodeTree &tree = output_node.owner_tree();
476 source_location.
tree = &tree;
479 parent_compute_context->
hash() :
483 output_node.output_socket(0),
484 compute_context_cache,
520 bNodeTree *tree = tree_path[i]->nodetree;
521 const char *group_node_name = tree_path[i + 1]->node_name;
523 if (group_node ==
nullptr) {
527 if (tree_zones ==
nullptr) {
547 std::optional<ed::space_node::ObjectAndModifier> object_and_modifier =
549 if (!object_and_modifier) {
553 nullptr, object_and_modifier->object->id);
555 *object_and_modifier->nmd);
566 std::optional<SceneAndCompositorEffect> scene_and_effect =
568 if (!scene_and_effect) {
572 nullptr, scene_and_effect->scene->id);
574 *scene_and_effect->effect);
598 compute_context_cache);
604 return edittree_context;
645 SpaceNode *snode = MEM_new<SpaceNode>(__func__);
646 snode->
runtime = MEM_new<SpaceNode_Runtime>(__func__);
715 region->
v2d.
min[0] = 1.0f;
716 region->
v2d.
min[1] = 1.0f;
718 region->
v2d.
max[0] = 32000.0f;
719 region->
v2d.
max[1] = 32000.0f;
728 return reinterpret_cast<SpaceLink *
>(snode);
749 if (
ELEM(
nullptr, ntree,
id)) {
752 for (
const bNode *
node : ntree->all_nodes()) {
753 if (
node->id ==
id) {
934 snoden->
runtime = MEM_new<SpaceNode_Runtime>(__func__);
941 return reinterpret_cast<SpaceLink *
>(snoden);
999 ListBaseT<wmDropBox> *lb;
1031 if (snode ==
nullptr) {
1115 if (path.endswith(
".txt")) {
1118 if (is_geometry_tree &&
1119 (path.endswith(
".csv") || path.endswith(
".obj") || path.endswith(
".ply") ||
1120 path.endswith(
".stl") || path.endswith(
".vdb") || path.endswith(
".spz")))
1145 const bNodeTree *source_ntree = drag_data->tree;
1146 if (target_ntree != source_ntree) {
1217 bool has_selected_header_toggle =
false;
1219 for (
int i = 0; i < drag_data->items_count; i++) {
1222 if (panel->header_toggle_socket()) {
1223 has_selected_header_toggle =
true;
1229 if (has_selected_header_toggle) {
1230 return TIP_(
"Add Group Input (hold Ctrl to include sockets under panel toggle)");
1232 return TIP_(
"Add Group Input");
1240 return TIP_(
"Add Group Input");
1249 "NODE_OT_add_object",
1255 "NODE_OT_add_collection",
1261 "NODE_OT_add_group",
1267 "NODE_OT_add_image",
1279 "NODE_OT_add_material",
1287 "NODE_OT_add_import_node",
1293 "NODE_OT_add_group_input_node",
1299 "NODE_OT_add_group_input_node",
1332 switch (wmn->
data) {
1350 switch (wmn->
data) {
1409 "selected_nodes",
"active_node",
"light",
"material",
"world",
nullptr};
1427 if (
node->is_selected()) {
1499 if (snode->
id == old_id) {
1503 snode->
treepath.free_no_destruct();
1507 snode->
from =
nullptr;
1512 if (snode->
from == old_id) {
1513 if (new_id ==
nullptr) {
1516 snode->
from = new_id;
1520 if (id_cast<ID *>(snode->
gpd) == old_id) {
1521 snode->
gpd = id_cast<bGPdata *>(new_id);
1536 for (path = snode->
treepath.first(); path; path = path->
next) {
1537 if (id_cast<ID *>(path->
nodetree) == old_id) {
1538 path->
nodetree = id_cast<bNodeTree *>(new_id);
1541 if (path == snode->
treepath.first_) {
1551 for (; path; path = path_next) {
1552 path_next = path->
next;
1586 mappings.
iter([&](
ID *old_id,
ID *new_id) {
1597 bool is_embedded_nodetree = snode->
id !=
nullptr && allow_pointer_access &&
1606 if (is_embedded_nodetree) {
1608 if (path !=
nullptr) {
1617 if (path !=
nullptr) {
1625 if (path !=
nullptr) {
1643 if (!is_readonly && snode->
id && !snode->
nodetree) {
1644 is_embedded_nodetree =
true;
1646 if (path !=
nullptr) {
1651 if (path !=
nullptr) {
1652 for (path = path->
next; path !=
nullptr; path = path->
next) {
1654 if (allow_pointer_access) {
1665 path_next = path->
next;
1678 if (snode->
treepath.last() !=
nullptr) {
1716 MEM_delete(item_src);
1724 if (tree_type ==
nullptr) {
1725 return IFACE_(
"Node Editor");
1727 return tree_type->ui_name;
1734 if (tree_type ==
nullptr) {
1735 return ICON_NODETREE;
1737 return tree_type->ui_icon;
1751 snode->
runtime = MEM_new<SpaceNode_Runtime>(__func__);
1758 struct_writer.shallow_data.runtime =
nullptr;
1783 std::unique_ptr<SpaceType> st = std::make_unique<SpaceType>();
1810 st->blend_read_after_liblink =
nullptr;
Main runtime representation of an asset.
#define IDP_int_get(prop)
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
#define BKE_LIB_FOREACHID_PROCESS_ID(data_, id_, cb_flag_)
#define SH_NODE_TEX_IMAGE
#define SH_NODE_TEX_ENVIRONMENT
#define GEO_NODE_FOREACH_GEOMETRY_ELEMENT_OUTPUT
#define GEO_NODE_SIMULATION_OUTPUT
#define NODE_CLOSURE_OUTPUT
#define GEO_NODE_REPEAT_OUTPUT
#define STRNCPY_UTF8(dst, src)
#define BLO_read_struct_list(reader, struct_name, list)
#define BLO_read_struct(reader, struct_name, ptr_p)
ID and Library types, which are fundamental for SDNA.
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
#define UI_SIDEBAR_PANEL_WIDTH
#define ND_ANIMATION_PLAYBACK
#define ND_GPENCIL_EDITMODE
#define ND_SPACE_NODE_VIEW
const ComputeContextHash & hash() const
constexpr IndexRange drop_back(int64_t n) const
bool contains(const Key &key) const
void append(const T &value)
IndexRange index_range() const
AssetMetaData & get_metadata() const
const GeometryNodesModifierComputeContext & for_geometry_nodes_modifier(const ComputeContext *parent, const NodesModifierData &nmd)
const GroupNodeComputeContext & for_group_node(const ComputeContext *parent, int32_t node_id, const bNodeTree *tree=nullptr)
const ForeachGeometryElementZoneComputeContext & for_foreach_geometry_element_zone(const ComputeContext *parent, int32_t output_node_id, int index)
const RepeatZoneComputeContext & for_repeat_zone(const ComputeContext *parent, int32_t output_node_id, int iteration)
const DataBlockComputeContext & for_data_block(const ComputeContext *parent, const uint32_t orig_session_uid, const ID *id=nullptr)
const ShaderComputeContext & for_shader(const ComputeContext *parent, const bNodeTree *tree)
const OperatorComputeContext & for_operator(const ComputeContext *parent)
const SimulationZoneComputeContext & for_simulation_zone(const ComputeContext *parent, int output_node_id)
const SceneCompositorEffectComputeContext & for_scene_compositor_effect(const ComputeContext *parent, const SceneCompositorEffect &effect)
NodeIDVectorSet nodes_by_id
const bNode * output_node() const
Vector< const bNodeTreeZone * > get_zones_to_enter_from_root(const bNodeTreeZone *zone) const
const bNodeTreeZone * get_zone_by_node(const int32_t node_id) const
const bNodeTreeZone * get_zone_by_socket(const bNodeSocket &socket) const
void iter(FunctionRef< void(ID *old_id, ID *new_id)> func) const
#define storage(slot, qualifiers)
float length(VecOp< float, D >) RET
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
SceneCompositorEffect * get_active_effect(const Scene &scene)
T & get_item_as(bNodeTreeInterfaceItem &item)
void free(Subdiv *subdiv)
bNode * node_find_node_by_name(bNodeTree &ntree, StringRefNull name)
bNodeTreeType * node_tree_type_find(StringRef idname)
bNode * node_get_active(bNodeTree &ntree)
const bNodeInstanceKey NODE_INSTANCE_KEY_BASE
bNodeInstanceKey node_instance_key(bNodeInstanceKey parent_key, const bNodeTree *ntree, const bNode *node)
Span< bNodeTreeType * > node_tree_types_get()
bNodeTree * node_tree_from_id(ID *id)
void header_region(const bContext *C, ARegion *region)
void region_init(wmWindowManager *wm, ARegion *region)
void types_register(ARegionType *region_type, const int space_type)
void region_listen(const wmRegionListenerParams *params)
void region_on_poll_success(const bContext *C, ARegion *region)
void header_region_listen(const wmRegionListenerParams *params)
void region_on_user_resize(const ARegion *region)
int context(const bContext *C, const char *member, bContextDataResult *result)
int region_snap(const ARegion *region, int size, int axis)
void * region_duplicate(void *regiondata)
bool regions_poll(const RegionPollParams *params)
void header_region_init(wmWindowManager *wm, ARegion *region)
void region_draw(const bContext *C, ARegion *region)
void region_message_subscribe(const wmRegionMessageSubscribeParams *params)
void region_layout(const bContext *C, ARegion *region)
void region_free(ARegion *region)
void paths_to_operator_properties(PointerRNA *ptr, const Span< std::string > paths)
static const ComputeContext * get_node_editor_root_compute_context(const SpaceNode &snode, bke::ComputeContextCache &compute_context_cache)
const ComputeContext * compute_context_for_edittree_socket(const SpaceNode &snode, bke::ComputeContextCache &compute_context_cache, const bNodeSocket &socket)
static std::optional< SceneAndCompositorEffect > get_scene_compositor_effect_for_node_editor(const SpaceNode &space_node)
static void node_header_region_init(wmWindowManager *, ARegion *region)
static void node_widgets()
static void node_space_subtype_item_extend(bContext *C, EnumPropertyItem **item, int *totitem)
static bool node_import_file_drop_poll(bContext *C, wmDrag *drag, const wmEvent *)
static int node_space_icon_get(const ScrArea *area)
static void node_toolbar_region_draw(const bContext *C, ARegion *region)
static void node_space_blend_read_data(BlendDataReader *reader, SpaceLink *sl)
static std::string node_interface_item_drop_tooltip_single(bContext *, wmDrag *drag, const int[2], wmDropBox *)
static void node_group_drop_copy(bContext *C, wmDrag *drag, wmDropBox *drop)
Object * get_space_editor_object(const bContext *C)
std::optional< ObjectAndModifier > get_geometry_nodes_modifier_for_node_editor(const SpaceNode &snode)
static void node_header_region_draw(const bContext *C, ARegion *region)
static void node_area_refresh(const bContext *C, ScrArea *)
static void node_asset_shelf_region_init(wmWindowManager *wm, ARegion *region)
MenuType swap_root_catalogs_menu_type()
static void node_foreach_id(SpaceLink *space_link, LibraryForeachIDData *data)
void free_previews(wmWindowManager &wm, SpaceNode &snode)
static StringRefNull node_space_name_get(const ScrArea *area)
static SpaceLink * node_duplicate(SpaceLink *sl)
static void node_main_region_init(wmWindowManager *wm, ARegion *region)
static void node_id_remap(ID *old_id, ID *new_id, SpaceNode *snode)
static bool node_interface_item_drop_poll_base(bContext *C, wmDrag *drag, const wmEvent *)
void node_set_cursor(wmWindow &win, ARegion ®ion, SpaceNode &snode, const float2 &cursor)
static void node_import_file_drop_copy(bContext *, wmDrag *drag, wmDropBox *drop)
std::optional< nodes::FoundNestedNodeID > find_nested_node_id_in_root(const SpaceNode &snode, const bNode &node)
void NODE_GGT_backdrop_split(wmGizmoGroupType *gzgt)
static bool node_material_drop_poll(bContext *C, wmDrag *drag, const wmEvent *)
MenuType catalog_assets_menu_type()
static std::optional< const ComputeContext * > compute_context_for_tree_path(const SpaceNode &snode, bke::ComputeContextCache &compute_context_cache, const ComputeContext *parent_compute_context)
void NODE_GGT_backdrop_corner_pin(wmGizmoGroupType *gzgt)
void node_tree_interface_panel_register(ARegionType *art)
MenuType add_root_catalogs_menu_type()
const ComputeContext * compute_context_for_edittree(const SpaceNode &snode, bke::ComputeContextCache &compute_context_cache)
static bool node_color_drop_poll(bContext *C, wmDrag *drag, const wmEvent *)
static void node_interface_item_drop_copy_all(bContext *, wmDrag *, wmDropBox *drop)
static bool node_mask_drop_poll(bContext *, wmDrag *drag, const wmEvent *)
static std::string node_interface_item_drop_tooltip_all(bContext *, wmDrag *, const int[2], wmDropBox *)
static int node_space_subtype_get(ScrArea *area)
void NODE_GGT_backdrop_crop(wmGizmoGroupType *gzgt)
static bool node_group_drop_poll(bContext *C, wmDrag *drag, const wmEvent *)
const ComputeContext * compute_context_for_zone(const bke::bNodeTreeZone &zone, bke::ComputeContextCache &compute_context_cache, const ComputeContext *parent_compute_context)
static void node_region_listener(const wmRegionListenerParams *params)
static bool node_id_im_drop_poll(bContext *, wmDrag *drag, const wmEvent *)
float2 space_node_group_offset(const SpaceNode &snode)
void NODE_GGT_backdrop_box_mask(wmGizmoGroupType *gzgt)
static void node_free(SpaceLink *sl)
static bool node_collection_drop_poll(bContext *C, wmDrag *drag, const wmEvent *)
void node_operatortypes()
static void node_interface_item_drop_copy_single(bContext *, wmDrag *, wmDropBox *drop)
static void node_dropboxes()
void NODE_GGT_backdrop_transform(wmGizmoGroupType *gzgt)
void snode_set_context(const bContext &C)
static void node_area_listener(const wmSpaceTypeListenerParams *params)
static void node_id_im_drop_copy(bContext *C, wmDrag *drag, wmDropBox *drop)
void NODE_GGT_compositor_translate(wmGizmoGroupType *gzgt)
static bool node_interface_item_drop_poll_single(bContext *C, wmDrag *drag, const wmEvent *event)
void node_keymap(wmKeyConfig *keyconf)
const ComputeContext * compute_context_for_zones(const Span< const bke::bNodeTreeZone * > zones, bke::ComputeContextCache &compute_context_cache, const ComputeContext *parent_compute_context)
void NODE_GGT_backdrop_ellipse_mask(wmGizmoGroupType *gzgt)
static void node_init(wmWindowManager *, ScrArea *)
static int node_context(const bContext *C, const char *member, bContextDataResult *result)
static void node_area_tag_tree_recalc(SpaceNode *, ScrArea *area)
void NODE_GGT_compositor_transform(wmGizmoGroupType *gzgt)
static bool node_object_drop_poll(bContext *C, wmDrag *drag, const wmEvent *)
void node_draw_space(const bContext &C, ARegion ®ion)
static void node_cursor(wmWindow *win, ScrArea *area, ARegion *region)
static void node_buttons_region_draw(const bContext *C, ARegion *region)
static void node_id_drop_copy(bContext *C, wmDrag *drag, wmDropBox *drop)
bool node_editor_is_for_geometry_nodes_modifier(const SpaceNode &snode, const Object &object, const NodesModifierData &nmd)
static void node_toolbar_region_init(wmWindowManager *wm, ARegion *region)
static void node_exit(wmWindowManager *wm, ScrArea *area)
MenuType unassigned_assets_menu_type()
const ComputeContext * compute_context_for_edittree_node(const SpaceNode &snode, bke::ComputeContextCache &compute_context_cache, const bNode &node)
static void node_main_region_draw(const bContext *C, ARegion *region)
void NODE_GGT_compositor_scale(wmGizmoGroupType *gzgt)
static bool any_node_uses_id(const bNodeTree *ntree, const ID *id)
void NODE_GGT_backdrop_glare(wmGizmoGroupType *gzgt)
static bool node_interface_item_drop_poll_all(bContext *C, wmDrag *drag, const wmEvent *event)
static void node_buttons_region_init(wmWindowManager *wm, ARegion *region)
static void node_space_blend_write(BlendWriter *writer, SpaceLink *sl)
static SpaceLink * node_create(const ScrArea *, const Scene *)
static void node_space_subtype_set(ScrArea *area, int value)
const ComputeContext * compute_context_for_closure_evaluation(const ComputeContext *closure_socket_context, const bNodeSocket &closure_socket, bke::ComputeContextCache &compute_context_cache, const std::optional< ClosureSourceLocation > &source_location)
bool button_active_drop_color(bContext *C)
void drop_color_copy(bContext *C, wmDrag *drag, wmDropBox *drop)
bool button_active_drop_name(const bContext *C)
void view2d_center_set(View2D *v2d, float x, float y)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
void view2d_size_x_set(View2D *v2d, float size_x)
void WM_main_add_notifier(uint type, void *reference)
bool ED_node_is_compositor(const SpaceNode *snode)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void ED_node_tree_push(ARegion *region, SpaceNode *snode, bNodeTree *ntree, bNode *gnode)
wmDropBox * WM_dropbox_add(ListBaseT< wmDropBox > *lb, const char *idname, bool(*poll)(bContext *C, wmDrag *drag, const wmEvent *event), void(*copy)(bContext *C, wmDrag *drag, wmDropBox *drop), void(*cancel)(Main *bmain, wmDrag *drag, wmDropBox *drop), WMDropboxTooltipFunc tooltip)
bool ED_node_is_geometry(const SpaceNode *snode)
const char * node_context_dir[]
void ED_region_generic_tools_region_message_subscribe(const wmRegionMessageSubscribeParams *params)
wmDragAsset * WM_drag_get_asset_data(const wmDrag *drag, int idcode)
void CTX_data_dir_set(bContextDataResult *result, const char **dir)
void WM_drag_free_imported_drag_ID(Main *bmain, wmDrag *drag, wmDropBox *drop)
Free asset ID imported for canceled drop.
int rna_node_tree_idname_to_enum(const char *idname)
SpaceNodeGeometryNodesType
@ SNODE_GEOMETRY_MODIFIER
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
@ RGN_TYPE_ASSET_SHELF_HEADER
int ED_node_tree_path_length(SpaceNode *snode)
void void void void void void BLI_duplicatelist(ListBase *dst, const ListBase *src) ATTR_NONNULL(1
void ED_node_tree_pop(ARegion *region, SpaceNode *snode)
MINLINE void copy_v2_v2(float r[2], const float a[2])
@ IDWALK_NO_ORIG_POINTERS_ACCESS
void ED_node_cursor_location_get(const SpaceNode *snode, float value[2])
bool ED_node_is_shader(SpaceNode *snode)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
@ WM_DRAG_NODE_TREE_INTERFACE
void RNA_struct_property_unset(PointerRNA *ptr, const char *identifier)
ID * WM_drag_get_local_ID_or_import_from_asset(const bContext *C, const wmDrag *drag, int idcode)
void ED_node_tree_start(ARegion *region, SpaceNode *snode, bNodeTree *ntree, ID *id, ID *from)
bool CTX_data_equals(const char *member, const char *str)
void WM_gizmomap_tag_refresh(wmGizmoMap *gzmap)
void ED_region_tag_redraw(ARegion *region)
LibraryForeachIDFlag BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
bool WM_drag_is_ID_type(const wmDrag *drag, int idcode)
@ RGN_ALIGN_HIDE_WITH_PREV
bool DEG_is_original(const T *id)
void CTX_data_id_pointer_set(bContextDataResult *result, ID *id)
SpaceNodeCompositorNodesType
@ SNODE_COMPOSITOR_SEQUENCER
wmEventHandler_Dropbox * WM_event_add_dropbox_handler(ListBaseT< wmEventHandler > *handlers, ListBaseT< wmDropBox > *dropboxes)
VecBase< float, 2 > float2
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
int ED_region_generic_panel_region_snap_size(const ARegion *region, int size, int axis)
wmGizmoGroupTypeRef * WM_gizmogrouptype_append_and_link(wmGizmoMapType *gzmap_type, void(*wtfunc)(wmGizmoGroupType *))
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bke::bNodeTreeType * rna_node_tree_type_from_enum(int value)
void DEG_id_tag_update(ID *id, unsigned int flags)
void CTX_data_type_set(bContextDataResult *result, ContextDataType type)
BMesh const char void * data
PointerRNA CTX_data_pointer_get(const bContext *C, const char *member)
bool ED_node_is_texture(SpaceNode *snode)
wmEventHandler_Keymap * WM_event_add_keymap_handler_v2d_mask(ListBaseT< wmEventHandler > *handlers, wmKeyMap *keymap)
void CTX_data_pointer_set_ptr(bContextDataResult *result, const PointerRNA *ptr)
void ED_region_panels(const bContext *C, ARegion *region)
void BKE_annotations_blend_read_data(struct BlendDataReader *reader, struct bGPdata *gpd)
IDProperty * BKE_asset_metadata_idprop_find(const AssetMetaData *asset_data, const char *name) ATTR_WARN_UNUSED_RESULT
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
SpaceNode * CTX_wm_space_node(const bContext *C)
void ED_area_do_mgs_subscribe_for_tool_ui(const wmRegionMessageSubscribeParams *params)
wmEventHandler_Keymap * WM_event_add_keymap_handler(ListBaseT< wmEventHandler > *handlers, wmKeyMap *keymap)
ARegion * BKE_area_region_new()
int ED_region_generic_tools_region_snap_size(const ARegion *region, int size, int axis)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
bool CTX_data_dir(const char *member)
void ED_node_cursor_location_set(SpaceNode *snode, const float value[2])
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
void id_us_ensure_real(ID *id)
T * DEG_get_original(T *id)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bool WM_menutype_add(MenuType *mt)
void BKE_spacetype_register(std::unique_ptr< SpaceType > st)
void ED_node_set_active_viewer_key(SpaceNode *snode)
ID_Type GS(const char *name)
void ED_region_header_init(ARegion *region)
Span< std::string > WM_drag_get_paths(const wmDrag *drag)
wmGizmoMapType * WM_gizmomaptype_ensure(const wmGizmoMapType_Params *gzmap_params)
@ UsePanelCategoriesSearch
const EnumPropertyItem * RNA_enum_node_tree_types_itemf_impl(bContext *C, bool *r_free)
PointerRNA RNA_pointer_create_id_subdata(ID &id, StructRNA *type, void *data)
void CTX_data_list_add_ptr(bContextDataResult *result, const PointerRNA *ptr)
void ED_node_set_tree_type(SpaceNode *snode, bke::bNodeTreeType *typeinfo)
void ED_area_tag_refresh(ScrArea *area)
@ CTX_RESULT_MEMBER_NOT_FOUND
ID * WM_drag_get_local_ID(const wmDrag *drag, short idcode)
@ IDWALK_CB_DIRECT_WEAK_LINK
@ IDWALK_CB_EMBEDDED_NOT_OWNING
ListBaseT< wmDropBox > * WM_dropboxmap_find(const char *idname, int spaceid, int regionid)
int ED_node_tree_depth(SpaceNode *snode)
bNodeTree * ED_node_tree_get(SpaceNode *snode, int level)
void ED_region_header(const bContext *C, ARegion *region)
void ED_region_panels_init(wmWindowManager *wm, ARegion *region)
@ SN_OVERLAY_SHOW_OVERLAYS
@ SN_OVERLAY_SHOW_PREVIEWS
@ SN_OVERLAY_SHOW_WIRE_COLORS
@ SN_OVERLAY_SHOW_RENDER_REGION
void ED_area_tag_redraw(ScrArea *area)
void ED_node_tree_path_get(SpaceNode *snode, char *value)
bool clip_gizmo_events_by_ui
void(*) on_user_resize(const ARegion *region)
void(*) cursor(wmWindow *win, ScrArea *area, ARegion *region)
int(*) snap_size(const ARegion *region, int size, int axis)
void *(*) duplicate(void *poin)
void(*) on_poll_success(const bContext *C, ARegion *region)
void(*) message_subscribe(const wmRegionMessageSubscribeParams *params)
bContextDataCallback context
void(*) draw(const bContext *C, ARegion *region)
void(*) listener(const wmRegionListenerParams *params)
void(*) layout(const bContext *C, ARegion *region)
bool(*) poll(const RegionPollParams *params)
void(*) init(wmWindowManager *wm, ARegion *region)
bke::ARegionRuntime * runtime
eRegion_Alignment alignment
void write_struct_cast(const void *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct(const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
struct bNodeTree * node_group
struct bNodeTree * node_group
ListBaseT< SceneCompositorEffect > compositor_effects
ListBaseT< SpaceLink > spacedata
eSpaceNodeOverlay_Flag flag
struct bNodeTree * selected_node_group
eSpaceNode_ShaderFrom shaderfrom
struct bNodeTree * edittree
struct bNodeTree * nodetree
ListBaseT< bNodeTreePath > treepath
ed::space_node::SpaceNode_Runtime * runtime
ListBaseT< ARegion > regionbase
eView2D_KeepZoom keepzoom
struct bNodeTreePath * next
struct bNodeTree * nodetree
struct bNodeTreePath * prev
bNodeInstanceKey parent_key
bke::bNodeTreeRuntime * runtime
bNodeInstanceKey active_viewer_key
ListBaseT< wmEventHandler > handlers
const SceneCompositorEffect * effect
Map< int, bool > node_can_sync_states
const ComputeContext * compute_context
ComputeContextHash compute_context_hash
int closure_output_node_id
const asset_system::AssetRepresentation * asset
const wmNotifier * notifier
const wmNotifier * notifier
bke::WindowRuntime * runtime