-
Notifications
You must be signed in to change notification settings - Fork 314
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
Texture folder explicit #532
Conversation
check if task is running before to kill it on pre build event
…r when the path is written manually
a warnign message prevent user that texture cannot be exported with multiexport button
Looks like this works well. Thanks! |
Forgot to mention, for future pull requests, try to have a more descriptive title and description, as we'll be pulling from the PRs to populate the Changelog. |
I took a look at the glTF image schema, Suggests that image URIs are arbitrary, I don't see any explicit restriction on only relatively pathing to images in a sub-path of the .gltf location. I assume this functionality is intended for loading web-hosted resources, but we aren't explicitly violating any schema in using arbitrary texture folder paths. @PatrickRyanMS what are your thoughts on this? especially given #685, do we want to make the UI give a warning to the user along the lines of "This is probably not a good idea"? Or do we want to impose this restriction for the sake of sanity? |
@Drigax, I had a long conversation with @bghgary about this to see if he could identify any reason not to allow saving textures to a directory other than one that is a child of the location of the glTF. He could not come up with a reason to disallow it, but did have a few good ideas about the flow.
|
Why not
I completely agree
Yes
I'm sure I made this some months ago if this is not happening it is a bug.
I agree This is definitely the most charged period of the year for me, I really would like to take a look on this next week in my free time, but I don't think I can take a look at this one before. To give some context on the original problem, the texture path out of model folder feature has been made for non-web uses. |
I do see the pop-up warning about the texture path must follow the model path but this blocks you from using the specified path. As I was talking to @bghgary we came to the conclusion that with a relative path there may be a security issue from navigating above the current directory to get to another path, but there has been requests for just this feature from glTF users. To that end, we probably shouldn't block people from doing it, but just warn them in the console that if they make this decision it may not work everywhere. |
For context, here are some discussions about URIs in glTF |
users should be able to choose where to save textures,
GLTFspecification doesn't allow us to save outside on top of the model folder,
I display a warning in case the user does not respect this constraint
the same logic for the GLTF path (absolute/relative) is applied here.
I also made a mini improvement on the task kill function