Mr.doob před 1 rokem
rodič
revize
14093e1586
3 změnil soubory, kde provedl 10 přidání a 6 odebrání
  1. 5 3
      build/three.cjs
  2. 5 3
      build/three.module.js
  3. 0 0
      build/three.module.min.js

+ 5 - 3
build/three.cjs

@@ -51423,15 +51423,17 @@ function ascSort( a, b ) {
 
 function intersect( object, raycaster, intersects, recursive ) {
 
-	let stopTraversal = false;
+	let propagate = true;
 
 	if ( object.layers.test( raycaster.layers ) ) {
 
-		stopTraversal = object.raycast( raycaster, intersects );
+		const result = object.raycast( raycaster, intersects );
+
+		if ( result === false ) propagate = false;
 
 	}
 
-	if ( recursive === true && stopTraversal !== true ) {
+	if ( propagate === true && recursive === true ) {
 
 		const children = object.children;
 

+ 5 - 3
build/three.module.js

@@ -51421,15 +51421,17 @@ function ascSort( a, b ) {
 
 function intersect( object, raycaster, intersects, recursive ) {
 
-	let stopTraversal = false;
+	let propagate = true;
 
 	if ( object.layers.test( raycaster.layers ) ) {
 
-		stopTraversal = object.raycast( raycaster, intersects );
+		const result = object.raycast( raycaster, intersects );
+
+		if ( result === false ) propagate = false;
 
 	}
 
-	if ( recursive === true && stopTraversal !== true ) {
+	if ( propagate === true && recursive === true ) {
 
 		const children = object.children;
 

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
build/three.module.min.js


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů