Răsfoiți Sursa

Properly check if curve path represents a morph shape animation curve

BearishSun 9 ani în urmă
părinte
comite
7c8bebee0f

+ 2 - 2
Source/MBansheeEditor/Windows/Animation/EditorAnimInfo.cs

@@ -305,10 +305,10 @@ namespace BansheeEditor
             if (entries.Length < 3)
                 return true;
 
-            if (entries[entries.Length - 2] != "MorphShapes")
+            if (entries[entries.Length - 3] != "MorphShapes")
                 return false;
 
-            return entries[entries.Length - 1] == "Frames" || entries[entries.Length - 1] == "Weight";
+            return entries[entries.Length - 2] == "Frames" || entries[entries.Length - 2] == "Weight";
         }
 
         /// <summary>

+ 1 - 1
Source/MBansheeEditor/Windows/Animation/GUIAnimFieldDisplay.cs

@@ -785,7 +785,7 @@ namespace BansheeEditor
             underlayLayout = layouts.underlay.AddLayoutX();
             underlayLayout.AddFlexibleSpace();
             underlayLayout.AddElement(missingLabel);
-            underlayLayout.AddSpace(50);
+            underlayLayout.AddSpace(15);
 
             overlaySpacing = new GUILabel("", GUIOption.FixedHeight(GetEntryHeight()));
             layouts.overlay.AddElement(overlaySpacing);