Revision: 23395
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23395
Author:   campbellbarton
Date:     2009-09-21 15:43:11 +0200 (Mon, 21 Sep 2009)

Log Message:
-----------
autocomplete poll function wasn't working, added autocomplete in the console 
header
operator docstrings with newlines and tabs show up as junk in tooltips so just 
use a single line.

Modified Paths:
--------------
    trunk/blender/release/io/export_ply.py
    trunk/blender/release/ui/space_console.py

Modified: trunk/blender/release/io/export_ply.py
===================================================================
--- trunk/blender/release/io/export_ply.py      2009-09-21 13:23:47 UTC (rev 
23394)
+++ trunk/blender/release/io/export_ply.py      2009-09-21 13:43:11 UTC (rev 
23395)
@@ -232,9 +232,7 @@
        """
 
 class EXPORT_OT_ply(bpy.types.Operator):
-       '''
-       Operator documentatuon text, will be used for the operator tooltip and 
python docs.
-       '''
+       '''Export a single object as a stanford PLY with normals, colours and 
texture coordinates.'''
        __idname__ = "export.ply"
        __label__ = "Export PLY"
        

Modified: trunk/blender/release/ui/space_console.py
===================================================================
--- trunk/blender/release/ui/space_console.py   2009-09-21 13:23:47 UTC (rev 
23394)
+++ trunk/blender/release/ui/space_console.py   2009-09-21 13:43:11 UTC (rev 
23395)
@@ -37,6 +37,9 @@
                        row = layout.row()
                        row.enabled = sc.show_report_operator
                        row.itemO("console.report_replay")
+               else:
+                       row = layout.row(align=True)
+                       row.itemO("console.autocomplete", text="Autocomplete")
 
 class CONSOLE_MT_console(bpy.types.Menu):
        __space_type__ = 'CONSOLE'
@@ -107,9 +110,7 @@
        return namespace, console, stdout, stderr
 
 class CONSOLE_OT_exec(bpy.types.Operator):
-       '''
-       Execute the current console line as a python expression.
-       '''
+       '''Execute the current console line as a python expression.'''
        __idname__ = "console.execute"
        __label__ = "Console Execute"
        __register__ = False
@@ -384,15 +385,13 @@
 
 
 class CONSOLE_OT_autocomplete(bpy.types.Operator):
-       '''
-       Evaluate the namespace up until the cursor and give a list of options 
or complete the name if there is only one.
-       '''
+       '''Evaluate the namespace up until the cursor and give a list of 
options or complete the name if there is only one.'''
        __idname__ = "console.autocomplete"
        __label__ = "Console Autocomplete"
        __register__ = False
        
        def poll(self, context):
-               return context.space_data.type == 'PYTHON'
+               return context.space_data.console_type == 'PYTHON'
        
        def execute(self, context):
                


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to