Blender  V3.3
deg_eval_runtime_backup_volume.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2019 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 struct Volume;
11 struct VolumeGridVector;
12 
13 namespace blender::deg {
14 
15 struct Depsgraph;
16 
17 /* Backup of volume datablocks runtime data. */
18 class VolumeBackup {
19  public:
21 
22  void init_from_volume(Volume *volume);
23  void restore_to_volume(Volume *volume);
24 
25  VolumeGridVector *grids;
26  char filepath[1024]; /* FILE_MAX */
27 };
28 
29 } // namespace blender::deg
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
VolumeBackup(const Depsgraph *depsgraph)
const Depsgraph * depsgraph