This commit is contained in:
Alexei Anoshenko 2026-07-26 15:36:36 +03:00
parent e9b128bc35
commit 938432d738
1 changed files with 6 additions and 1 deletions

View File

@ -114,7 +114,12 @@ func valueToColor(value any, session Session) (Color, Color, bool) {
} }
func colorProperty(properties Properties, tag PropertyName, session Session) (Color, Color, bool) { func colorProperty(properties Properties, tag PropertyName, session Session) (Color, Color, bool) {
return valueToColor(properties.getRaw(tag), session) value := properties.getRaw(tag)
if value == nil {
return 0, 0, false
}
return valueToColor(value, session)
} }
func valueToEnum(value any, tag PropertyName, session Session, defaultValue int) (int, bool) { func valueToEnum(value any, tag PropertyName, session Session, defaultValue int) (int, bool) {