diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-21 16:00:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-21 16:00:12 +0300 |
commit | 943007abbf63186a6421281a24a34f953fdb6198 (patch) | |
tree | e760915aa5a5411ad086d799eab815675118e30d /source/blender | |
parent | f71458b90483e33923e706e1b6aa6612dd0fd425 (diff) |
text.makeCurrent() works now, it depends on the script menu type, so will only work from some menu's.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/BPY_interface.c | 1 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Text.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c index e3eb5b25c26..20381c534da 100644 --- a/source/blender/python/BPY_interface.c +++ b/source/blender/python/BPY_interface.c @@ -760,6 +760,7 @@ int BPY_menu_do_python( short menutype, int event ) case PYMENU_HELP: case PYMENU_RENDER: case PYMENU_WIZARDS: + case PYMENU_SCRIPTTEMPLATE: break; default: diff --git a/source/blender/python/api2_2x/Text.c b/source/blender/python/api2_2x/Text.c index b0f82bc8f49..90a14e90976 100644 --- a/source/blender/python/api2_2x/Text.c +++ b/source/blender/python/api2_2x/Text.c @@ -538,7 +538,6 @@ static PyObject *Text_asLines( BPy_Text * self ) static PyObject *Text_makeCurrent( BPy_Text * self ) { - /* SpaceText *st= curarea->spacedata.first; if( !self->text ) @@ -549,7 +548,6 @@ static PyObject *Text_makeCurrent( BPy_Text * self ) Py_RETURN_NONE; st->text = self->text; - */ Py_RETURN_NONE; } |