[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42730] trunk/blender: Fix #29655: keyboard shortcuts missing from text editor text menu, and removed

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Dec 19 15:23:20 CET 2011


Revision: 42730
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42730
Author:   blendix
Date:     2011-12-19 14:23:19 +0000 (Mon, 19 Dec 2011)
Log Message:
-----------
Fix #29655: keyboard shortcuts missing from text editor text menu, and removed
confirmation popup for creating new text datablock.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_text.py
    trunk/blender/source/blender/editors/space_text/text_ops.c

Modified: trunk/blender/release/scripts/startup/bl_ui/space_text.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_text.py	2011-12-19 14:23:08 UTC (rev 42729)
+++ trunk/blender/release/scripts/startup/bl_ui/space_text.py	2011-12-19 14:23:19 UTC (rev 42730)
@@ -174,9 +174,7 @@
         st = context.space_data
         text = st.text
 
-        layout.operator_context = 'EXEC_AREA'
         layout.operator("text.new")
-        layout.operator_context = 'INVOKE_AREA'
         layout.operator("text.open")
 
         if text:

Modified: trunk/blender/source/blender/editors/space_text/text_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_ops.c	2011-12-19 14:23:08 UTC (rev 42729)
+++ trunk/blender/source/blender/editors/space_text/text_ops.c	2011-12-19 14:23:19 UTC (rev 42730)
@@ -195,7 +195,6 @@
 	ot->description= "Create a new text data block";
 	
 	/* api callbacks */
-	ot->invoke= WM_operator_confirm;
 	ot->exec= text_new_exec;
 	ot->poll= text_new_poll;
 	




More information about the Bf-blender-cvs mailing list