Description

The Negate blueprint macros (NegateInt, NegateFloat) are returning the original value.

Found in 4.12.5 CL 3039270.

Reproduced in 4.13 CL 3106830 and 4.11.2 CL 2946394.

Steps to Reproduce
  1. Open the editor
  2. Create a new actor blueprint
  3. Create an integer variable and set it to 2
  4. On begin play, add a NegateInt node
  5. Plug your integer variable into the input pin
  6. Print the output of the NegateInt node using a print string

Result: The value 2 will be printed

Expected: The printed value would be negative

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.124.13
Target Fix4.18
Fix Commit3621084
Main Commit3628687
Release Commit3643070
CreatedSep 21, 2016
ResolvedAug 31, 2017
UpdatedFeb 5, 2018
View Jira Issue