diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-08-13 02:12:24 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-08-13 02:12:24 +0400 |
commit | 5ade00459296bc397cd476322d4b7441bb52379e (patch) | |
tree | 620deb4544584ca3ad2a9bfc7e6598819f10d3ef /source/blender/src/drawtext.c | |
parent | 65d0ef3e746dd43e1f5480cd70434d34cecb6459 (diff) |
Added a button to allow plug-ins to be enabled/disabled for each text space. It was confusing using the syntax button for both.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r-- | source/blender/src/drawtext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index 8647c3dde58..f717e19ecea 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -2250,7 +2250,7 @@ static short do_texttools(SpaceText *st, char ascii, unsigned short evnt, short if (!texttool_text_is_active(st->text)) return 0; if (!st->text || st->text->id.lib) return 0; - if (st->showsyntax && texttool_text_is_active(st->text)) { + if (st->doplugins && texttool_text_is_active(st->text)) { if (texttool_suggest_first()) tools |= TOOL_SUGG_LIST; if (texttool_docs_get()) tools |= TOOL_DOCUMENT; } @@ -2646,7 +2646,7 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt) return; } - if (st->showsyntax && do_texttools(st, ascii, event, val)) return; + if (st->doplugins && do_texttools(st, ascii, event, val)) return; if (do_markers(st, ascii, event, val)) return; if (event==UI_BUT_EVENT) { @@ -3170,8 +3170,8 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt) } } - /* Run text plugin scripts if in syntax mode */ - if (st->showsyntax && event && val) { + /* Run text plugin scripts if enabled */ + if (st->doplugins && event && val) { if (BPY_menu_do_shortcut(PYMENU_TEXTPLUGIN, event, G.qual)) { do_draw= 1; } |