Bug under WinXP

Anything related to a beta release of JPatch: Bugs, enhancements, general discussion...

Postby dcuny » Thu Jun 22, 2006 12:58 am

Hrm... I seem to have found the problem with JPatch not loading animations. At one point in the recent past, the modelDirectory got set to a file instead of a directory.

The test that AbstractSettings:DefaultCellEditor performs is:
Code: Select all
         } else if (value instanceof File) {
            File file = (File) value;
            JFileChooser fileChooser = new JFileChooser();
//            System.out.println(file + " " + file.isFile() + " " + file.isDirectory());
            if (file.isDirectory()) {
This means that once you've got a file in there, you'll always have a file in there - there's no way to change it. This is obviously a Bad Thing(tm). I'm guessing you should create a specific Directory class instead of depending on the isDirectory method.

I hacked the code to use the DIRECTORIES_ONLY setting in the dialog, and got it to load a directory. Now it load the animation. Oddly enough, the model doesn't appear on the screen, but the bones do. I'm guessing this is the corrupted file bug you had mentioned.

Anyhoo, there's one mystery solved.
Posts: 2902
Joined: Fri May 21, 2004 6:07 am


Return to Beta

Who is online

Users browsing this forum: No registered users and 1 guest