浏览代码

Fix enum in the switch case (#23540)

Shai Daniel Ghelberg 3 年之前
父节点
当前提交
97557b6a9e
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 5 5
      examples/webgl_lines_fat.html
  2. 5 5
      examples/webgl_lines_fat_wireframe.html

+ 5 - 5
examples/webgl_lines_fat.html

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

+ 5 - 5
examples/webgl_lines_fat_wireframe.html

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