Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send to Unreal - Missing textures in blender after pushing asset #756

Open
DaqiHu opened this issue Oct 27, 2024 · 0 comments
Open

Send to Unreal - Missing textures in blender after pushing asset #756

DaqiHu opened this issue Oct 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DaqiHu
Copy link

DaqiHu commented Oct 27, 2024

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:
    1. Create a minimal project by File > New > General in Blender, then add a texture to the cube. Make sure the Automatically add affixes on export and Remove affixes after export are ticked on
    2. Push asset, now you can see the temp files under %LocalAppdata%\Temp\blender\send2ue\data\affix_textures
    3. Save your blender project, and close the editor. You will see that the data folder has been deleted
    4. Reopen your Blender project, now all textures are missing
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant