From ce0c50c8b5e208a326b248938e04d8ad2d34f114 Mon Sep 17 00:00:00 2001 From: LeenkxTeam Date: Sat, 28 Nov 2026 08:43:06 +0000 Subject: [PATCH] 5.3 Support add LnxPropertyGroup class --- leenkx/blender/lnx/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/leenkx/blender/lnx/utils.py b/leenkx/blender/lnx/utils.py index c6c74f77..8ddaa01c 100644 --- a/leenkx/blender/lnx/utils.py +++ b/leenkx/blender/lnx/utils.py @@ -41,6 +41,9 @@ class NumpyEncoder(json.JSONEncoder): return obj.tolist() return json.JSONEncoder.default(self, obj) +class LnxPropertyGroup(bpy.types.LnxPropertyGroup): + name: bpy.props.StringProperty(name="Name", default="") + class WorkingDir: """Context manager for safely changing the current working directory.""" def __init__(self, cwd: str): @@ -1300,6 +1303,7 @@ def cpu_count(*, physical_only=False) -> Optional[int]: def register(local_sdk=False): global use_local_sdk use_local_sdk = local_sdk + bpy.utils.register_class(LnxPropertyGroup) def unregister(): - pass + bpy.utils.unregister_class(LnxPropertyGroup)