Pārlūkot izejas kodu

Fix enum in the switch case (#23540)

Shai Daniel Ghelberg 3 gadi atpakaļ
vecāks
revīzija
97557b6a9e

+ 5 - 5
examples/webgl_lines_fat.html

@@ -230,14 +230,14 @@
 
 
 					switch ( val ) {
 					switch ( val ) {
 
 
-						case '0':
+						case 0:
 							line.visible = true;
 							line.visible = true;
 
 
 							line1.visible = false;
 							line1.visible = false;
 
 
 							break;
 							break;
 
 
-						case '1':
+						case 1:
 							line.visible = false;
 							line.visible = false;
 
 
 							line1.visible = true;
 							line1.visible = true;
@@ -285,7 +285,7 @@
 
 
 					switch ( val ) {
 					switch ( val ) {
 
 
-						case '0':
+						case 0:
 							matLine.dashSize = 2;
 							matLine.dashSize = 2;
 							matLine.gapSize = 1;
 							matLine.gapSize = 1;
 
 
@@ -294,7 +294,7 @@
 
 
 							break;
 							break;
 
 
-						case '1':
+						case 1:
 							matLine.dashSize = 1;
 							matLine.dashSize = 1;
 							matLine.gapSize = 1;
 							matLine.gapSize = 1;
 
 
@@ -303,7 +303,7 @@
 
 
 							break;
 							break;
 
 
-						case '2':
+						case 2:
 							matLine.dashSize = 1;
 							matLine.dashSize = 1;
 							matLine.gapSize = 2;
 							matLine.gapSize = 2;
 
 

+ 5 - 5
examples/webgl_lines_fat_wireframe.html

@@ -191,14 +191,14 @@
 
 
 					switch ( val ) {
 					switch ( val ) {
 
 
-						case '0':
+						case 0:
 							wireframe.visible = true;
 							wireframe.visible = true;
 
 
 							wireframe1.visible = false;
 							wireframe1.visible = false;
 
 
 							break;
 							break;
 
 
-						case '1':
+						case 1:
 							wireframe.visible = false;
 							wireframe.visible = false;
 
 
 							wireframe1.visible = true;
 							wireframe1.visible = true;
@@ -240,7 +240,7 @@
 
 
 					switch ( val ) {
 					switch ( val ) {
 
 
-						case '0':
+						case 0:
 							matLine.dashSize = 2;
 							matLine.dashSize = 2;
 							matLine.gapSize = 1;
 							matLine.gapSize = 1;
 
 
@@ -249,7 +249,7 @@
 
 
 							break;
 							break;
 
 
-						case '1':
+						case 1:
 							matLine.dashSize = 1;
 							matLine.dashSize = 1;
 							matLine.gapSize = 1;
 							matLine.gapSize = 1;
 
 
@@ -258,7 +258,7 @@
 
 
 							break;
 							break;
 
 
-						case '2':
+						case 2:
 							matLine.dashSize = 1;
 							matLine.dashSize = 1;
 							matLine.gapSize = 2;
 							matLine.gapSize = 2;