forked from blender/blender
Fix rendering of Car Demo scene #37
@ -434,11 +434,9 @@ void BlenderSceneDelegate::add_new_objects()
|
|||||||
Object *,
|
Object *,
|
||||||
object) {
|
object) {
|
||||||
|
|
||||||
if (!ObjectData::is_supported(object)) {
|
if (ObjectData::is_supported(object)) {
|
||||||
|
|||||||
continue;
|
update_objects(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
update_objects(object);
|
|
||||||
update_instancers(object);
|
update_instancers(object);
|
||||||
}
|
}
|
||||||
ITER_END;
|
ITER_END;
|
||||||
@ -462,10 +460,9 @@ void BlenderSceneDelegate::remove_unused_objects()
|
|||||||
&data,
|
&data,
|
||||||
Object *,
|
Object *,
|
||||||
object) {
|
object) {
|
||||||
if (!ObjectData::is_supported(object)) {
|
if (ObjectData::is_supported(object)) {
|
||||||
continue;
|
available_objects.insert(object_prim_id(object).GetName());
|
||||||
}
|
}
|
||||||
available_objects.insert(object_prim_id(object).GetName());
|
|
||||||
available_objects.insert(instancer_prim_id(object).GetName());
|
available_objects.insert(instancer_prim_id(object).GetName());
|
||||||
}
|
}
|
||||||
ITER_END;
|
ITER_END;
|
||||||
@ -542,12 +539,10 @@ void BlenderSceneDelegate::update_visibility()
|
|||||||
Object *,
|
Object *,
|
||||||
object) {
|
object) {
|
||||||
|
|
||||||
if (!ObjectData::is_supported(object)) {
|
if (ObjectData::is_supported(object)) {
|
||||||
Bogdan Nagirniak
commented
Same here, just remove this Same here, just remove this `if (...)`
|
|||||||
continue;
|
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))) {
|
if (!instancer_data(instancer_prim_id(object))) {
|
||||||
update_instancers(object);
|
update_instancers(object);
|
||||||
|
@ -64,7 +64,7 @@ void InstancerData::update()
|
|||||||
ID_LOG(2, "");
|
ID_LOG(2, "");
|
||||||
|
|
||||||
Object *object = (Object *)id;
|
Object *object = (Object *)id;
|
||||||
if (id->recalc & ID_RECALC_GEOMETRY || ((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) {
|
id->recalc & ID_RECALC_TRANSFORM) {
|
||||||
set_instances();
|
set_instances();
|
||||||
scene_delegate_->GetRenderIndex().GetChangeTracker().MarkInstancerDirty(
|
scene_delegate_->GetRenderIndex().GetChangeTracker().MarkInstancerDirty(
|
||||||
|
Loading…
Reference in New Issue
Block a user
This check is already in
update_objects()
, so here it can be just removed