File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,10 @@ const InputType = {
9090 /** Any array. */
9191 ARRAY : 0x4000 ,
9292
93- /** Any value type (a type a scratch variable can hold). Equal to NUMBER_OR_NAN | STRING | BOOLEAN | OBJECT | ARRAY */
93+ /**
94+ * Any value type (a type a scratch variable can hold).
95+ * Equal to NUMBER_OR_NAN | STRING | BOOLEAN | OBJECT | ARRAY
96+ */
9497 ANY : 0x7FFF ,
9598
9699 /** An array of values in the form [R, G, B] */
Original file line number Diff line number Diff line change @@ -153,9 +153,8 @@ class ScriptTreeGenerator {
153153 if ( typeof constant === 'object' ) {
154154 if ( Array . isArray ( constant ) ) {
155155 return new IntermediateInput ( InputOpcode . CONSTANT , InputType . ARRAY , { value : constant } ) ;
156- } else {
157- return new IntermediateInput ( InputOpcode . CONSTANT , InputType . OBJECT , { value : constant } ) ;
158156 }
157+ return new IntermediateInput ( InputOpcode . CONSTANT , InputType . OBJECT , { value : constant } ) ;
159158 }
160159
161160 constant += '' ;
You can’t perform that action at this time.
0 commit comments