From 8a64275e437a3ad79d05d9af1d90082ae8d798b3 Mon Sep 17 00:00:00 2001 From: Alessandro Borges Date: Tue, 24 Feb 2009 23:03:55 +0000 Subject: 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 --- .../io/state/javax/media/j3d/QuadArrayState.java | 20 +++++++++++--------- 1 file 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 ); } -- cgit v1.2.3