3d text added with the view align option didnt work.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 1 Oct 2010 12:25:18 +0000 (12:25 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 1 Oct 2010 12:25:18 +0000 (12:25 +0000)
release/scripts/ui/space_info.py

index a98ea4a32199232bbc8122e820d4dc7764a21d41..42cef8da8fc00e85081a1b9dff9ad964ff848aaf 100644 (file)
@@ -246,10 +246,10 @@ class INFO_MT_add(bpy.types.Menu):
         #layout.operator_menu_enum("object.surface_add", "type", text="Surface", icon='OUTLINER_OB_SURFACE')
         layout.menu("INFO_MT_surface_add", icon='OUTLINER_OB_SURFACE')
         layout.operator_menu_enum("object.metaball_add", "type", text="Metaball", icon='OUTLINER_OB_META')
+        layout.operator_context = 'INVOKE_REGION_WIN'
         layout.operator("object.text_add", text="Text", icon='OUTLINER_OB_FONT')
         layout.separator()
 
-        layout.operator_context = 'INVOKE_REGION_WIN'
         layout.menu("INFO_MT_armature_add", icon='OUTLINER_OB_ARMATURE')
         layout.operator("object.add", text="Lattice", icon='OUTLINER_OB_LATTICE').type = 'LATTICE'
         layout.operator("object.add", text="Empty", icon='OUTLINER_OB_EMPTY').type = 'EMPTY'