mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-02-02 03:32:56 +08:00
Support referencing the basePath object in relative mode (#21)
This commit is contained in:
parent
108df78f06
commit
f6a915c2b3
@ -125,7 +125,13 @@ namespace net.fushizen.modular_avatar.core.editor
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return PathMappings.MapPath(basePath + binding.path, binding.type == typeof(Transform));
|
var newPath = binding.path == "" ? basePath : basePath + binding.path;
|
||||||
|
if (newPath.EndsWith("/"))
|
||||||
|
{
|
||||||
|
newPath = newPath.Substring(0, newPath.Length - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return PathMappings.MapPath(newPath, binding.type == typeof(Transform));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user