Description

Usage Flags are not correctly marking Materials as dirty when automatically setting and with using a Source Control method.

Compact Repro Steps from User:
"To reproduce:

Create a entrance level that opens when the editor opens. Create secondary level that you can chose to load from the File menu. Create a test material. Just a colour into albedo will do. DO NOT APPLY THIS MATERIAL TO A STATIC OBJECT. Then submit this material into perforce. Once it has been submitted apply the material to a static mesh in the secondary loaded level. It will automatically tick 'used with static lighting' in the test material and ask you to check out the material. DO NOT CHECK OUT THE MATERIAL. Save only the secondary level with the material applied to the static mesh. Close UE4.

Open UE4 again into the entrance level (the one without the test mat applied to a static mesh). Open the test material. Used with static lighting is not ticked. Expected behaviour. Now open the test level (the level with the static mesh with the applied material). Note that in the material 'used with static lighting' gets ticked. However the material does not become marked as changed with a star [Image Removed] ! It should be."

Steps to Reproduce
  1. Open a Blank Project with No Starter Content
  2. Connect to Source Control
  3. Save the Default Map as a Level01
  4. Set Level01 to be the default map in Editor and in Game
  5. Create a New Default Level called Level02
  6. Add a Basic Shape in Level02
  7. Set the Light Source in Level02 to Static
  8. Build Lighting in Level02
  9. Create a New Material called M_Test
  10. In M_Test, assign a Color to Base Color, Save and Exit Material
  11. Check in All Assets from Project to Perforce
  12. Assign the M_Test to the Basic Shape in Level02
  13. Check Out ONLY Level02
  14. Build Lighting for Level02
  15. Save ONLY Level02
  16. Resubmit Level02 ONLY
  17. Close UE4
  18. Open Project Again
  19. Open M_Test, viewing the Usage Flag for USed with Static Lighting
  20. Open Level02

RESULTS: When Level02 is opened the Usage Flag is checked true in Material but the Material is not Marked as Dirty

EXPECTED: Usage Flag Change should mark Material as Dirty

Have Comments or More Details?

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

1
Login to Vote

Won't Fix
CreatedJun 24, 2015
ResolvedAug 18, 2021
UpdatedNov 2, 2021