forked from blender/blender
Code improvements and fixes #26
@ -21,7 +21,7 @@ namespace blender::render::hydra {
|
||||
extern struct CLG_LogRef *LOG_BSD; /* BSD - Blender Scene Delegate */
|
||||
|
||||
class BlenderSceneDelegate : public pxr::HdSceneDelegate {
|
||||
friend MeshData;
|
||||
friend MeshData; /* has access to materials_*/
|
||||
|
||||
public:
|
||||
enum class EngineType { VIEWPORT = 1, FINAL, PREVIEW };
|
||||
|
@ -12,11 +12,8 @@
|
||||
namespace blender::render::hydra {
|
||||
|
||||
class BlenderSceneDelegate;
|
||||
class InstancerData;
|
||||
|
||||
class IdData {
|
||||
friend InstancerData;
|
||||
|
||||
public:
|
||||
IdData(BlenderSceneDelegate *scene_delegate, ID *id, pxr::SdfPath const &prim_id);
|
||||
virtual ~IdData() = default;
|
||||
|
@ -10,8 +10,6 @@
|
||||
namespace blender::render::hydra {
|
||||
|
||||
class InstancerData : public ObjectData {
|
||||
friend BlenderSceneDelegate;
|
||||
|
||||
struct Instance {
|
||||
std::unique_ptr<ObjectData> obj_data;
|
||||
pxr::VtIntArray indices;
|
||||
|
@ -13,11 +13,7 @@
|
||||
|
||||
namespace blender::render::hydra {
|
||||
|
||||
class MeshData;
|
||||
|
||||
class MaterialData : IdData {
|
||||
friend MeshData;
|
||||
|
||||
class MaterialData : public IdData {
|
||||
public:
|
||||
MaterialData(BlenderSceneDelegate *scene_delegate,
|
||||
Material *material,
|
||||
|
Loading…
Reference in New Issue
Block a user