Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_types.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_types.h b/source/blender/makesdna/DNA_gpencil_types.h
index 0f570f8603d..fe3613548a6 100644
--- a/source/blender/makesdna/DNA_gpencil_types.h
+++ b/source/blender/makesdna/DNA_gpencil_types.h
@@ -1,21 +1,5 @@
-/*
- * 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) 2008, Blender Foundation.
- * This is a new part of Blender
- */
+/* SPDX-License-Identifier: GPL-2.0-or-later
+ * Copyright 2008 Blender Foundation. */
/** \file
* \ingroup DNA
@@ -34,6 +18,7 @@ extern "C" {
struct AnimData;
struct Curve;
struct Curve;
+struct GPencilUpdateCache;
struct MDeformVert;
#define GP_DEFAULT_PIX_FACTOR 1.0f
@@ -325,6 +310,9 @@ typedef struct bGPDstroke {
/** Curve used to edit the stroke using Bezier handlers. */
struct bGPDcurve *editcurve;
+ /* NOTE: When adding new members, make sure to add them to BKE_gpencil_stroke_copy_settings as
+ * well! */
+
bGPDstroke_Runtime runtime;
void *_pad5;
} bGPDstroke;
@@ -409,6 +397,9 @@ typedef struct bGPDframe {
/** Keyframe type (eBezTriple_KeyframeType). */
short key_type;
+ /* NOTE: When adding new members, make sure to add them to BKE_gpencil_frame_copy_settings as
+ * well! */
+
bGPDframe_Runtime runtime;
} bGPDframe;
@@ -532,6 +523,9 @@ typedef struct bGPDlayer {
float layer_mat[4][4], layer_invmat[4][4];
char _pad3[4];
+ /* NOTE: When adding new members, make sure to add them to BKE_gpencil_layer_copy_settings as
+ * well! */
+
bGPDlayer_Runtime runtime;
} bGPDlayer;
@@ -633,6 +627,8 @@ typedef struct bGPdata_Runtime {
Brush *sbuffer_brush;
struct GpencilBatchCache *gpencil_cache;
struct LineartCache *lineart_cache;
+
+ struct GPencilUpdateCache *update_cache;
} bGPdata_Runtime;
/* grid configuration */
@@ -726,6 +722,9 @@ typedef struct bGPdata {
bGPgrid grid;
+ /* NOTE: When adding new members, make sure to add them to BKE_gpencil_data_copy_settings as
+ * well! */
+
bGPdata_Runtime runtime;
} bGPdata;