forked from blender/blender
Make object visibility and instancing creation to be calculated via depsgraph #57
@ -323,6 +323,11 @@ CurvesData *BlenderSceneDelegate::curves_data(pxr::SdfPath const &id) const
|
||||
return dynamic_cast<CurvesData *>(object_data(id));
|
||||
}
|
||||
|
||||
VolumeData *BlenderSceneDelegate::volume_data(pxr::SdfPath const &id) const
|
||||
{
|
||||
return dynamic_cast<VolumeData *>(object_data(id));
|
||||
}
|
||||
|
||||
LightData *BlenderSceneDelegate::light_data(pxr::SdfPath const &id) const
|
||||
{
|
||||
return dynamic_cast<LightData *>(object_data(id));
|
||||
@ -337,11 +342,6 @@ MaterialData *BlenderSceneDelegate::material_data(pxr::SdfPath const &id) const
|
||||
return mat_data->get();
|
||||
}
|
||||
|
||||
VolumeData *BlenderSceneDelegate::volume_data(pxr::SdfPath const &id) const
|
||||
{
|
||||
return dynamic_cast<VolumeData *>(object_data(id));
|
||||
}
|
||||
|
||||
InstancerData *BlenderSceneDelegate::instancer_data(pxr::SdfPath const &id, bool child_id) const
|
||||
{
|
||||
pxr::SdfPath p_id;
|
||||
|
@ -97,10 +97,10 @@ class BlenderSceneDelegate : public pxr::HdSceneDelegate {
|
||||
ObjectData *object_data(pxr::SdfPath const &id) const;
|
||||
MeshData *mesh_data(pxr::SdfPath const &id) const;
|
||||
CurvesData *curves_data(pxr::SdfPath const &id) const;
|
||||
VolumeData *volume_data(pxr::SdfPath const &id) const;
|
||||
LightData *light_data(pxr::SdfPath const &id) const;
|
||||
MaterialData *material_data(pxr::SdfPath const &id) const;
|
||||
InstancerData *instancer_data(pxr::SdfPath const &id, bool child_id = false) const;
|
||||
VolumeData *volume_data(pxr::SdfPath const &id) const;
|
||||
|
||||
void update_world();
|
||||
void check_updates();
|
||||
|
Loading…
Reference in New Issue
Block a user