[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15771] branches/soc-2008-quorn/source/ blender/src/drawtext.c: Text plug-ins should only be invoked when syntax highlight is enabled ( since they only update when it is set).

Ian Thompson quornian at googlemail.com
Sat Jul 26 02:25:03 CEST 2008


Revision: 15771
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15771
Author:   quorn
Date:     2008-07-26 02:25:03 +0200 (Sat, 26 Jul 2008)

Log Message:
-----------
Text plug-ins should only be invoked when syntax highlight is enabled (since they only update when it is set). We don't want things popping up when we're just writing text.

Modified Paths:
--------------
    branches/soc-2008-quorn/source/blender/src/drawtext.c

Modified: branches/soc-2008-quorn/source/blender/src/drawtext.c
===================================================================
--- branches/soc-2008-quorn/source/blender/src/drawtext.c	2008-07-25 23:52:16 UTC (rev 15770)
+++ branches/soc-2008-quorn/source/blender/src/drawtext.c	2008-07-26 00:25:03 UTC (rev 15771)
@@ -2608,7 +2608,8 @@
 		}
 	}
 
-	if (event && val) {
+	/* Run text plugin scripts if in syntax mode */
+	if (st->showsyntax && event && val) {
 		if (BPY_menu_do_shortcut(PYMENU_TEXTPLUGIN, event, G.qual)) {
 			do_draw= 1;
 		}





More information about the Bf-blender-cvs mailing list