forked from bartvdbraak/blender
Allow editing the text editor line directly
Alternate solution for T44855
This commit is contained in:
parent
d6e180e75a
commit
f1917a2188
@ -3210,14 +3210,15 @@ static void rna_def_space_text(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TEXT, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "top", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "top");
|
||||
RNA_def_property_range(prop, 0, INT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Top Line", "Top line visible");
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_TEXT, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "visible_lines", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "viewlines");
|
||||
RNA_def_property_ui_text(prop, "Top Line", "Amount of lines that can be visible in current editor");
|
||||
RNA_def_property_ui_text(prop, "Visible Lines", "Amount of lines that can be visible in current editor");
|
||||
|
||||
/* functionality options */
|
||||
prop = RNA_def_property(srna, "use_overwrite", PROP_BOOLEAN, PROP_NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user