File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -497,11 +497,11 @@ def _config_callback(
497497 self .camera .focus = config ["focus" ]
498498 if "focus_min" in config or "focus_max" in config or "hyperfocal_distance" in config :
499499 if "focus_min" in config :
500- self .camera .focus_min = config ["focus_min" ]
500+ self .camera .focus_min = float ( config ["focus_min" ])
501501 if "focus_max" in config :
502- self .camera .focus_max = config ["focus_max" ]
502+ self .camera .focus_max = float ( config ["focus_max" ])
503503 if "hyperfocal_distance" in config :
504- self .camera .hyperfocal_distance = config ["hyperfocal_distance" ]
504+ self .camera .hyperfocal_distance = float ( config ["hyperfocal_distance" ])
505505 self .camera .recalculate_focus ()
506506 if "auto_focus" in config :
507507 self .camera .auto_focus = config ["auto_focus" ]
You can’t perform that action at this time.
0 commit comments