guodong 2 years ago
parent
commit
2c99b63b1e

+ 7 - 7
GameClient/Assets/Editor/Xasset/Builds/BuildTask.cs

@@ -152,18 +152,18 @@ namespace VEngine.Editor.Builds
         private void HideSuitActionRes(SuitCfg suitCfg, List<string> hideFilePathList, List<string> hideDirPahtList)
         {
             string resPath;
-            //动画
             if(!string.IsNullOrEmpty(suitCfg.aniRes))
             {
+                //立绘
+                resPath = ResPathUtil.GetDressUpPath(suitCfg.aniRes);
+                hideFilePathList.Add(resPath);
+                //动画
                 resPath = ResPathUtil.GetDressUpAnimationDirPath(suitCfg.aniRes);
                 hideDirPahtList.Add(resPath);
-            }
-            //特效
-            if (!string.IsNullOrEmpty(suitCfg.effRes))
-            {
-                resPath = ResPathUtil.GetDressUpEffectDirPath(suitCfg.effRes);
+                //特效
+                resPath = ResPathUtil.GetDressUpEffectDirPath(suitCfg.aniRes);
                 hideDirPahtList.Add(resPath);
-                resPath = ResPathUtil.GetDressUpEffectDirPath(suitCfg.effRes, true);
+                resPath = ResPathUtil.GetDressUpEffectDirPath(suitCfg.aniRes, true);
                 hideDirPahtList.Add(resPath);
             }
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/DressUp/DressUpObj.cs

@@ -586,7 +586,7 @@ namespace GFGGame
                 SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(_dressUpData.actionId);
                 var hasAniRes = ResPathUtil.CheckDressUpAnimationExist(suitCfg.aniRes);
                 var res = hasAniRes ? suitCfg.aniRes : null;
-                DressUpUtil.UpdateWholeBody(res, _sceneObj, hasAniRes, suitCfg.effRes, false, _roleObj);
+                DressUpUtil.UpdateWholeBody(res, _sceneObj, hasAniRes, res, false, _roleObj);
             }
             else
             {