|
Blender
V2.93
|
#include <string.h>#include "DNA_node_types.h"#include "DNA_space_types.h"#include "DNA_texture_types.h"#include "BLI_listbase.h"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_context.h"#include "BKE_linestyle.h"#include "BKE_node.h"#include "BKE_paint.h"#include "NOD_texture.h"#include "node_common.h"#include "node_exec.h"#include "node_texture_util.h"#include "node_util.h"#include "DEG_depsgraph.h"#include "RNA_access.h"#include "RE_texture.h"Go to the source code of this file.
Variables | |
| bNodeTreeType * | ntreeType_Texture |
|
static |
Definition at line 97 of file node_texture_tree.c.
References N_, NODE_CLASS_CONVERTOR, NODE_CLASS_DISTORT, NODE_CLASS_GROUP, NODE_CLASS_INPUT, NODE_CLASS_INTERFACE, NODE_CLASS_LAYOUT, NODE_CLASS_OP_COLOR, NODE_CLASS_OUTPUT, NODE_CLASS_PATTERN, and NODE_CLASS_TEXTURE.
Referenced by register_node_tree_type_tex().
Definition at line 140 of file node_texture_tree.c.
References BKE_node_preview_merge_tree(), and ntree.
Referenced by register_node_tree_type_tex().
Definition at line 135 of file node_texture_tree.c.
References BKE_node_preview_sync_tree(), and ntree.
Referenced by register_node_tree_type_tex().
Definition at line 115 of file node_texture_tree.c.
References ListBase::first, node, NODE_MUTED, NODE_REROUTE, nodeInternalRelink(), bNodeTree::nodes, and ntreeFreeLocalNode().
Referenced by register_node_tree_type_tex().
| bNodeTreeExec* ntreeTexBeginExecTree | ( | bNodeTree * | ntree | ) |
Definition at line 200 of file node_texture_tree.c.
References context, exec(), bNodeTree::execdata, NODE_INSTANCE_KEY_BASE, ntree, ntreeTexBeginExecTree_internal(), and bNodeTree::previews.
Referenced by blender::compositor::TextureBaseOperation::initExecution(), load_tex(), ntreeTexExecTree(), paint_brush_init_tex(), and sculpt_brush_init_tex().
| bNodeTreeExec* ntreeTexBeginExecTree_internal | ( | bNodeExecContext * | context, |
| bNodeTree * | ntree, | ||
| bNodeInstanceKey | parent_key | ||
| ) |
Definition at line 180 of file node_texture_tree.c.
References BLENDER_MAX_THREADS, context, exec(), MEM_callocN, node, ntree, and ntree_exec_begin().
Referenced by group_initexec(), and ntreeTexBeginExecTree().
| void ntreeTexEndExecTree | ( | bNodeTreeExec * | exec | ) |
Definition at line 266 of file node_texture_tree.c.
References exec(), bNodeTree::execdata, ntree, ntreeTexEndExecTree_internal(), and NULL.
Referenced by blender::compositor::TextureBaseOperation::deinitExecution(), load_tex(), node_free_node(), ntree_free_data(), paint_brush_exit_tex(), sculpt_brush_exit_tex(), and texture_copy_data().
| void ntreeTexEndExecTree_internal | ( | bNodeTreeExec * | exec | ) |
Definition at line 242 of file node_texture_tree.c.
References Freestyle::a, BLENDER_MAX_THREADS, BLI_freelistN(), exec(), MEM_freeN, bNodeThreadStack::next, ntree_exec_end(), NULL, bNodeThreadStack::stack, and tex_free_delegates().
Referenced by group_freeexec(), and ntreeTexEndExecTree().
| int ntreeTexExecTree | ( | bNodeTree * | ntree, |
| TexResult * | target, | ||
| const float | co[3], | ||
| float | dxt[3], | ||
| float | dyt[3], | ||
| int | osatex, | ||
| const short | thread, | ||
| const Tex * | UNUSEDtex, | ||
| short | which_output, | ||
| int | cfra, | ||
| int | preview, | ||
| MTex * | mtex | ||
| ) |
Definition at line 278 of file node_texture_tree.c.
References BLI_thread_lock(), BLI_thread_unlock(), data, exec(), bNodeTree::execdata, LOCK_NODES, Brush::mtex, nor, TexResult::nor, ntree, ntreeExecThreadNodes(), ntreeGetThreadStack(), ntreeReleaseThreadStack(), ntreeTexBeginExecTree(), NULL, Brush::preview, TEX_INT, TEX_NOR, and TEX_RGB.
| void register_node_tree_type_tex | ( | void | ) |
Definition at line 157 of file node_texture_tree.c.
References foreach_nodeclass(), bNodeTreeType::foreach_nodeclass, bNodeTreeType::get_from_context, bNodeTreeType::idname, local_merge(), bNodeTreeType::local_merge, local_sync(), bNodeTreeType::local_sync, localize(), bNodeTreeType::localize, MEM_callocN, N_, NTREE_TEXTURE, ntreeType_Texture, ntreeTypeAdd(), bNodeTreeType::rna_ext, RNA_TextureNodeTree, ExtensionRNA::srna, texture_get_from_context(), bNodeTreeType::type, bNodeTreeType::ui_description, bNodeTreeType::ui_icon, bNodeTreeType::ui_name, update(), and bNodeTreeType::update.
Referenced by BKE_node_system_init().
|
static |
Definition at line 225 of file node_texture_tree.c.
References Freestyle::a, BLENDER_MAX_THREADS, bNodeStack::data, exec(), bNodeStack::is_copy, MEM_freeN, bNodeThreadStack::next, and bNodeThreadStack::stack.
Referenced by ntreeTexEndExecTree_internal().
|
static |
Definition at line 53 of file node_texture_tree.c.
References BKE_linestyle_active_from_view_layer(), BKE_paint_brush(), C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_space_node(), give_current_brush_texture(), give_current_linestyle_texture(), Tex::id, ToolSettings::imapaint, linestyle, Object::mode, Tex::nodetree, NULL, OB_MODE_SCULPT, OBACT, ImagePaintSettings::paint, Sculpt::paint, scene, ToolSettings::sculpt, SNODE_TEX_BRUSH, SNODE_TEX_LINESTYLE, SpaceNode::texfrom, and Scene::toolsettings.
Referenced by register_node_tree_type_tex().
|
static |
Definition at line 145 of file node_texture_tree.c.
References BKE_node_preview_remove_unused(), ntree, NTREE_UPDATE_NODES, ntree_update_reroute_nodes(), and bNodeTree::update.
Referenced by register_node_tree_type_tex().
| bNodeTreeType* ntreeType_Texture |
Definition at line 155 of file node_texture_tree.c.
Referenced by ED_node_init_butfuncs(), ED_node_is_texture(), ED_node_texture_default(), and register_node_tree_type_tex().