forked from blender/blender
Support multimaterials on one mesh #44
No reviewers
Labels
No Label
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BogdanNagirniak/blender#44
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "BLEN-417"
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
Hydra doesn't support multimaterials assigned to one mesh, therefore we have to split mesh to submeshes with one material.
Technical steps
MeshData
to support submeshes for one material:MeshData::SubMesh
write_submeshes()
InstancerData
due to submeshes inMeshData
.BlenderSceneDelegate
.Works fine. Some comments in code.
@ -241,3 +245,3 @@
ObjectData *BlenderSceneDelegate::object_data(pxr::SdfPath const &id) const
{
auto it = objects_.find(id);
pxr::SdfPath p_id = (id.GetName().find("SM_", 0) == 0) ? id.GetParentPath() : id;
id.GetName().find("SM_")
@ -41,3 +41,3 @@
write_material();
write_transform();
write_materials();
The order is important here?
No
Works well.