forked from blender/blender
MaterialX: fix review comments #19
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: DagerD/blender#19
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "matx-fix-review-comments"
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
Fix review comments
Technical steps
@ -88,2 +93,4 @@
usd_material = usd::create_usd_material(export_context, material_path, (Material *)id, "st");
#ifdef WITH_MATERIALX
}
#endif
simplify to:
@ -26,0 +27,4 @@
#else
# define NODE_SHADER_MATERIALX_BEGIN \
void node_shader_materialx(void *data, struct bNode *node, struct bNodeSocket *out)
# define NODE_SHADER_MATERIALX_END
Seems could be simpliifed to:
Export code would be:
Tested - works good