Author Topic: UE4 Substance Editor saving bug  (Read 124 times)

Hi,

The Save button in the top-left of the substance editor window in the UE4 plugin doesn't work. In fact pressing it breaks things because it prevents the source asset ever being saved. So although the bulk data is updated causing the texture to immediately update in editor, the next time you load the editor the texture will have reverted. You need to add this to FSubstanceEditor.cpp (and add the equivalent header of course):

void FSubstanceEditor::SaveAsset_Execute()
{
   GetGraph()->PrepareOutputsForSave();
   Substance::Helpers::RenderSync(GetGraph()->Instance, true);
   GetGraph()->SaveAllOutputs();
}

Thanks,
Simon

Hi,

The Save button in the top-left of the substance editor window in the UE4 plugin doesn't work. In fact pressing it breaks things because it prevents the source asset ever being saved. So although the bulk data is updated causing the texture to immediately update in editor, the next time you load the editor the texture will have reverted. You need to add this to FSubstanceEditor.cpp (and add the equivalent header of course):

void FSubstanceEditor::SaveAsset_Execute()
{
   GetGraph()->PrepareOutputsForSave();
   Substance::Helpers::RenderSync(GetGraph()->Instance, true);
   GetGraph()->SaveAllOutputs();
}

Thanks,
Simon

Hey @Simon Hobbs ,

Thank you for the info. I'll pass it along to the devs. :)