forked from blender/blender
Fix review comments #27
@ -41,6 +41,7 @@ template<class T> const T IdData::get_data(pxr::TfToken const &key) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define ID_LOG(level, msg, ...) \
|
#define ID_LOG(level, msg, ...) \
|
||||||
CLOG_INFO(LOG_RENDER_HYDRA_SCENE, level, "%s (%s): " msg, p_id_.GetText(), id_->name, __VA_ARGS__);
|
CLOG_INFO( \
|
||||||
|
LOG_RENDER_HYDRA_SCENE, level, "%s (%s): " msg, p_id_.GetText(), id_->name, __VA_ARGS__);
|
||||||
|
|
||||||
} // namespace blender::render::hydra
|
} // namespace blender::render::hydra
|
||||||
|
@ -128,7 +128,8 @@ bool InstancerData::update_visibility(View3D *view3d)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
pxr::HdPrimvarDescriptorVector InstancerData::primvar_descriptors(pxr::HdInterpolation interpolation)
|
pxr::HdPrimvarDescriptorVector InstancerData::primvar_descriptors(
|
||||||
|
pxr::HdInterpolation interpolation)
|
||||||
{
|
{
|
||||||
pxr::HdPrimvarDescriptorVector primvars;
|
pxr::HdPrimvarDescriptorVector primvars;
|
||||||
if (interpolation == pxr::HdInterpolationInstance) {
|
if (interpolation == pxr::HdInterpolationInstance) {
|
||||||
@ -192,8 +193,8 @@ void InstancerData::check_remove(std::set<std::string> &available_objects)
|
|||||||
}
|
}
|
||||||
if (ret) {
|
if (ret) {
|
||||||
set_instances();
|
set_instances();
|
||||||
scene_delegate_->GetRenderIndex().GetChangeTracker().MarkInstancerDirty(p_id_,
|
scene_delegate_->GetRenderIndex().GetChangeTracker().MarkInstancerDirty(
|
||||||
pxr::HdChangeTracker::AllDirty);
|
p_id_, pxr::HdChangeTracker::AllDirty);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,7 +218,8 @@ void InstancerData::set_instances()
|
|||||||
Instance *inst;
|
Instance *inst;
|
||||||
pxr::SdfPath path;
|
pxr::SdfPath path;
|
||||||
|
|
||||||
ListBase *lb = object_duplilist(scene_delegate_->depsgraph_, scene_delegate_->scene_, (Object *)id_);
|
ListBase *lb = object_duplilist(
|
||||||
|
scene_delegate_->depsgraph_, scene_delegate_->scene_, (Object *)id_);
|
||||||
LISTBASE_FOREACH (DupliObject *, dupli, lb) {
|
LISTBASE_FOREACH (DupliObject *, dupli, lb) {
|
||||||
path = ObjectData::prim_id(scene_delegate_, dupli->ob);
|
path = ObjectData::prim_id(scene_delegate_, dupli->ob);
|
||||||
path = p_id_.AppendElementString(path.GetName());
|
path = p_id_.AppendElementString(path.GetName());
|
||||||
|
Loading…
Reference in New Issue
Block a user