forked from blender/blender
Support multimaterials on one mesh #44
@ -92,8 +92,9 @@ bool InstancerData::update_visibility()
|
|||||||
change_tracker.MarkInstancerDirty(prim_id, pxr::HdChangeTracker::DirtyVisibility);
|
change_tracker.MarkInstancerDirty(prim_id, pxr::HdChangeTracker::DirtyVisibility);
|
||||||
for (auto &it : mesh_instances_) {
|
for (auto &it : mesh_instances_) {
|
||||||
it.second.data->visible = visible;
|
it.second.data->visible = visible;
|
||||||
change_tracker.MarkRprimDirty(it.second.data->prim_id,
|
for (auto &p : it.second.data->submesh_paths()) {
|
||||||
pxr::HdChangeTracker::DirtyVisibility);
|
change_tracker.MarkRprimDirty(p, pxr::HdChangeTracker::DirtyVisibility);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
char name[16];
|
char name[16];
|
||||||
for (auto &it : light_instances_) {
|
for (auto &it : light_instances_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user