Files
workinf_Blender_Wasm/blender-5.2.0/source/blender/nodes/NOD_defaults.hh
2026-08-12 04:47:48 -04:00

40 lines
846 B
C++

/* SPDX-FileCopyrightText: 2005 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup nodes
*/
#pragma once
namespace blender {
struct bContext;
struct bNodeTree;
struct ID;
struct Main;
struct Scene;
namespace nodes {
/**
* Assumes nothing being done in ntree yet, sets the default in/out node.
* Called from shading buttons or header.
*/
void node_tree_shader_default(const bContext *C, Main *bmain, ID *id);
/**
* Assumes nothing being done in ntree yet, sets the default in/out node.
* Called from compositing buttons or header.
*/
void node_tree_composit_default(const bContext *C, Scene *sce);
/**
* Initializes an empty compositing node tree with default nodes.
*/
void node_tree_composit_default_init(const bContext *C, bNodeTree *ntree);
} // namespace nodes
} // namespace blender