mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Ensure Model 3D updates when attributes change (#6255)
* trigger scene update when params change * add changeset * formatting --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
3ccf1d1f8b
commit
e3ede2ff7d
6
.changeset/sour-sheep-look.md
Normal file
6
.changeset/sour-sheep-look.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/model3d": minor
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Ensure Model 3D updates when attributes change
|
@ -79,6 +79,9 @@
|
||||
function handle_undo(): void {
|
||||
reset_camera_position(scene, camera_position, zoom_speed, pan_speed);
|
||||
}
|
||||
|
||||
$: if (scene)
|
||||
reset_camera_position(scene, camera_position, zoom_speed, pan_speed);
|
||||
</script>
|
||||
|
||||
<BlockLabel
|
||||
|
Loading…
Reference in New Issue
Block a user