diff options
author | Falk David <falkdavid@gmx.de> | 2022-02-07 16:30:01 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2022-02-07 16:30:01 +0300 |
commit | 1d2bd57ff70f9c34bd2997744a1430fb935499ed (patch) | |
tree | 090e1ac2a847cb96d868a8f80b83ea0be456d8cb /source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.h | |
parent | c876bccb57a5760a56f13774c1cdbc1d65f9bcf5 (diff) | |
parent | 463828a7a840b7ae38b2b62637826b71d14b5a80 (diff) |
Merge with patch/gpencil-update-cache
Diffstat (limited to 'source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.h')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.h b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.h new file mode 100644 index 00000000000..d09e0e2258b --- /dev/null +++ b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_gpencil.h @@ -0,0 +1,45 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * The Original Code is Copyright (C) 2019 Blender Foundation. + * All rights reserved. + */ + +/** \file + * \ingroup depsgraph + */ + +#pragma once + +struct bGPdata; + +namespace blender { +namespace deg { + +struct Depsgraph; + +/* Backup of volume datablocks runtime data. */ +class GPencilBackup { + public: + GPencilBackup(const Depsgraph *depsgraph); + + void init_from_gpencil(bGPdata *gpd); + void restore_to_gpencil(bGPdata *gpd); + + const Depsgraph* depsgraph; +}; + +} // namespace deg +} // namespace blender |