• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

Won't fix Atom's "uidWithoutSubscenePath" incorrect when some special characters in SubScene atom uid

everlaster

Well-known member
Featured Contributor
Joined
Aug 9, 2020
Messages
696
Solutions
15
Reactions
3,530
Hi, noticed this issue using my plugin Lumination which depends on the return value of uidWithoutSubscenePath being correct. But an incorrect value might cause issues elsewhere that the function is used as well.

In short if the subscene atom has some special characters (at least + and $ seem to be breaking), Atom.atomUidWithoutSubscenePath returns the whole uid. This is probably due to using Regex.Replace and the $ and + characters in the subscene uid are not escaped so the regex is not matched.
 
Last edited:
Yeah - I'll need to make sure I fix it so uids can't have special characters in 2.X or fix it so it does a regular string match. Unfortunately I won't be able to fix for 1.X.
 
Ok, I'll just work around it in the plugin.
 
Back
Top Bottom