5.3 Support add LnxPropertyGroup class

This commit is contained in:
2026-11-28 08:43:06 +00:00
parent c0a086f0cd
commit ce0c50c8b5

View File

@ -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)