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:
authorCampbell Barton <ideasman42@gmail.com>2020-12-15 04:41:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-12-15 04:48:33 +0300
commita05d98884a3b0dae46c934c92c336b0b5d210dce (patch)
treeb527a4041a1e5cded62b107006cd4e2b0f545685 /source/blender/makesdna/DNA_anim_types.h
parent612598acd7b8d6a75dfb60ed3487bf5342b4f586 (diff)
RNA: disallow negative fcurve data-path array index
Diffstat (limited to 'source/blender/makesdna/DNA_anim_types.h')
-rw-r--r--source/blender/makesdna/DNA_anim_types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h
index bfc72fdd45c..1eafa655195 100644
--- a/source/blender/makesdna/DNA_anim_types.h
+++ b/source/blender/makesdna/DNA_anim_types.h
@@ -612,7 +612,12 @@ typedef struct FCurve {
char _pad[3];
/* RNA - data link */
- /** When the RNA property from `rna_path` is an array, use this to access the array index. */
+ /**
+ * When the RNA property from `rna_path` is an array, use this to access the array index.
+ *
+ * \note This may be negative (as it wasn't prevented in 2.91 and older).
+ * Currently it silently fails to resolve the data-path in this case.
+ */
int array_index;
/**
* RNA-path to resolve data-access, see: #RNA_path_resolve_property.