From fece35b830358f520cac9fe9ce5b49b26ed26f51 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 15 May 2024 19:30:40 +0200 Subject: [PATCH] euler_angles and scale argument in webgui Draw --- python/webgui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/webgui.py b/python/webgui.py index 494c545b..d47db04b 100644 --- a/python/webgui.py +++ b/python/webgui.py @@ -321,6 +321,11 @@ class WebGLScene(base): if "gui_settings" not in d: d["gui_settings"] = self.kwargs["settings"] + if "euler_angles" in kwargs: + camera = d["gui_settings"].get("camera", {}) + camera["euler_angles"] = kwargs["euler_angles"] + d["gui_settings"]['camera'] = camera + d["objects"] = [] for obj in kwargs["objects"]: if isinstance(obj, dict): @@ -367,6 +372,7 @@ def _get_draw_default_args(): nodal_p1=False, settings={}, fullscreen=False, + scale=1.0, width=_default_width, height=_default_height, )