forked from LeenkxTeam/LNXSDK
5.3 Support add LnxPropertyGroup class
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user