[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27307] trunk/blender/release/scripts/op/ image.py: ok now all 3 major platforms should work
Tom Musgrove
LetterRip at gmail.com
Sun Mar 7 03:38:17 CET 2010
Revision: 27307
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27307
Author: letterrip
Date: 2010-03-07 03:38:15 +0100 (Sun, 07 Mar 2010)
Log Message:
-----------
ok now all 3 major platforms should work
Modified Paths:
--------------
trunk/blender/release/scripts/op/image.py
Modified: trunk/blender/release/scripts/op/image.py
===================================================================
--- trunk/blender/release/scripts/op/image.py 2010-03-07 02:14:52 UTC (rev 27306)
+++ trunk/blender/release/scripts/op/image.py 2010-03-07 02:38:15 UTC (rev 27307)
@@ -22,6 +22,7 @@
import sys as py_sys
platform = py_sys.platform
+
class SaveDirty(bpy.types.Operator):
'''Select object matching a naming pattern'''
bl_idname = "image.save_dirty"
@@ -55,8 +56,13 @@
import subprocess
EXT = "tga" # until we have a way to save as another format!
- EDITOR = "gimp" # until we have a way to set a default image edior
-
+ if platform == 'win32':
+ EDITOR = "C:\\Program Files\\GIMP-2.7\\bin\\gimp-2.7.exe"
+ elif platform == 'darwin':
+ EDITOR = "open"
+ else:
+ EDITOR = "gimp" # until we have a way to set a default image edior
+
for image in bpy.data.images:
image.tag = True
More information about the Bf-blender-cvs
mailing list