Fix (unreported) RNA setter for TextEditor's text ID pointer not ensuring real user.

This commit is contained in:
Bastien Montagne 2022-01-24 18:01:23 +01:00
parent 2e9b8689e4
commit 1b1693d43f
1 changed files with 3 additions and 0 deletions

View File

@ -1861,6 +1861,9 @@ static void rna_SpaceTextEditor_text_set(PointerRNA *ptr,
SpaceText *st = (SpaceText *)(ptr->data);
st->text = value.data;
if (st->text != NULL) {
id_us_ensure_real((ID *)st->text);
}
ScrArea *area = rna_area_from_space(ptr);
if (area) {