Commit 29d2012
committed
Use defaults for non-positive camera values
Update CameraSettings.apply_defaults to treat None or non-positive numeric values as "use default". The code now reads the field value first and replaces it with the default if value is None or (isinstance int/float and value <= 0), and adds a comment noting this represents an "auto" behavior with a TODO to consider a clearer representation.1 parent 47522a7 commit 29d2012
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
0 commit comments