Browse Source

move 3d camera when client connects #200

Falko Schindler 2 năm trước cách đây
mục cha
commit
4c588dba71
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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()