Blender V5.3
image_partial_updater.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2021 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_map.hh"
12
13#include "IMB_imbuf_types.hh"
14
15struct Image;
16
17namespace blender {
18
25 const Image *image = nullptr;
27
29 void ensure_image(const Image *new_image)
30 {
31 if (image != new_image) {
33 image = new_image;
34 }
35 }
36};
37
38} // namespace blender
BMesh Iterators.
Per-source partial update tracking.
void ensure_image(const Image *new_image)
Reset the cursors when switching to a different image.