Blender  V3.3
Public Member Functions | List of all members
blender::io::obj::ShaderNodetreeWrap Class Reference

#include <obj_import_mtl.hh>

Public Member Functions

 ShaderNodetreeWrap (Main *bmain, const MTLMaterial &mtl_mat, Material *mat, bool relative_paths)
 
 ~ShaderNodetreeWrap ()
 
bNodeTreeget_nodetree ()
 

Detailed Description

Definition at line 30 of file obj_import_mtl.hh.

Constructor & Destructor Documentation

◆ ShaderNodetreeWrap()

blender::io::obj::ShaderNodetreeWrap::ShaderNodetreeWrap ( Main bmain,
const MTLMaterial mtl_mat,
Material mat,
bool  relative_paths 
)

Initializes a nodetree with a p-BSDF node's BSDF socket connected to shader output node's surface socket.

Definition at line 151 of file obj_import_mtl.cc.

References bNodeTreeType::idname, nodeSetActive(), ntreeAddTree(), ntreeType_Shader, SH_NODE_BSDF_PRINCIPLED, and SH_NODE_OUTPUT_MATERIAL.

◆ ~ShaderNodetreeWrap()

blender::io::obj::ShaderNodetreeWrap::~ShaderNodetreeWrap ( )

Assert if caller hasn't acquired nodetree.

Definition at line 171 of file obj_import_mtl.cc.

References BLI_assert.

Member Function Documentation

◆ get_nodetree()

bNodeTree * blender::io::obj::ShaderNodetreeWrap::get_nodetree ( )

Release nodetree for materials to own it. nodetree has its unique deleter if destructor is not reached for some reason.

Definition at line 180 of file obj_import_mtl.cc.


The documentation for this class was generated from the following files: