This repository was archived by the owner on Sep 20, 2024. It is now read-only.
Blender: Fix long names for instances#6070
Merged
simonebarbieri merged 7 commits intodevelopfrom Jan 12, 2024
Merged
Conversation
Contributor
|
Task linked: OP-7597 Blender: Avalon Containers bug |
Member
Member
|
Hmm I cant publish due to WIN file system path being too long I guess?? Gives me following error on |
iLLiCiTiT
reviewed
Dec 21, 2023
iLLiCiTiT
reviewed
Dec 21, 2023
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Member
LiborBatek
approved these changes
Jan 12, 2024
Member
LiborBatek
left a comment
There was a problem hiding this comment.
Didnt experience any issues neither in legacy OP nor AYON mode.
Seems working as expected in both cases.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Changelog Description
Changed naming for instances to use only final part of the
folderPath.Additional info
With the changes from #5817, it could happen that the instance names were too long for Blender, that supports up to 63 characters long names. This PR changes the naming to be only the final part of
folderPath, to have names similar to before #5817. The PR also include an error message in case a name for an instance or a container becomes too long.Testing notes:
Creating and loading assets should work as before. Long names (more than 63 characters) will raise an error now. New instances will not have the whole folder path as name, but the instances that have should work fine, if the name is shorter than 63 characters.