coderespawn / dungeon-architect-ue4-issues

6 stars 0 forks source link

Actor Template Theme Node values get lost on BP recompile #40

Open coderespawn opened 1 year ago

coderespawn commented 1 year ago

Jenkins Gage#2391 https://discord.com/channels/233207002463993857/234155775101108226/1080109835871342717

Steps to reproduce

  1. Create a new project and clone the Candy sample from Launch Pad 2.1 Create a new actor blueprint, let's name it BP_Cube 2.2 Create a new variable inside BP_Cube, let's say FVector TestScale3D with default value (1.0f, 1.0f, 1.0f) 2.3 Do anything with TestScale3D like scaling the actor in construction script 3.1 Open the D_Candy_v2 theme asset, and drop the BP_Cube to it 3.2 Connect the Ground marker to the BP_Cube 3.3 Modify the TestScale3D of BP_Cube node->Actor Template->Default->TestScale3D. Let's set TestScale3D to (5.0f, 5.0f, 5.0f) Everything works fine as expected now. All the cubes are scaled by (5.0f, 5.0f, 5.0f) 3.4 Save and close the theme asset D_Candy_v2
  2. Open BP_Cube, add a new variable bool bAnything, save and compile
  3. Open the D_Candy_v2 again, you will see all the cubes are reverted to the default scale. If you check the "BP_Cube node->Actor Template->Default->TestScale3D" you will notice the value is set to default (1.0f, 1.0f, 1.0f) But this is unexpected, it should keep (5.0f, 5.0f, 5.0f)
  4. Don't save the theme asset D_Candy_v2 just close everything and restart the engine, you will find the TestScale3D is set to (5.0f, 5.0f, 5.0f) again??

Engine Version 4.26.2 Plugin Version 2.27.1