Browse Source

move 3d camera when client connects #200

Falko Schindler 2 years ago
parent
commit
4c588dba71
1 changed files with 1 additions and 0 deletions
  1. 1 0
      nicegui/elements/scene.py

+ 1 - 0
nicegui/elements/scene.py

@@ -75,6 +75,7 @@ class Scene(Element):
 
     def handle_connect(self, _) -> None:
         self.run_method('init')
+        self.move_camera(duration=0)
         for object in self.objects.values():
             object.send()