diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-03-21 19:51:15 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-03-21 19:51:15 +0400 |
commit | d5600a43f69f2b6d2cd1b9404dfe77b9ebe0bb3c (patch) | |
tree | 8424f0e93f088c5b7bb611b6bbb326af983d4e46 /source/blender | |
parent | fde62b2d9074ae7487a2b9c110b65f3f2ca503e2 (diff) |
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 ;) ).
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 5 | ||||
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index 36bb10ec21f..82002565033 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -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); } diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index ba7c1f556b2..9a64948c05c 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -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 *********************/ |