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
This commit is contained in:
Philipp Oeser 2022-01-06 13:40:05 +01:00
parent 45277d804e
commit 08aa7861d6
Notes: blender-bot 2023-02-14 10:21:11 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #94685, bpy.types.SpaceSpreadsheet.draw_handler_add - TypeError: unknown space type 'SpaceSpreadsheet'
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}