소스 검색

[shgraph] Reverted alpha upcast for floats

Clément Espeute 1 년 전
부모
커밋
ca74443c48
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 7
      hrt/shgraph/NodeGenContext.hx

+ 1 - 7
hrt/shgraph/NodeGenContext.hx

@@ -194,13 +194,7 @@ class NodeGenContext {
 			var args = [];
 			if (sourceSize == 1) {
 				for (i in 0...targetSize) {
-					if (i == 3) {
-						// Set alpha to 1.0 by default on upcasts casts
-						args.push(makeFloat(1.0));
-					}
-					else {
-						args.push(sourceExpr);
-					}
+					args.push(sourceExpr);
 				}
 			}
 			else {