|
@@ -1246,7 +1246,7 @@ class NodeBuilder {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( fromTypeLength === 1 && toTypeLength > 1 && fromType[ 0 ] !== toType[ 0 ] ) { // fromType is float-like
|
|
|
+ if ( fromTypeLength === 1 && toTypeLength > 1 && fromType !== this.getComponentType( toType ) ) { // fromType is float-like
|
|
|
|
|
|
// convert a number value to vector type, e.g:
|
|
|
// vec3( 1u ) -> vec3( float( 1u ) )
|