diff --git a/PCK-Studio/Forms/Editor/ModelEditor.cs b/PCK-Studio/Forms/Editor/ModelEditor.cs index 9c9ea22a..da7c4508 100644 --- a/PCK-Studio/Forms/Editor/ModelEditor.cs +++ b/PCK-Studio/Forms/Editor/ModelEditor.cs @@ -40,7 +40,7 @@ namespace PckStudio.Forms.Editor modelTreeView.ImageList.Images.AddRange(ApplicationScope.EntityImages); } - private const int InvalidImageIndex = 127; + private const int INVALID_IMAGE_INDEX = 127; // TODO: move to json file. -miku private static Dictionary ModelImageIndex = new Dictionary() { @@ -123,7 +123,7 @@ namespace PckStudio.Forms.Editor ["zombie.villager_v2"] = 102, }; - private static int GetModelImageIndex(string name) => ModelImageIndex.TryGetValue(name, out int index) ? index : InvalidImageIndex; + private static int GetModelImageIndex(string name) => ModelImageIndex.TryGetValue(name, out int index) ? index : INVALID_IMAGE_INDEX; private class ModelNode : TreeNode {