upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/first_light.py
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 13:16:22 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 13:16:22 -0500
commit2b13467423267a8b8d48d1e382e2e2155a5fbbeb (patch)
tree625ef95e7080418aa075467838e85c836c547744 /tools/first_light.py
parent9ab00f2fb425269454424b9e615dd1c0a9525025 (diff)
parent0c4353f55bda351232f80ddd541e143dc5a2fed8 (diff)
Merge pull request #2588 from Vonsek
Diffstat (limited to 'tools/first_light.py')
-rw-r--r--tools/first_light.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/first_light.py b/tools/first_light.py
index d60dd5d9d..31cf1fc68 100644
--- a/tools/first_light.py
+++ b/tools/first_light.py
@@ -221,7 +221,7 @@ def fit(vertices, width: int, height: int, fit_xy: bool, flatten_z: bool):
221 cx, cy = (min(xs) + max(xs)) / 2, (min(ys) + max(ys)) / 2 221 cx, cy = (min(xs) + max(xs)) / 2, (min(ys) + max(ys)) / 2
222 span = max(max(xs) - min(xs), max(ys) - min(ys)) or 1.0 222 span = max(max(xs) - min(xs), max(ys) - min(ys)) or 1.0
223 scale = 1.8 / span 223 scale = 1.8 / span
224 cz = (min(zs) + max(zs)) / 2 if flatten_z else 0.0 224 cz = (min(zs) + max(zs)) / 2 if not flatten_z else 0.0
225 aspect = width / height if height else 1.0 225 aspect = width / height if height else 1.0
226 out = [] 226 out = []
227 for x, y, z, u, v in vertices: 227 for x, y, z, u, v in vertices: