forked from blender/blender
Fix rendering of Car Demo scene #37
@ -434,9 +434,7 @@ void BlenderSceneDelegate::add_new_objects()
|
||||
Object *,
|
||||
object) {
|
||||
|
||||
if (ObjectData::is_supported(object)) {
|
||||
update_objects(object);
|
||||
}
|
||||
update_objects(object);
|
||||
update_instancers(object);
|
||||
}
|
||||
ITER_END;
|
||||
@ -539,10 +537,8 @@ void BlenderSceneDelegate::update_visibility()
|
||||
Object *,
|
||||
object) {
|
||||
|
||||
if (ObjectData::is_supported(object)) {
|
||||
if (!object_data(object_prim_id(object))) {
|
||||
update_objects(object);
|
||||
}
|
||||
if (!object_data(object_prim_id(object))) {
|
||||
update_objects(object);
|
||||
}
|
||||
if (!instancer_data(instancer_prim_id(object))) {
|
||||
update_instancers(object);
|
||||
|
@ -64,7 +64,8 @@ void InstancerData::update()
|
||||
ID_LOG(2, "");
|
||||
|
||||
Object *object = (Object *)id;
|
||||
if (id->recalc & ID_RECALC_GEOMETRY || (object->data && ((ID *)object->data)->recalc & ID_RECALC_GEOMETRY) ||
|
||||
if (id->recalc & ID_RECALC_GEOMETRY ||
|
||||
(object->data && ((ID *)object->data)->recalc & ID_RECALC_GEOMETRY) ||
|
||||
id->recalc & ID_RECALC_TRANSFORM) {
|
||||
set_instances();
|
||||
scene_delegate_->GetRenderIndex().GetChangeTracker().MarkInstancerDirty(
|
||||
|
Loading…
Reference in New Issue
Block a user