Fix: revert accidental rename

This was accidentally renamed and missed in 761c881737.
This commit is contained in:
Jacques Lucke 2026-05-25 16:06:52 +02:00
parent f7364ec476
commit da62f3b9e8
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ void RNA_api_text(StructRNA *srna)
parm = RNA_def_string(func, "text", "Text", 0, "", "New text for this data-block");
RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED);
func = RNA_def_function(srna, "from_str", "rna_Text_from_string");
func = RNA_def_function(srna, "from_string", "rna_Text_from_string");
RNA_def_function_ui_description(func, "Replace text with this string.");
parm = RNA_def_string(func, "text", "Text", 0, "", "");
RNA_def_parameter_flags(parm, PropertyFlag(0), PARM_REQUIRED);

View file

@ -113,7 +113,7 @@ def api_dump(use_properties=True, use_functions=True):
sys.stderr.write("\n\nEOF\n")
else:
text = bpy.data.texts.new(name="api.py")
text.from_str(data)
text.from_string(data)
print("END")