Only check OB_RECALC_ALL flags of the object in transform code
Because of the issue of how simplification works, there could be more flags in on->recalc bitfield which are ignored by object anyway. Would save some update calls after simplificating the scene.
This commit is contained in:
@@ -4910,7 +4910,7 @@ static void set_trans_object_base_flags(TransInfo *t)
|
|||||||
|
|
||||||
/* handle pending update events, otherwise they got copied below */
|
/* handle pending update events, otherwise they got copied below */
|
||||||
for (base = scene->base.first; base; base = base->next) {
|
for (base = scene->base.first; base; base = base->next) {
|
||||||
if (base->object->recalc) {
|
if (base->object->recalc & OB_RECALC_ALL) {
|
||||||
/* TODO(sergey): Ideally, it's not needed. */
|
/* TODO(sergey): Ideally, it's not needed. */
|
||||||
BKE_object_handle_update(G.main->eval_ctx, t->scene, base->object);
|
BKE_object_handle_update(G.main->eval_ctx, t->scene, base->object);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user