Skip to content

fix(actor): prevent serialization of actors without a mapper#98

Merged
Jo-Byr merged 2 commits intomasterfrom
fix-actor-serialization
Jan 28, 2026
Merged

fix(actor): prevent serialization of actors without a mapper#98
Jo-Byr merged 2 commits intomasterfrom
fix-actor-serialization

Conversation

@Jo-Byr
Copy link
Contributor

@Jo-Byr Jo-Byr commented Dec 19, 2025

No description provided.

@Jo-Byr Jo-Byr requested a review from jourdain December 19, 2025 12:54
Copy link
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add in your commit comment how to reproduce the issue you had.

Fix bug where oglmapper wass undefined in traverseOpaquePass
for an actor whose visibility got toggled twice
@Jo-Byr Jo-Byr force-pushed the fix-actor-serialization branch from 6a557f7 to b116bc9 Compare December 23, 2025 11:16
Serialize actors on condition of having a mapper and a
property instance, or on visibility turn off
@Jo-Byr
Copy link
Contributor Author

Jo-Byr commented Jan 27, 2026

@jourdain I just modified my implementation, after some more tests with @finetjul we found that we also need to serialize actors who don't have a mapper, but were visible in the scene during the previous serialization.

Once you validate this change, I'll squash my commits.

@jourdain
Copy link
Collaborator

You've done more testing than me, so I trust you here. I don't see anything specifically wrong on that code change.

Feel free to merge.

@Jo-Byr Jo-Byr merged commit 68f55fa into master Jan 28, 2026
3 checks passed
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.

4 participants