SourceForge has been redesigned. Learn more.

#452 Some textures and materials appear not to save (New Uniform Material in object properties)

Luke S

I did the hourglass tutorial but I can't get the uniform texture and material for the glass part to save. The file saved correctly before that point in the tutorial, but when I try to save after doing that bit it gives me a "scene has been modified" warning and when I click save it keeps giving me the warning every time I try to exit the program. If I choose don't save instead it obviously doesn't save the changes I've just made (i.e. the glass stuff). Perhaps I missed something in the tutorial. I am running Windows 7 SP 1 64-bit, though I tried to run AOI in XP SP3 compatibility mode but this did not fix the problem; neither did re-downloading/re-installing java. I've attached the file if that helps.

In addition, the .tmp file for this scene is 0 bytes according to Windows explorer. When opened with AOI, it's just a blank file (as if I had just started AOI without opening anything).

Please tell me if I have not provided enough info to solve the problem. My email:


  • Warren

    Warren - 2012-08-04
    • priority: 5 --> 6
  • Luke S

    Luke S - 2013-04-10

    Well, the file looks OK to this point.

    Could you start AOI from a command line, and then see if any errors are thrown?

    AOI works on my system with Win 7 64 bit, and 64 bit java.

  • Nik Trevallyn-Jones

    I have started a thread in the forums for this, because we will need more discussion on this before we can establish whether this is a bug, or some external issue, and the forum thread will be seen by many more users, which will probably help in solving the issue. :)

    Let's continue discussing this in the forum.


  • Carharttguy

    Carharttguy - 2014-12-10

    I approve this bug, exactly the same issue.

  • Luke S

    Luke S - 2014-12-21

    I've managed to track this issue down, and have a fix. There were actually two related bugs here, and the fix for one is a hack that I am not happy about. I'm attaching an updated

    The changes start at line 512, go through 560 (as numbered in the changed file). There are explanatory comments, and a few debug lines to illustrate the need for the hacky part. The else if block starting 526 seems to execute on every run, even when the condition is not met.

    Bumping priority, and adding milestone, as I think this one can make 3.0.1

  • Luke S

    Luke S - 2014-12-21
    • labels: --> Fix attached.
    • summary: Some textures and materials appear not to save --> Some textures and materials appear not to save (New Uniform Material in object properties)
    • status: open --> pending
    • assigned_to: Luke S
    • Group: -->
    • Priority: 6 --> 2
  • Luke S

    Luke S - 2014-12-22

    Akk! Scratch the "Two related bugs" My second bug, and the "Hack" fix, was due to my typo. Semicolon on line 523, prematurely ending the if-block. I'll leave the mistake above as a lesson to those tempted to program around midnight on not enough sleep;)

    Here is the (clean) fixed version. I believe that this is now ready to be merged to master.

  • Peter Eastman

    Peter Eastman - 2014-12-22

    The fix is merged. Thanks!

  • Luke S

    Luke S - 2014-12-23
    • status: pending --> closed-fixed
  • Luke S

    Luke S - 2014-12-23

    Fixed r401, expected release v3.0.1


Log in to post a comment.