Skip to content

Fix CameraRig::Register erasing by wrong key#134

Open
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/camerarig-erase-key
Open

Fix CameraRig::Register erasing by wrong key#134
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/camerarig-erase-key

Conversation

@CodeReclaimers
Copy link
Contributor

When unregistering a callback (negative trigger), `mIndirectMap.erase(trigger)` uses the negative trigger value which is never a key in the map. The erase silently fails, leaving stale entries. Fixed to erase by `element.first`.

🤖 Generated with Claude Code

When unregistering (negative trigger), erases by the trigger value which
is never a key in the map. Should erase by element.first (the actual key
found matching the function).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant