Skip to content

Conversation

norowachi
Copy link

@norowachi norowachi commented Oct 20, 2025

For some reason textures are not found in blender on Linux (could be a special case but I saw a similar problem on the discord), their path being relative, hence this fixes it by adopting materials' file path.
Needs testing on windows too to ensure that it does not mess up the files there.

@ZingBallyhoo
Copy link
Member

ZingBallyhoo commented Oct 20, 2025

there's definitely a problem here but I don't think this is the correct fix. the paths are supposed to be made absolute automatically when reading...

are you running DataTool on linux or windows? i see the code is only looking for \ here

if "\\" in s and absPaths:
which would make it not normalize paths from a native linux extract.

if you could show the values from texture.filepath it would help prove this

@norowachi
Copy link
Author

Probably not the correct fix then, I agree.

are you running DataTool on linux or windows?

DataTool is ran on linux with dotnet & config modifications, so ig its the native linux path issue

if you could show the values from texture.filepath it would help prove this

textures filepath were in this format: ../Textures/xxx.tif
when logged from

texPath = self.texPaths[texture.GUID]

ZingBallyhoo added a commit that referenced this pull request Oct 21, 2025
@ZingBallyhoo
Copy link
Member

should be working now in 8020aca. let me know if not

@norowachi
Copy link
Author

sweet, that worked!
thanks for everything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants