mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-24 21:38:59 +08:00
Support referencing the basePath object in relative mode (#21)
This commit is contained in:
parent
79be8774a9
commit
ba33ea81b1
@ -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…
x
Reference in New Issue
Block a user