We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67aeecc commit 091cec6Copy full SHA for 091cec6
1 file changed
kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/model/RegisteredClass.kt
@@ -14,10 +14,12 @@ data class RegisteredClass(
14
val properties: List<RegisteredProperty> = emptyList()
15
) : Clazz(fqName, supertypes) {
16
internal val registeredName: String
17
- get() = annotations
18
- .getAnnotation<RegisterClassAnnotation>()
19
- ?.customName
20
- ?: fqName.replace(".", "_")
+ get() {
+ val customName = annotations
+ .getAnnotation<RegisterClassAnnotation>()
+ ?.customName
21
+ return if (customName.isNullOrEmpty()) fqName.replace(".", "_") else customName
22
+ }
23
24
internal val isTool: Boolean
25
get() = annotations.getAnnotation<ToolAnnotation>() != null
0 commit comments