Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Preview3D node with node.onMouseEnter #2439

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

kvick-games
Copy link
Contributor

@kvick-games kvick-games commented Feb 5, 2025

The Preview3D node is frequently in an invalid state and this is just a quick change to refresh the viewport on mouse enter over the node to improve the UX without drastically affecting perf.

Internally this calls resize because it seems like there are some initialization order issues going on, the viewport always boots up in an invalid state, so a better fix long term would be ideal.

┆Issue is synchronized with this Notion page by Unito

@kvick-games kvick-games requested review from jtydhr88 and a team as code owners February 5, 2025 21:49
@jtydhr88
Copy link
Collaborator

jtydhr88 commented Feb 5, 2025

@kvick-games thanks for the update, could you help adding the same fix into another three nodes?

@kvick-games
Copy link
Contributor Author

@kvick-games thanks for the update, could you help adding the same fix into another three nodes?

Sure, I added the same calls into the other 3 nodes, Load3D, Load3DAnimation and Preview3DAnimation

@huchenlei huchenlei merged commit f5c5a95 into Comfy-Org:main Feb 6, 2025
10 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.

3 participants