Rerender order swap (#1802)

* move rerenders to end of callback in control_panel
This commit is contained in:
Justin Kerr authored and GitHub committed 2023-04-22 11:23:23 -07:00
1 parent 11eea11f1e
commit d5decb61a6
1 file changed
+2 -2
+2 -2
View File
@@ -53,7 +53,7 @@ class ControlPanel:
"Output Render",
"not set",
["not set"],
cb_hook=lambda han: [self.update_control_panel(), rerender_cb(han), update_output_cb(han)],
cb_hook=lambda han: [self.update_control_panel(), update_output_cb(han), rerender_cb(han)],
)
self._colormap = ViewerDropdown("Colormap", "default", ["default"], cb_hook=rerender_cb)
self._invert = ViewerCheckbox("| Invert", False, cb_hook=rerender_cb)
@@ -65,7 +65,7 @@ class ControlPanel:
self._crop_viewport = ViewerCheckbox(
"Crop Viewport",
False,
cb_hook=lambda han: [self.update_control_panel(), rerender_cb(han), crop_update_cb(han)],
cb_hook=lambda han: [self.update_control_panel(), crop_update_cb(han), rerender_cb(han)],
)
self._background_color = ViewerRGB("| Background color", (38, 42, 55), cb_hook=crop_update_cb)
self._crop_min = ViewerVec3("| Crop Min", (-1, -1, -1), 0.05, cb_hook=crop_update_cb)