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:
authorPhilipp Oeser <info@graphics-engineer.com>2022-01-06 15:40:05 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-01-06 15:47:35 +0300
commit08aa7861d6a4c2c9397833322f959fad4df4885f (patch)
tree93894f25c8a37157cb13f4a674ddf93a68c50ecd /source/blender/python
parent45277d804ed5e7fd1e69a422dee3c76838eb5d32 (diff)
Fix T94685: python error adding Space handlers for Spreadsheet
Oversight in {rB9cb5f0a2282a}. Above commit made an entry in `rna_Space_refine()`, but the entry in `rna_Space_refine_reverse()` was missing (and this is what python uses for the Space callbacks). Maniphest Tasks: T94685 Differential Revision: https://developer.blender.org/D13751
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_rna_callback.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_rna_callback.c b/source/blender/python/intern/bpy_rna_callback.c
index c19d9ba47b1..16968cebab4 100644
--- a/source/blender/python/intern/bpy_rna_callback.c
+++ b/source/blender/python/intern/bpy_rna_callback.c
@@ -255,6 +255,9 @@ static eSpace_Type rna_Space_refine_reverse(StructRNA *srna)
if (srna == &RNA_SpaceClipEditor) {
return SPACE_CLIP;
}
+ if (srna == &RNA_SpaceSpreadsheet) {
+ return SPACE_SPREADSHEET;
+ }
return SPACE_EMPTY;
}