From 3752ad7da0f96397daad8d25da6756536165bf69 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Fri, 16 Jul 2021 09:40:23 +0300 Subject: [PATCH] Better Uint8 string representation in convert-mesh script --- tools/convert-mesh/bin/convert-mesh.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/convert-mesh/bin/convert-mesh.py b/tools/convert-mesh/bin/convert-mesh.py index 8e2e44a5..409bfff0 100644 --- a/tools/convert-mesh/bin/convert-mesh.py +++ b/tools/convert-mesh/bin/convert-mesh.py @@ -142,6 +142,12 @@ class Uint8: def __init__(self, value): self.value = int(value) + def __str__(self): + return str(self.value) + + def __repr__(self): + return str(self.value) + if colors: for i in range(len(vertex_colors)):