From cc9eb078044e1978daabe4b3cca154fe1b775bb2 Mon Sep 17 00:00:00 2001 From: pandravrc <162582491+pandravrc@users.noreply.github.com> Date: Sun, 29 Sep 2024 19:53:04 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AF=BE=E8=B1=A1=E3=81=AEPrefab=E3=81=8C?= =?UTF-8?q?=E3=82=A2=E3=83=90=E3=82=BF=E3=83=BC=E3=81=AB=E3=81=AA=E3=81=84?= =?UTF-8?q?=E5=A0=B4=E5=90=88=E3=81=AB=E3=82=82=E3=83=A1=E3=83=8B=E3=83=A5?= =?UTF-8?q?=E3=83=BC=E3=82=92=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B=E4=B8=8D?= =?UTF-8?q?=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/EmotePrefabPlugin.cs | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Editor/EmotePrefabPlugin.cs b/Editor/EmotePrefabPlugin.cs index 46bcab7..80afc41 100644 --- a/Editor/EmotePrefabPlugin.cs +++ b/Editor/EmotePrefabPlugin.cs @@ -1,5 +1,9 @@ using nadena.dev.ndmf; using com.github.pandrabox.emoteprefab.editor; +using com.github.pandrabox.emoteprefab.runtime; +using System.Linq; +using System.Diagnostics; +using static com.github.pandrabox.emoteprefab.runtime.Generic; [assembly: ExportsPlugin(typeof(EmotePrefabPlugin))] @@ -11,6 +15,10 @@ protected override void Configure() { InPhase(BuildPhase.Transforming).BeforePlugin("nadena.dev.modular-avatar").Run("com.github.pandrabox.emoteprefab", ctx => { + if (ctx.AvatarRootTransform.GetComponentsInChildren(false).Length==0) + { + return; + } new EmotePrefabProcessor(ctx.AvatarDescriptor); }); } diff --git a/package.json b/package.json index 52bb596..c899581 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.github.pandrabox.emoteprefab", - "version": "1.4.1", + "version": "1.4.2", "displayName": "EmotePrefab", "author": { "name": "pandra"