mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 09:27:41 +00:00
Refresh Preview3D node with node.onMouseEnter (#2439)
This commit is contained in:
@@ -29,6 +29,12 @@ app.registerExtension({
|
||||
|
||||
containerToLoad3D.set(container.id, load3d)
|
||||
|
||||
node.onMouseEnter = function () {
|
||||
if (load3d) {
|
||||
load3d.refreshViewport()
|
||||
}
|
||||
}
|
||||
|
||||
node.onResize = function () {
|
||||
if (load3d) {
|
||||
load3d.handleResize()
|
||||
@@ -192,6 +198,12 @@ app.registerExtension({
|
||||
|
||||
containerToLoad3D.set(container.id, load3d)
|
||||
|
||||
node.onMouseEnter = function () {
|
||||
if (load3d) {
|
||||
load3d.refreshViewport()
|
||||
}
|
||||
}
|
||||
|
||||
node.onResize = function () {
|
||||
if (load3d) {
|
||||
load3d.handleResize()
|
||||
@@ -362,6 +374,12 @@ app.registerExtension({
|
||||
|
||||
containerToLoad3D.set(container.id, load3d)
|
||||
|
||||
node.onMouseEnter = function () {
|
||||
if (load3d) {
|
||||
load3d.refreshViewport()
|
||||
}
|
||||
}
|
||||
|
||||
node.onResize = function () {
|
||||
if (load3d) {
|
||||
load3d.handleResize()
|
||||
@@ -482,6 +500,12 @@ app.registerExtension({
|
||||
|
||||
containerToLoad3D.set(container.id, load3d)
|
||||
|
||||
node.onMouseEnter = function () {
|
||||
if (load3d) {
|
||||
load3d.refreshViewport()
|
||||
}
|
||||
}
|
||||
|
||||
node.onResize = function () {
|
||||
if (load3d) {
|
||||
load3d.handleResize()
|
||||
|
||||
Reference in New Issue
Block a user