diff options
Diffstat (limited to 'src/display/drawing.cpp')
| -rw-r--r-- | src/display/drawing.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/display/drawing.cpp b/src/display/drawing.cpp index 511de780a..4ff7464a2 100644 --- a/src/display/drawing.cpp +++ b/src/display/drawing.cpp @@ -170,8 +170,10 @@ Drawing::update(Geom::IntRect const &area, UpdateContext const &ctx, unsigned fl if (_root) { _root->update(area, ctx, flags, reset); } - // process the updated cache scores - _pickItemsForCaching(); + if ((flags & DrawingItem::STATE_CACHE) || (flags & DrawingItem::STATE_ALL)) { + // process the updated cache scores + _pickItemsForCaching(); + } } void |
