forked from blender/blender
BLEN-299: Export instances #11
@ -165,7 +165,7 @@ void BlenderSceneDelegate::update_collection(bool remove, bool visibility)
|
|||||||
DEG_iterator_objects_end,
|
DEG_iterator_objects_end,
|
||||||
&data, Object *, object) {
|
&data, Object *, object) {
|
||||||
if (data.dupli_object_current != nullptr) {
|
if (data.dupli_object_current != nullptr) {
|
||||||
add_update_instance(data.dupli_object_current, false);
|
add_update_instance(data.dupli_object_current);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ void BlenderSceneDelegate::add_update_object(Object *object, bool geometry, bool
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void BlenderSceneDelegate::add_update_instance(DupliObject *dupli, bool transform)
|
void BlenderSceneDelegate::add_update_instance(DupliObject *dupli)
|
||||||
{
|
{
|
||||||
SdfPath id = ObjectData::prim_id(this, dupli->ob);
|
SdfPath id = ObjectData::prim_id(this, dupli->ob);
|
||||||
if (!object_data(id)) {
|
if (!object_data(id)) {
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
MaterialData *material_data(pxr::SdfPath const &id);
|
MaterialData *material_data(pxr::SdfPath const &id);
|
||||||
|
|
||||||
void add_update_object(Object *object, bool geometry, bool transform, bool shading);
|
void add_update_object(Object *object, bool geometry, bool transform, bool shading);
|
||||||
void add_update_instance(DupliObject *dupli, bool transform);
|
void add_update_instance(DupliObject *dupli);
|
||||||
void set_material(MeshData &mesh_data);
|
void set_material(MeshData &mesh_data);
|
||||||
void update_material(Material *material);
|
void update_material(Material *material);
|
||||||
void update_world();
|
void update_world();
|
||||||
|
Loading…
Reference in New Issue
Block a user