ui redraw on UIlist actions and code cleanup

2.0.9

- fix: prefix/suffix UIlist actions trigger UI redraw to see changes live
- changed: PropertyGroups are now registered in their own file
- code: cleanup
This commit is contained in:
Pullusb
2022-10-13 00:09:12 +02:00
parent c32ea207c6
commit e0a50ea49a
8 changed files with 226 additions and 198 deletions
+19 -1
View File
@@ -244,4 +244,22 @@ class GP_PG_namespace_props(PropertyGroup):
class GP_PG_namespaces(PropertyGroup):
idx : IntProperty(default=-1)
namespaces : bpy.props.CollectionProperty(type=GP_PG_namespace_props)
namespaces : bpy.props.CollectionProperty(type=GP_PG_namespace_props)
classes = (
# Prefix/suiffix prefs prop group
GP_PG_namespace_props,
GP_PG_namespaces,
## General toolbox settings
GP_PG_FixSettings,
GP_PG_ToolsSettings,
)
def register():
for cls in classes:
bpy.utils.register_class(cls)
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)