Bläddra i källkod

Bump metadata.version from toJSON functions to 4.6. (#26026)

* Bump metadata.version from toJSON functions to 4.6.

* Update qunit-utils.js

Updated JSON version.

* Update BufferGeometry.tests.js

Update JSON version.

* Update Object3D.tests.js

Update JSON version.

---------

Co-authored-by: Michael Herzog <[email protected]>
Palash Bansal 2 år sedan
förälder
incheckning
df58df8744

+ 1 - 1
examples/jsm/nodes/core/Node.js

@@ -374,7 +374,7 @@ class Node {
 				type,
 				meta,
 				metadata: {
-					version: 4.5,
+					version: 4.6,
 					type: 'Node',
 					generator: 'Node.toJSON'
 				}

+ 1 - 1
src/core/BufferGeometry.js

@@ -855,7 +855,7 @@ class BufferGeometry extends EventDispatcher {
 
 		const data = {
 			metadata: {
-				version: 4.5,
+				version: 4.6,
 				type: 'BufferGeometry',
 				generator: 'BufferGeometry.toJSON'
 			}

+ 1 - 1
src/core/Object3D.js

@@ -693,7 +693,7 @@ class Object3D extends EventDispatcher {
 			};
 
 			output.metadata = {
-				version: 4.5,
+				version: 4.6,
 				type: 'Object',
 				generator: 'Object3D.toJSON'
 			};

+ 1 - 1
src/extras/core/Curve.js

@@ -389,7 +389,7 @@ class Curve {
 
 		const data = {
 			metadata: {
-				version: 4.5,
+				version: 4.6,
 				type: 'Curve',
 				generator: 'Curve.toJSON'
 			}

+ 1 - 1
src/materials/Material.js

@@ -165,7 +165,7 @@ class Material extends EventDispatcher {
 
 		const data = {
 			metadata: {
-				version: 4.5,
+				version: 4.6,
 				type: 'Material',
 				generator: 'Material.toJSON'
 			}

+ 1 - 1
src/objects/Skeleton.js

@@ -249,7 +249,7 @@ class Skeleton {
 
 		const data = {
 			metadata: {
-				version: 4.5,
+				version: 4.6,
 				type: 'Skeleton',
 				generator: 'Skeleton.toJSON'
 			},

+ 1 - 1
src/textures/Texture.js

@@ -169,7 +169,7 @@ class Texture extends EventDispatcher {
 		const output = {
 
 			metadata: {
-				version: 4.5,
+				version: 4.6,
 				type: 'Texture',
 				generator: 'Texture.toJSON'
 			},

+ 1 - 1
test/unit/src/core/BufferGeometry.tests.js

@@ -646,7 +646,7 @@ export default QUnit.module( 'Core', () => {
 			let j = a.toJSON();
 			const gold = {
 				'metadata': {
-					'version': 4.5,
+					'version': 4.6,
 					'type': 'BufferGeometry',
 					'generator': 'BufferGeometry.toJSON'
 				},

+ 1 - 1
test/unit/src/core/Object3D.tests.js

@@ -1270,7 +1270,7 @@ export default QUnit.module( 'Core', () => {
 
 			const gold = {
 				'metadata': {
-					'version': 4.5,
+					'version': 4.6,
 					'type': 'Object',
 					'generator': 'Object3D.toJSON'
 				},

+ 2 - 2
test/unit/utils/qunit-utils.js

@@ -121,7 +121,7 @@ function getDifferingProp( geometryA, geometryB ) {
 // Compare json file with its source geometry.
 function checkGeometryJsonWriting( geom, json ) {
 
-	QUnit.assert.equal( json.metadata.version, '4.5', 'check metadata version' );
+	QUnit.assert.equal( json.metadata.version, '4.6', 'check metadata version' );
 	QUnit.assert.equalKey( geom, json, 'type' );
 	QUnit.assert.equalKey( geom, json, 'uuid' );
 	QUnit.assert.equal( json.id, undefined, 'should not persist id' );
@@ -270,7 +270,7 @@ function checkLightCopyClone( assert, light ) {
 // Compare json file with its source Light.
 function checkLightJsonWriting( assert, light, json ) {
 
-	assert.equal( json.metadata.version, '4.5', 'check metadata version' );
+	assert.equal( json.metadata.version, '4.6', 'check metadata version' );
 
 	const object = json.object;
 	assert.equalKey( light, object, 'type' );