diff options
author | Ken Mc Neill <[email protected]> | 2009-12-13 21:56:05 +0000 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2011-12-31 15:04:49 -0800 |
commit | e6292ad2b0901ee4e09152d664bd7abd60ba746a (patch) | |
tree | 34fff97f0127b0342460652349475e413383fd9e | |
parent | 8a64275e437a3ad79d05d9af1d90082ae8d798b3 (diff) |
j3dutils: cherry-pick fix from svn trunk issue 639
Issue number: 639
Obtained from:
Submitted by: mcneillk
Reviewed by:
git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/trunk@197 9497e636-51bd-65ba-982d-a4982e1767a5
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileMaterials.java | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileMaterials.java b/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileMaterials.java index 1c2dc93..43b39e0 100644 --- a/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileMaterials.java +++ b/src/classes/share/com/sun/j3d/loaders/objectfile/ObjectFileMaterials.java @@ -44,39 +44,34 @@ package com.sun.j3d.loaders.objectfile; -import javax.media.j3d.Appearance; -import javax.media.j3d.Material; -import javax.media.j3d.Shape3D; -import javax.vecmath.Color3f; -import com.sun.j3d.loaders.ParsingErrorException; -import com.sun.j3d.loaders.IncorrectFormatException; +import java.awt.Image; +import java.awt.image.BufferedImage; +import java.awt.image.ImageObserver; +import java.io.BufferedInputStream; +import java.io.BufferedReader; +import java.io.FileInputStream; import java.io.FileNotFoundException; -import java.io.StringReader; -import java.io.Reader; import java.io.FileReader; -import java.io.BufferedReader; -import java.io.BufferedInputStream; -import java.io.InputStreamReader; import java.io.IOException; -import java.io.FileInputStream; -import java.util.HashMap; -import com.sun.j3d.loaders.objectfile.DefaultMaterials; -import java.net.URL; +import java.io.InputStreamReader; +import java.io.Reader; +import java.io.StringReader; import java.net.MalformedURLException; -import java.awt.Toolkit; -import java.awt.Image; -import java.awt.image.BufferedImage; -import javax.media.j3d.Texture2D; -import java.awt.image.ImageObserver; -import java.awt.image.PixelGrabber; -import java.awt.image.DataBufferInt; -import javax.media.j3d.ImageComponent2D; -import javax.media.j3d.TexCoordGeneration; -import java.security.AccessController; -import java.security.PrivilegedAction; +import java.net.URL; +import java.util.HashMap; + +import javax.media.j3d.Appearance; import javax.media.j3d.GeometryArray; -import com.sun.j3d.utils.image.TextureLoader; +import javax.media.j3d.Material; +import javax.media.j3d.Shape3D; +import javax.media.j3d.TexCoordGeneration; +import javax.media.j3d.Texture2D; import javax.media.j3d.TransparencyAttributes; +import javax.vecmath.Color3f; + +import com.sun.j3d.loaders.ParsingErrorException; +import com.sun.j3d.utils.image.ImageException; +import com.sun.j3d.utils.image.TextureLoader; class ObjectFileMaterials implements ImageObserver { @@ -309,6 +304,9 @@ class ObjectFileMaterials implements ImageObserver { } catch (IOException e) { // Texture won't get loaded if file can't be found + } // mcneillk: issue 639 + catch (ImageException iex) { + // Texture won't get loaded if other problem } } } |