Fix (unreported) RNA setter for TextEditor's text ID pointer not ensuring real user.
This commit is contained in:
parent
2e9b8689e4
commit
1b1693d43f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue