The AND node always calculates all inputs, even if the first input fails as False.
Probably related to [Link Removed] (currently unresolved, but a Select node-specific fix is mentioned in the comments)
Reproduced in 4.8.3 binary, 4.9.2 binary, 4.10 Preview 4 binary, and Main (CL 2754531)
1. Open any project
2. Create a new Actor Blueprint
3. Add a Divide node
6. Set the Divide node to 1 / 0
7. Attach the Divide node to a > node
8. Attach the > node to an AND node's bottom input
9. Set the AND node's top input to False
10. Run the AND node into a Branch off Begin Play
11. Drop the BP into the level
12. PIE
Result:
A Divide by Zero warning appears in the log ("LogScript:Warning: Divide by zero: Divide_FloatFloat")
Expected:
The second input on the AND node is not calculated if the first fails with False
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.8.3, 4.9.2, 4.10, 4.11 |
Created | Nov 5, 2015 |
---|---|
Resolved | Mar 23, 2018 |
Updated | Jun 23, 2018 |