[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45064] trunk/blender/source/blender/ editors: Quick fix to broken text editor/console from r45051.

Bastien Montagne montagne29 at wanadoo.fr
Wed Mar 21 16:52:10 CET 2012


Ack, forgot the tracker… Fix [#30626] r45051 Breaks text editor.

Le 21/03/2012 16:51, Bastien Montagne a écrit :
> Revision: 45064
>            http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45064
> Author:   mont29
> Date:     2012-03-21 15:51:15 +0000 (Wed, 21 Mar 2012)
> Log Message:
> -----------
> 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 ;) ).
>
> Revision Links:
> --------------
>      http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45051
>
> Modified Paths:
> --------------
>      trunk/blender/source/blender/editors/space_console/console_ops.c
>      trunk/blender/source/blender/editors/space_text/text_ops.c
>
> Modified: trunk/blender/source/blender/editors/space_console/console_ops.c
> ===================================================================
> --- trunk/blender/source/blender/editors/space_console/console_ops.c	2012-03-21 14:19:45 UTC (rev 45063)
> +++ trunk/blender/source/blender/editors/space_console/console_ops.c	2012-03-21 15:51:15 UTC (rev 45064)
> @@ -411,6 +411,8 @@
>
>   void CONSOLE_OT_insert(wmOperatorType *ot)
>   {
> +	PropertyRNA *prop;
> +
>   	/* identifiers */
>   	ot->name= "Insert";
>   	ot->description= "Insert text at cursor position";
> @@ -422,7 +424,8 @@
>   	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);
>   }
>
>
>
> Modified: trunk/blender/source/blender/editors/space_text/text_ops.c
> ===================================================================
> --- trunk/blender/source/blender/editors/space_text/text_ops.c	2012-03-21 14:19:45 UTC (rev 45063)
> +++ trunk/blender/source/blender/editors/space_text/text_ops.c	2012-03-21 15:51:15 UTC (rev 45064)
> @@ -2875,6 +2875,8 @@
>
>   void TEXT_OT_insert(wmOperatorType *ot)
>   {
> +	PropertyRNA *prop;
> +
>   	/* identifiers */
>   	ot->name= "Insert";
>   	ot->idname= "TEXT_OT_insert";
> @@ -2886,7 +2888,8 @@
>   	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 *********************/
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>



More information about the Bf-committers mailing list