Fix #141948: No error on arbitrary assignments to PropertyGroup
Declare `__slots__` to prevent arbitrary assignment.
This commit is contained in:
@@ -29,6 +29,8 @@ from bpy.app.translations import (
|
||||
|
||||
|
||||
class NodeSetting(PropertyGroup):
|
||||
__slots__ = ()
|
||||
|
||||
value: StringProperty(
|
||||
name="Value",
|
||||
description="Python expression to be evaluated "
|
||||
|
||||
Reference in New Issue
Block a user