Description

Local Variable loses value after reference moves file locations. This does not just affect construction scripts, following these steps with a function instead produced the same result. This issue does not affect Non-local variables.

Regression:
This issue occurs in the binary versions 4.14.3, 4.15.3, and 4.16 preview 3

Steps to Reproduce
  1. Create a new project (No template or starter content needed)
  2. Create 3 Folders in the content Folder > Name them "ToMove", "MoveDest", and "BP"
  3. In the BP folder create an Actor Class Blueprint > Name it "Test_BP"
  4. In the ToMove Folder create a new Material > Name it "Test_MAT" > Open Test_MAT
  5. Add a constant3vector > change its color and plug it into the base color pin
  6. Compile & Save Test_MAT > Close Test_MAT
  7. Open Test_BP and open its event graph
  8. Create a new variable > name it "MatArray" > Make its type Material and make it an array
  9. Compile the blueprint > add an array element to MatArray and set the value to Test_MAT
  10. Create a new local variable > name it "LocalMatArray" > Make its type Material and make it an array
  11. Compile the blueprint > add an array element to MatArray and set the value to Test_MAT
  12. Compile & save the blueprint > Close Test_BP > Click FIle > Save All
  13. In the content browser drag the ToMove Folder onto MoveDest and select the "move folder here" option
  14. Fix the redirectories for the ToMove folder
  15. Open Test_BP and select MatArray and check the array elements (Expected result)
  16. Select LocalMatArray and check the array elements
    Results: The array element no longer has a value set
    Expected result: The array element has Test_MAT set as the value

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.14.34.15.34.16
Target Fix4.17
Fix Commit3461550
Main Commit3510073
CreatedMay 23, 2017
ResolvedMay 26, 2017
UpdatedAug 12, 2019
View Jira Issue