DRW: Remove uneeded calls to drw_viewport_engine_data_ensure when iterating
authorClément Foucault <foucault.clem@gmail.com>
Tue, 7 May 2019 16:40:02 +0000 (18:40 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 8 May 2019 15:49:28 +0000 (17:49 +0200)
commitac2e23c739ab118ad1a6c516c454bc78b5cf6807
tree4bcabac62186f422fd879aad5267b2b6774b6c0b
parent820a64b9e5cf9c737fd484c6794e2e22c3f66d9f
DRW: Remove uneeded calls to drw_viewport_engine_data_ensure when iterating

This remove a bit of overhead specially in scene with lots of objects.
source/blender/draw/intern/draw_manager.c
source/blender/draw/intern/draw_manager.h