Revision: 16261
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16261
Author:   quorn
Date:     2008-08-26 19:09:17 +0200 (Tue, 26 Aug 2008)

Log Message:
-----------
Fix for text plug-in scripts on 64-bit platforms.

Modified Paths:
--------------
    branches/soc-2008-quorn/release/scripts/textplugin_templates.py

Modified: branches/soc-2008-quorn/release/scripts/textplugin_templates.py
===================================================================
--- branches/soc-2008-quorn/release/scripts/textplugin_templates.py     
2008-08-26 15:35:54 UTC (rev 16260)
+++ branches/soc-2008-quorn/release/scripts/textplugin_templates.py     
2008-08-26 17:09:17 UTC (rev 16261)
@@ -40,6 +40,13 @@
                '\t\n'
                '\tdef __init__(self, ${4:params}):\n'
                '\t\t"""Creates a new ${1}"""\n'
+               '\t\t${5}',
+       'class':
+               'class ${1:name}(${2:parent}):\n'
+               '\t"""${3:docs}"""\n'
+               '\t\n'
+               '\tdef __init__(self, ${4:params}):\n'
+               '\t\t"""Creates a new ${1}"""\n'
                '\t\t${5}'
 }
 
@@ -102,7 +109,8 @@
                        for x, y in points:
                                txt.setCursorPos(y, x)
                                txt.setSelectPos(y, x+len(text))
-                               txt.markSelection(hash(text)+int(id), color, 
Text.TMARK_TEMP | Text.TMARK_EDITALL)
+                               txt.markSelection((hash(text)+int(id)) & 
0xFFFF, color,
+                                               Text.TMARK_TEMP | 
Text.TMARK_EDITALL)
                if first:
                        text, x, y = first
                        txt.setCursorPos(y, x)


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

Reply via email to