Skip to content

getUIDAtPadIndex always returns -1, causing tags to disappear on pad sync #273

@UnDGCat

Description

@UnDGCat
Image

I noticed that the disappearing tags problem I thought was caused by the error mentioned in #268 was actually coming from the syncToyPad event's statement (checking if uid != -1) never running. My print statement at line 679 seems to confirm that this is caused by getUIDAtPadIndex always returning -1 regardless of if there was a tag on the pad.

Notably, changing the === operator in the getUIDAtPadIndex function to a == seems to somewhat fix this issue, but instead of disappearing on resync, the tags will duplicate in their pad spots. I suspect this might be related to #270 but I'm keeping this issue open because I'm not experienced enough to figure out whether it truly is related or my solution is just too sloppy and breaks something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions