mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-03-06 22:04:55 +08:00
Fix incorrect pathnames for manual apply mode
This commit is contained in:
parent
eec44171b4
commit
085e296d4c
@ -49,13 +49,14 @@ namespace net.fushizen.modular_avatar.core.editor
|
|||||||
{
|
{
|
||||||
var avatar = Selection.activeGameObject;
|
var avatar = Selection.activeGameObject;
|
||||||
if (avatar == null || avatar.GetComponent<VRCAvatarDescriptor>() == null) return;
|
if (avatar == null || avatar.GetComponent<VRCAvatarDescriptor>() == null) return;
|
||||||
var savePath = "Assets/ModularAvatarOutput/" + avatar.name;
|
var basePath = "Assets/ModularAvatarOutput/" + avatar.name;
|
||||||
|
var savePath = basePath;
|
||||||
|
|
||||||
int extension = 0;
|
int extension = 0;
|
||||||
|
|
||||||
while (File.Exists(savePath) || Directory.Exists(savePath))
|
while (File.Exists(savePath) || Directory.Exists(savePath))
|
||||||
{
|
{
|
||||||
savePath = savePath + " " + (++extension);
|
savePath = basePath + " " + (++extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user