forked from blender/blender
Move the MaterialX export code into the existing shader node files #18
No reviewers
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: DagerD/blender#18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "BogdanNagirniak/blender:matx-move-code"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose
Due to review suggestions, MaterialX export code should be moved to existing node files.
Technical steps
bNodeType::materialx_fn
function pointer.NODE_SHADER_MATERIALX_BEGIN
,NODE_SHADER_MATERIALX_END
for including MaterialX export code intonode_shader_<name>.cc
files.ShaderNodeParser
as not needed, justNodeParser
can be used. Adjustedget_input_link()
to work with shader types. Madeget_input_link()
to callmaterialx_fn
.node_parser.cc/.h
,node_item.cc/.h
tomaterialx
folder.node_shader_<name>.cc
files. Removedmaterialx/nodes/...
files.DefaultMaterialNodeParser
inmaterial.cc
.Works fine.
Works well.