Skip to content

Commit 675cdff

Browse files
committed
Revert "Fix UInt/Int Condition Reduction (PS4/X1 issue) (#96)"
This reverts commit 84ad80d.
1 parent b551611 commit 675cdff

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

com.unity.visualeffectgraph/Editor/Expressions/VFXExpressionFlow.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ public VFXExpressionCondition()
2222

2323
public VFXExpressionCondition(VFXValueType type, VFXCondition cond, VFXExpression left, VFXExpression right) : base(VFXExpression.Flags.None, new VFXExpression[] { left, right })
2424
{
25-
if (type != left.valueType || type != right.valueType)
26-
throw new InvalidOperationException(string.Format("Unexpected value type in condition expression : {0}/{1} (expected {2})", left.valueType, right.valueType, type));
27-
28-
if (type != VFXValueType.Float && type != VFXValueType.Uint32 && type != VFXValueType.Int32)
29-
throw new NotImplementedException("This type is not handled by condition expression: " + type);
30-
3125
condition = cond;
3226
this.type = type;
3327
}
@@ -92,7 +86,6 @@ protected override VFXExpression Reduce(VFXExpression[] reducedParents)
9286
{
9387
var newExpression = (VFXExpressionCondition)base.Reduce(reducedParents);
9488
newExpression.condition = condition;
95-
newExpression.type = type;
9689
return newExpression;
9790
}
9891

0 commit comments

Comments
 (0)