From fc0fb5035b5415f624aab208f0590d7621c05ae7 Mon Sep 17 00:00:00 2001 From: Yusarina Date: Tue, 18 Jun 2024 23:55:04 +0100 Subject: [PATCH] Typing --- core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/common.py b/core/common.py index b73995b..5b98ec5 100644 --- a/core/common.py +++ b/core/common.py @@ -5,7 +5,7 @@ from bpy.types import Object, ShapeKey from functools import lru_cache ### Clean up material names in the given mesh by removing the '.001' suffix. -def clean_material_names(mesh): +def clean_material_names(mesh: Mesh) -> None: for j, mat in enumerate(mesh.material_slots): if mat.name.endswith(('.0+', ' 0+')): mesh.active_material_index = j @@ -15,7 +15,7 @@ def clean_material_names(mesh): # This will fix faulty uv coordinates, cats did this a other way which can have unintended consequences, # this is the best way i could of think of doing this for the time being, however may need improvements. -def fix_uv_coordinates(context): +def fix_uv_coordinates(context: Context) -> None: obj = context.object # Check if the object is in Edit Mode