prustogi / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

When texture is missing, texture previews will cause editor to fail #413

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a J3M file in a text editor and reference a non-existing texture
2. Place this J3M inside the jMP assets folder
3. Load the J3M in the material editor

What is the expected output? What do you see instead?
I expect the J3M to be loaded correctly with the missing textures not loaded. 
Instead an exception is thrown:

com.jme3.asset.AssetNotFoundException: AnneDiffuse.jpg (Flipped) (Mipmaped)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:239)
at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:293)
at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:312)
at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:324)
at 
com.jme3.gde.materials.multiview.widgets.TexturePanel.displayPreview(TexturePane
l.java:47)
at 
com.jme3.gde.materials.multiview.widgets.TexturePanel.access$800(TexturePanel.ja
va:29)
at 
com.jme3.gde.materials.multiview.widgets.TexturePanel$5.run(TexturePanel.java:30
9)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContex
t.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by ShadowIs...@gmail.com on 6 Nov 2011 at 2:08

GoogleCodeExporter commented 8 years ago
The issue is the texture preview rather than the material / jme3 itself.

Original comment by normen667 on 6 Nov 2011 at 2:09

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 6 Nov 2011 at 5:23