Blender V4.3
IO_subdiv_disabler.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
7
8#include <set>
9
10struct Depsgraph;
11struct ModifierData;
12struct Object;
13struct Scene;
14
15namespace blender::io {
16
29 private:
30 Depsgraph *depsgraph_;
31 std::set<ModifierData *> disabled_modifiers_;
32 std::set<Object *> modified_objects_;
33
34 public:
35 explicit SubdivModifierDisabler(Depsgraph *depsgraph);
37
41 void disable_modifiers();
42
48 static ModifierData *get_subdiv_modifier(Scene *scene, const Object *ob, ModifierMode mode);
49
50 /* Disallow copying. */
53
54 private:
59 void disable_modifier(ModifierData *mod);
60};
61
62} // namespace blender::io
SubdivModifierDisabler(Depsgraph *depsgraph)
SubdivModifierDisabler(const SubdivModifierDisabler &)=delete
SubdivModifierDisabler & operator=(const SubdivModifierDisabler &)=delete
static ModifierData * get_subdiv_modifier(Scene *scene, const Object *ob, ModifierMode mode)
const Depsgraph * depsgraph
ccl_device_inline int mod(int x, int m)
Definition util/math.h:520