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

Incorrect image paths if the blend file is saved after images were imported to ucupaint #192

Closed
passivestar opened this issue Oct 10, 2024 · 3 comments · Fixed by #198
Closed
Labels
bug Something isn't working

Comments

@passivestar
Copy link
Contributor

Paths have the path of the blend file directory + the full path to the texture file in them, so trying to pack them fails

This only happens if the blend file is saved AFTER "Open Material Images to Layer" is used. If the blend file is saved first and "Open Material Images to Layer" is used afterwards it works fine

screen3.mp4
@ucupumar ucupumar added the bug Something isn't working label Oct 10, 2024
@ucupumar
Copy link
Owner

ucupumar commented Oct 10, 2024

Hmm, I can't reproduce this on a Windows machine. Ucupaint always uses a relative path by default, does this kind of thing usually cause problems in Mac?

@passivestar
Copy link
Contributor Author

does this kind of thing usually cause problems in Mac?

not really, no

Ucupaint always uses a relative path by default

what would the path be relative to when the blend file isn't saved? it can only be absolute in that case, right? 🤔

@ucupumar
Copy link
Owner

ucupumar commented Oct 11, 2024

Yeah, it will use the default value when it's impossible to use the relative path, the code is in Layer.py in this line
image
I just used try except like that.

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

Successfully merging a pull request may close this issue.

2 participants