Ensure object lifecycle ratio is re-normalized to camera aspect (#15717)

This commit is contained in:
Josh Hawkins 2024-12-28 14:37:39 -06:00 committed by GitHub
parent 171a89f37b
commit 98338e4c7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -477,7 +477,10 @@ export default function ObjectLifecycle({
</p> </p>
{Array.isArray(item.data.box) && {Array.isArray(item.data.box) &&
item.data.box.length >= 4 item.data.box.length >= 4
? (item.data.box[2] / item.data.box[3]).toFixed(2) ? (
aspectRatio *
(item.data.box[2] / item.data.box[3])
).toFixed(2)
: "N/A"} : "N/A"}
</div> </div>
</div> </div>