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
path: root/source
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-11 16:31:48 +0300
commita597164ea67c6aa196f8ecfdcddd9c5b6b4db396 (patch)
tree26e39e4c1af53779c5106d6e96070ce4225b8847 /source
parent3a79c1d8f5987375df0aaa796d684f54b0791ea7 (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')
-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 7f8ea54ab98..4f1aca70ce9 100644
--- a/source/blender/python/intern/bpy_rna_callback.c
+++ b/source/blender/python/intern/bpy_rna_callback.c
@@ -254,6 +254,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;
}