mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: revert accidental rename
This was accidentally renamed and missed in 761c881737.
This commit is contained in:
parent
f7364ec476
commit
da62f3b9e8
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue