From 33ca7d9704940116f9a993e18b3ce6d2bd7546d6 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 13 Aug 2020 12:04:44 +0900 Subject: [PATCH] =?UTF-8?q?Prefab=20=E3=81=A7=E3=81=82=E3=82=8B=E3=81=8B?= =?UTF-8?q?=E3=81=A9=E3=81=86=E3=81=8B=E3=81=AE=E5=88=A4=E5=AE=9A=E3=81=8C?= =?UTF-8?q?=E3=80=81=E9=96=93=E9=81=95=E3=81=88=E3=81=A6=20Prefab=20?= =?UTF-8?q?=E3=81=8C=E5=AD=98=E5=9C=A8=E3=81=99=E3=82=8B=E3=81=8B=E5=90=A6?= =?UTF-8?q?=E3=81=8B=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs b/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs index 91ae5b9b1..0614e9dcf 100644 --- a/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs +++ b/Assets/VRM/UniVRM/Editor/Format/VRMExporterWizard.cs @@ -371,9 +371,10 @@ namespace VRM Validation.Error("ExportRootに回転・拡大縮小は持てません。子階層で回転・拡大縮小してください").DrawGUI(); return; } - if (AssetDatabase.GetAssetPath(root) != null) + if (!root.scene.IsValid()) { - // is prefab + // Prefab でシーンに出していないものを判定したい + // FIXME: もっと適切な判定があればそれに Validation.Error("シーンに出していない Prefab はエクスポートできません(細かい挙動が違い、想定外の動作をところがあるため)。シーンに展開してからエクスポートしてください").DrawGUI(); return; }