Explorar el Código

SkyMesh: Add isSkyMesh flag and deprecate isSky (#32263)

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
Kirill Osipov hace 1 mes
padre
commit
47e7eb75c1
Se han modificado 1 ficheros con 11 adiciones y 1 borrados
  1. 11 1
      examples/jsm/objects/SkyMesh.js

+ 11 - 1
examples/jsm/objects/SkyMesh.js

@@ -88,8 +88,18 @@ class SkyMesh extends Mesh {
 		 * @type {boolean}
 		 * @type {boolean}
 		 * @readonly
 		 * @readonly
 		 * @default true
 		 * @default true
+		 * @deprecated Use isSkyMesh instead.
 		 */
 		 */
-		this.isSky = true;
+		this.isSky = true; // @deprecated, r182
+
+		/**
+		 * This flag can be used for type testing.
+		 *
+		 * @type {boolean}
+		 * @readonly
+		 * @default true
+		 */
+		this.isSkyMesh = true;
 
 
 		// Varyings
 		// Varyings
 
 

粤ICP备19079148号