From 8e35d91985e6cede162cf1437b9cf7e5bc28fa21 Mon Sep 17 00:00:00 2001 From: Tom Musgrove Date: Sun, 7 Mar 2010 02:38:15 +0000 Subject: [PATCH] ok now all 3 major platforms should work --- release/scripts/op/image.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/release/scripts/op/image.py b/release/scripts/op/image.py index b173aa95eb8..469982c0c5e 100644 --- a/release/scripts/op/image.py +++ b/release/scripts/op/image.py @@ -22,6 +22,7 @@ import bpy 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 @@ class ProjectEdit(bpy.types.Operator): 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