Skip to content

Commit 804a852

Browse files
committed
fixed string presentation of GLSLType.
1 parent b47013d commit 804a852

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/com/ss/editor/util/GLSLType.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public enum GLSLType {
4646
static {
4747
for (final GLSLType glslType : VALUES) {
4848
RAW_TYPE_TO_ENUM.put(glslType.getRawType(), glslType);
49-
UI_NAME_TO_ENUM.put(glslType.getUiName(), glslType);
49+
UI_NAME_TO_ENUM.put(glslType.getUIName(), glslType);
5050
}
5151
}
5252

@@ -105,7 +105,12 @@ public enum GLSLType {
105105
* @return the name for UI.
106106
*/
107107
@FromAnyThread
108-
public @NotNull String getUiName() {
108+
public @NotNull String getUIName() {
109109
return uiName;
110110
}
111+
112+
@Override
113+
public String toString() {
114+
return getUIName();
115+
}
111116
}

0 commit comments

Comments
 (0)