summaryrefslogtreecommitdiffstats
path: root/src/classes/share/com/sun/j3d
diff options
context:
space:
mode:
authorAlessandro Borges <[email protected]>2009-02-24 23:03:55 +0000
committerAlessandro Borges <[email protected]>2009-02-24 23:03:55 +0000
commit8a64275e437a3ad79d05d9af1d90082ae8d798b3 (patch)
treed20bb0cf580902c2303d16c611e9f9a6369c340d /src/classes/share/com/sun/j3d
parent71f7df4081066e331eaf9076caa47226b7bce5cc (diff)
Issue number: 599
Obtained from: mcneillk Submitted by: mcneilkk Reviewed by: aces Issue : QuadArray with textcoord sets and maps fails to restore from saved scenegraph git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/branches/dev-1_6@196 9497e636-51bd-65ba-982d-a4982e1767a5
Diffstat (limited to 'src/classes/share/com/sun/j3d')
-rw-r--r--src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java
index 46aef2a..d412977 100644
--- a/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java
+++ b/src/classes/share/com/sun/j3d/utils/scenegraph/io/state/javax/media/j3d/QuadArrayState.java
@@ -44,13 +44,9 @@
package com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d;
-import java.io.IOException;
-import java.io.ByteArrayOutputStream;
-import java.io.ByteArrayInputStream;
import java.io.DataInput;
import java.io.DataOutput;
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
+import java.io.IOException;
import javax.media.j3d.QuadArray;
import javax.media.j3d.SceneGraphObject;
import com.sun.j3d.utils.scenegraph.io.retained.Controller;
@@ -72,14 +68,20 @@ public class QuadArrayState extends GeometryArrayState {
}
public SceneGraphObject createNode( Class j3dClass ) {
- return super.createNode( j3dClass, new Class[] { Integer.TYPE,
- Integer.TYPE },
+ return createNode( j3dClass, new Class[] {
+ Integer.TYPE,
+ Integer.TYPE,
+ Integer.TYPE,
+ texCoordSetMap.getClass()
+ },
new Object[] { new Integer( vertexCount ),
- new Integer( vertexFormat ) });
+ new Integer( vertexFormat ),
+ new Integer( texCoordSetCount ),
+ texCoordSetMap } );
}
protected javax.media.j3d.SceneGraphObject createNode() {
- return new QuadArray( vertexCount, vertexFormat );
+ return new QuadArray(vertexCount, vertexFormat, texCoordSetCount, texCoordSetMap );
}