4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 10:34:29 +08:00

Rerender order swap (#1802)

* move rerenders to end of callback in control_panel
This commit is contained in:
Justin Kerr 2023-04-22 11:23:23 -07:00 committed by GitHub
parent 11eea11f1e
commit d5decb61a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)