forked from blender/blender
Export curves #46
@ -27,7 +27,8 @@ pxr::HdMeshTopology BlenderSceneDelegate::GetMeshTopology(pxr::SdfPath const &id
|
|||||||
return m_data->mesh_topology(id);
|
return m_data->mesh_topology(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
pxr::HdBasisCurvesTopology BlenderSceneDelegate::GetBasisCurvesTopology(pxr::SdfPath const& id) {
|
pxr::HdBasisCurvesTopology BlenderSceneDelegate::GetBasisCurvesTopology(pxr::SdfPath const &id)
|
||||||
|
{
|
||||||
CLOG_INFO(LOG_RENDER_HYDRA_SCENE, 3, "%s", id.GetText());
|
CLOG_INFO(LOG_RENDER_HYDRA_SCENE, 3, "%s", id.GetText());
|
||||||
CurvesData *c_data = curves_data(id);
|
CurvesData *c_data = curves_data(id);
|
||||||
return c_data->curves_topology(id);
|
return c_data->curves_topology(id);
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
#include "CLG_log.h"
|
#include "CLG_log.h"
|
||||||
|
|
||||||
|
#include "curves.h"
|
||||||
#include "instancer.h"
|
#include "instancer.h"
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "mesh.h"
|
#include "mesh.h"
|
||||||
#include "object.h"
|
#include "object.h"
|
||||||
#include "world.h"
|
#include "world.h"
|
||||||
#include "curves.h"
|
|
||||||
|
|
||||||
namespace blender::render::hydra {
|
namespace blender::render::hydra {
|
||||||
|
|
||||||
|
@ -4,18 +4,17 @@
|
|||||||
#include <pxr/base/gf/vec2f.h>
|
#include <pxr/base/gf/vec2f.h>
|
||||||
#include <pxr/imaging/hd/tokens.h>
|
#include <pxr/imaging/hd/tokens.h>
|
||||||
|
|
||||||
|
#include "BKE_customdata.h"
|
||||||
#include "BKE_material.h"
|
#include "BKE_material.h"
|
||||||
#include "BKE_object.h"
|
#include "BKE_object.h"
|
||||||
#include "BKE_customdata.h"
|
|
||||||
|
|
||||||
|
|
||||||
#include "blender_scene_delegate.h"
|
#include "blender_scene_delegate.h"
|
||||||
|
|
||||||
namespace blender::render::hydra {
|
namespace blender::render::hydra {
|
||||||
|
|
||||||
CurvesData::CurvesData(BlenderSceneDelegate *scene_delegate,
|
CurvesData::CurvesData(BlenderSceneDelegate *scene_delegate,
|
||||||
Object *object,
|
Object *object,
|
||||||
pxr::SdfPath const &prim_id)
|
pxr::SdfPath const &prim_id)
|
||||||
: ObjectData(scene_delegate, object, prim_id)
|
: ObjectData(scene_delegate, object, prim_id)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -33,8 +32,8 @@ void CurvesData::init()
|
|||||||
void CurvesData::insert()
|
void CurvesData::insert()
|
||||||
{
|
{
|
||||||
ID_LOG(2, "");
|
ID_LOG(2, "");
|
||||||
scene_delegate_->GetRenderIndex().InsertRprim(pxr::HdPrimTypeTokens->basisCurves, scene_delegate_,
|
scene_delegate_->GetRenderIndex().InsertRprim(
|
||||||
prim_id);
|
pxr::HdPrimTypeTokens->basisCurves, scene_delegate_, prim_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CurvesData::remove()
|
void CurvesData::remove()
|
||||||
@ -88,7 +87,7 @@ bool CurvesData::update_visibility()
|
|||||||
bool ret = ObjectData::update_visibility();
|
bool ret = ObjectData::update_visibility();
|
||||||
if (ret) {
|
if (ret) {
|
||||||
scene_delegate_->GetRenderIndex().GetChangeTracker().MarkRprimDirty(
|
scene_delegate_->GetRenderIndex().GetChangeTracker().MarkRprimDirty(
|
||||||
prim_id, pxr::HdChangeTracker::DirtyVisibility);
|
prim_id, pxr::HdChangeTracker::DirtyVisibility);
|
||||||
ID_LOG(2, "");
|
ID_LOG(2, "");
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
#include "DEG_depsgraph_query.h"
|
#include "DEG_depsgraph_query.h"
|
||||||
|
|
||||||
#include "blender_scene_delegate.h"
|
#include "blender_scene_delegate.h"
|
||||||
|
#include "curves.h"
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "mesh.h"
|
#include "mesh.h"
|
||||||
#include "curves.h"
|
|
||||||
#include "object.h"
|
#include "object.h"
|
||||||
|
|
||||||
namespace blender::render::hydra {
|
namespace blender::render::hydra {
|
||||||
|
Loading…
Reference in New Issue
Block a user