Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Thompson <quornian@googlemail.com>2008-08-26 21:09:17 +0400
committerIan Thompson <quornian@googlemail.com>2008-08-26 21:09:17 +0400
commit0257f500e788e62f10db147c476b7847638fa450 (patch)
tree71f7a97f0facb947a22ea1b028d3aca8088248b4
parentbf0803c0c24a3db25b60b1114b30a08ee45d9d1f (diff)
Fix for text plug-in scripts on 64-bit platforms.
-rw-r--r--release/scripts/textplugin_templates.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/release/scripts/textplugin_templates.py b/release/scripts/textplugin_templates.py
index 25dadf4de54..8f949563ac0 100644
--- a/release/scripts/textplugin_templates.py
+++ b/release/scripts/textplugin_templates.py
@@ -40,6 +40,13 @@ templates = {
'\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 @@ def main():
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)