Description

We currently overlook local variables being collapsed into new function and/or macro graphs, where they are no longer in scope.

Current workaround: Manually delete local variable "get" and "set" nodes from the new function and/or macro graph.

Steps to Reproduce
  1. Launch QAGame editor.
  2. Create a new Actor-based Blueprint class.
  3. Add a new function.
  4. Add a local variable.
  5. Drag the local variable into the graph and choose "Set."
  6. Wire the "Set" node to the Function Entry node.
  7. Compile and save, note that there are no errors.
  8. Right-click on the "Set" node and choose "Collapse to Function."
  9. Compile, and note there is now a compile error:
    [2017.04.21-21.13.12:100][416]LogBlueprint:Error: [Compiler NewBlueprint] Error The property associated with  New Local Var 0  could not be found
    
  10. Undo the previous operation.
  11. Right-click on the "Set" node again, and choose "Collapse to Macro."
  12. Compile, and note that once again there are no errors.
  13. Create another new function.
  14. Drag the new macro into the new function graph and wire it to the Function Entry node.
  15. Compile, and note that the same error as above once again exists.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-44270 in the post.

0
Login to Vote

Won't Fix
CreatedApr 21, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021
View Jira Issue