Audit NPC body proportions against a shared guide
Measure all eight exported characters and record the stylized proportion bands. All variants pass; no skeleton or mesh rescale was needed.
This commit is contained in:
1 parent
7c1a4bfd69
commit
ab9c67d266
10 files changed
+329
-3
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import unittest
|
||||
|
||||
import npc_proportions
|
||||
|
||||
|
||||
class NpcProportionTests(unittest.TestCase):
|
||||
def test_every_library_character_is_measured(self):
|
||||
rows = npc_proportions.report()
|
||||
self.assertEqual(len(rows), 8)
|
||||
self.assertEqual(len({row["character"] for row in rows}), 8)
|
||||
for row in rows:
|
||||
self.assertGreater(row["measurements"]["height"], 1.6)
|
||||
|
||||
def test_current_library_stays_inside_the_stylized_guide(self):
|
||||
for row in npc_proportions.report():
|
||||
for key, check in row["checks"].items():
|
||||
self.assertEqual(check["status"], "ok",
|
||||
f"{row['character']} {key}={check['value']}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user