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

everlaster

Well-known member
Featured Contributor
Messages
652
Reactions
3,321
Points
93
Website
patreon.com
Twitter
everlasterVR
Patreon
everlaster
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.
 
Back
Top Bottom