Fix vCard 4 PID accessors

This commit is contained in:
jdb committed 2026-03-28 20:23:46 -05:00
1 parent 35e191d82b
commit 8ea67163e7
1 file changed
+1 -1
+1 -1
View File
@@ -916,7 +916,7 @@ macro genPidAccessors(props: static[openarray[VC4_PropertyName]]): untyped =
let pidFunc = genAstOpt({kDirtyTemplate}, typeName):
func pid*(prop: typeName): seq[PidValue] =
let pidParam = prop.params --> find(it.name == "PREF")
let pidParam = prop.params --> find(it.name == "PID")
if pidParam.isSome: return parsePidValues(pidParam.get)
else: return @[]
result.add(pidFunc)