From 4af990796eef54ee6b9821fcae9b0f82eb5656c3 Mon Sep 17 00:00:00 2001 From: LeenkxTeam Date: Mon, 21 Jul 2025 23:27:34 +0000 Subject: [PATCH] t3du - Add TSceneFormat as Trait property type --- leenkx/blender/lnx/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leenkx/blender/lnx/utils.py b/leenkx/blender/lnx/utils.py index 8ac35d2..2d9ca78 100644 --- a/leenkx/blender/lnx/utils.py +++ b/leenkx/blender/lnx/utils.py @@ -444,7 +444,7 @@ def fetch_script_props(filename: str): # Property type is annotated if p_type is not None: - if p_type.startswith("iron.object."): + if p_type.startswith("iron.object.") or p_type == "iron.data.SceneFormat.TSceneFormat": p_type = p_type[12:] elif p_type.startswith("iron.math."): p_type = p_type[10:] @@ -522,7 +522,7 @@ def get_type_default_value(prop_type: str): if prop_type == "Float": return 0.0 if prop_type == "String" or prop_type in ( - "Object", "CameraObject", "LightObject", "MeshObject", "SpeakerObject"): + "Object", "CameraObject", "LightObject", "MeshObject", "SpeakerObject", "TSceneFormat"): return "" if prop_type == "Bool": return False