Quick fix to broken text editor/console from r45051.
Note: not completely sure this is the way to go, but at least it works (and is easy to revert in case there is better solution ;) ).
This commit is contained in:
parent
fde62b2d90
commit
d5600a43f6
|
@ -411,6 +411,8 @@ static int console_insert_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
|||
|
||||
void CONSOLE_OT_insert(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* identifiers */
|
||||
ot->name= "Insert";
|
||||
ot->description= "Insert text at cursor position";
|
||||
|
@ -422,7 +424,8 @@ void CONSOLE_OT_insert(wmOperatorType *ot)
|
|||
ot->poll= ED_operator_console_active;
|
||||
|
||||
/* properties */
|
||||
RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position");
|
||||
prop = RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2875,6 +2875,8 @@ static int text_insert_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
|||
|
||||
void TEXT_OT_insert(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* identifiers */
|
||||
ot->name= "Insert";
|
||||
ot->idname= "TEXT_OT_insert";
|
||||
|
@ -2886,7 +2888,8 @@ void TEXT_OT_insert(wmOperatorType *ot)
|
|||
ot->poll= text_edit_poll;
|
||||
|
||||
/* properties */
|
||||
RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position");
|
||||
prop = RNA_def_string(ot->srna, "text", "", 0, "Text", "Text to insert at the cursor position");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
/******************* find operator *********************/
|
||||
|
|
Loading…
Reference in New Issue