-
Notifications
You must be signed in to change notification settings - Fork 108
Description
I exported textures with Automatically add affixes on export and Remove affixes after export toggled on. After saving the project file and restarting Blender, those textures are missing and display a purple placeholder in the scene.
I tried to figure out a bit about this bug. Each time send2ue plugin adds affixes to textures it creates a temp folder under %LocalAppdata%\Temp\blender\send2ue\data\affix_textures. All altered textures are placed under this directory. However, when you close the editor, send2ue plugin will clear the data directory since it also contains the temp .fbx file and this behavior is understandable.
But Blender is still referencing the textures inside data\affix_textures folder, and after you restart your project, they are missing. So a possible fix to this bug should store the reference path to origin texture before rename them, and change the reference back after rename or before exiting editor.
- Addon: Send to Unreal
- Step to reproduce:
- Create a minimal project by
File > New > Generalin Blender, then add a texture to the cube. Make sure theAutomatically add affixes on exportandRemove affixes after exportare ticked on - Push asset, now you can see the temp files under
%LocalAppdata%\Temp\blender\send2ue\data\affix_textures - Save your blender project, and close the editor. You will see that the
datafolder has been deleted - Reopen your Blender project, now all textures are missing
- Create a minimal project by
- Error Log:
Path 'C:\Users\hudaq\AppData\Local\Temp\blender\send2ue\data\affix_textures\T_Wall_Brick_01_C.tga' not found(note that this just explains why the missing happens, for more details please read the section above) - OS: Windows 11
- Addon Version: Send to Unreal 2.4.3
- Blender version: Blender 3.6.17
- Unreal version: Unreal 5.4.4