forked from blender/blender
IBL has a wrong coordinates in render #85
@ -61,9 +61,6 @@ pxr::GfMatrix4d HydraSceneDelegate::GetTransform(pxr::SdfPath const &id)
|
||||
if (obj_data) {
|
||||
return obj_data->transform;
|
||||
}
|
||||
if (id == world_prim_id()) {
|
||||
return world_data_->transform;
|
||||
}
|
||||
return pxr::GfMatrix4d();
|
||||
}
|
||||
|
||||
|
@ -20,6 +20,10 @@
|
||||
namespace blender::io::hydra {
|
||||
|
||||
class ObjectData : public IdData {
|
||||
public:
|
||||
pxr::GfMatrix4d transform;
|
||||
bool visible = true;
|
||||
|
||||
public:
|
||||
ObjectData(HydraSceneDelegate *scene_delegate, Object *object, pxr::SdfPath const &prim_id);
|
||||
|
||||
@ -38,9 +42,6 @@ class ObjectData : public IdData {
|
||||
virtual pxr::SdfPath material_id(pxr::SdfPath const &id) const;
|
||||
virtual void available_materials(Set<pxr::SdfPath> &paths) const;
|
||||
|
||||
pxr::GfMatrix4d transform;
|
||||
bool visible = true;
|
||||
|
||||
protected:
|
||||
virtual void write_transform();
|
||||
virtual void write_materials();
|
||||
|
@ -20,8 +20,6 @@ namespace blender::io::hydra {
|
||||
|
||||
class WorldData : public LightData {
|
||||
public:
|
||||
pxr::GfMatrix4d transform;
|
||||
|
||||
WorldData(HydraSceneDelegate *scene_delegate, pxr::SdfPath const &prim_id);
|
||||
|
||||
void init() override;
|
||||
|
Loading…
Reference in New Issue
Block a user