Mugen87 2 rokov pred
rodič
commit
c2eaaf5b0d
4 zmenil súbory, kde vykonal 50 pridanie a 3 odobranie
  1. 15 1
      build/three.cjs
  2. 15 1
      build/three.js
  3. 0 0
      build/three.min.js
  4. 20 1
      build/three.module.js

+ 15 - 1
build/three.cjs

@@ -31893,7 +31893,7 @@ const _propertyRe = /*@__PURE__*/ /\.(WC+)(?:\[(.+)\])?/.source.replace('WC', _w
 
 const _trackRe = new RegExp('' + '^' + _directoryRe + _nodeRe + _objectRe + _propertyRe + '$');
 
-const _supportedObjectNames = ['material', 'materials', 'bones'];
+const _supportedObjectNames = ['material', 'materials', 'bones', 'map'];
 
 class Composite {
 	constructor(targetGroup, path, optionalParsedPath) {
@@ -32220,6 +32220,20 @@ class PropertyBinding {
 
 					break;
 
+				case 'map':
+					if (!targetObject.material) {
+						console.error('THREE.PropertyBinding: Can not bind to material as node does not have a material.', this);
+						return;
+					}
+
+					if (!targetObject.material.map) {
+						console.error('THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.', this);
+						return;
+					}
+
+					targetObject = targetObject.material.map;
+					break;
+
 				default:
 					if (targetObject[objectName] === undefined) {
 						console.error('THREE.PropertyBinding: Can not bind to objectName of node undefined.', this);

+ 15 - 1
build/three.js

@@ -31895,7 +31895,7 @@
 
 	const _trackRe = new RegExp('' + '^' + _directoryRe + _nodeRe + _objectRe + _propertyRe + '$');
 
-	const _supportedObjectNames = ['material', 'materials', 'bones'];
+	const _supportedObjectNames = ['material', 'materials', 'bones', 'map'];
 
 	class Composite {
 		constructor(targetGroup, path, optionalParsedPath) {
@@ -32222,6 +32222,20 @@
 
 						break;
 
+					case 'map':
+						if (!targetObject.material) {
+							console.error('THREE.PropertyBinding: Can not bind to material as node does not have a material.', this);
+							return;
+						}
+
+						if (!targetObject.material.map) {
+							console.error('THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.', this);
+							return;
+						}
+
+						targetObject = targetObject.material.map;
+						break;
+
 					default:
 						if (targetObject[objectName] === undefined) {
 							console.error('THREE.PropertyBinding: Can not bind to objectName of node undefined.', this);

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
build/three.min.js


+ 20 - 1
build/three.module.js

@@ -44555,7 +44555,7 @@ const _trackRe = new RegExp( ''
 	+ '$'
 );
 
-const _supportedObjectNames = [ 'material', 'materials', 'bones' ];
+const _supportedObjectNames = [ 'material', 'materials', 'bones', 'map' ];
 
 class Composite {
 
@@ -45019,6 +45019,25 @@ class PropertyBinding {
 
 					break;
 
+				case 'map':
+
+					if ( ! targetObject.material ) {
+
+						console.error( 'THREE.PropertyBinding: Can not bind to material as node does not have a material.', this );
+						return;
+
+					}
+
+					if ( ! targetObject.material.map ) {
+
+						console.error( 'THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.', this );
+						return;
+
+					}
+
+					targetObject = targetObject.material.map;
+					break;
+
 				default:
 
 					if ( targetObject[ objectName ] === undefined ) {

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov