diff --git a/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt b/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt index 8310ae9c..04fa2e5a 100644 --- a/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt +++ b/orx-panel/src/main/kotlin/org/openrndr/panel/hash/WatchHash.kt @@ -7,7 +7,7 @@ import kotlin.reflect.full.declaredMemberProperties fun watchHash(toHash: Any): Int { var hash = 0 for (property in toHash::class.declaredMemberProperties) { - val v = ((property.getter) as KProperty1).invoke(toHash) + val v = ((property as KProperty1).getter).invoke(toHash) if (v is KProperty0<*>) { val pv = v.get() hash = 31 * hash + (pv?.hashCode() ?: 0)