Second Life Terrain only in file types on first run

Project:Second Life Terrain Import and Export for The Gimp
Component:Code
Category:bug report
Priority:normal
Assigned:Domino Marama
Status:fixed
Description

In gimp 2.6.6 on fedora 11 (i586), your script only works the first time I load gimp.  On second and subsequent loads, the 'Second Life Terrain' is not listed amongst the file types available.  A crude workaround is to 'touch ~/.gimp-2.6/plug-ins/file_slraw.py' before loading gimp.

I have fixed the issue, here's a patch; it may not be directly apply-able, since the pre tag isn't preserving whitespace as I would expect:

--- a/file_slraw.py      2009-08-20 14:31:08.799949945 -0400
+++ b/file_slraw.py    2009-08-21 14:19:20.786770540 -0400
@@ -102,7 +102,7 @@
        "Domino Designs Limited",
        "2008",
        "Second Life Terrain",
-       "GRAY", 
+       "", 
        [ 
                (PF_STRING, "filename", "File Name",""), 
                (PF_STRING, "raw-filename", "raw file name", "")

 

Since RAW files are already grayscale, this change doesn't actually hurt anything, and it clears up both the weird startup message ("file-slraw-load doesn't take the standard save handler parameters") and allows the script to work on successive starts of the gimp.

Thanks for the excellent tools Smile

Comments

Domino Marama's picture

#1

Status:ready to commit» fixed

I've uploaded a new version of the script with this change. And adjusted the html filter so that pre tags will work Smile

Post new comment

Edit issue settings
Note: changing any of these items will update the issue's overall values.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p> <pre>
  • Lines and paragraphs break automatically.
  • Project issue numbers (ex. [#12345]) turn into links automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options