Fix #104206: Worker cluster assignment is lost when blender is restarted
The available worker clusters are stored on the addon preferences, to be available across restarts of Blender. The prefs were not marked as 'dirty' though, so Blender never actually saved them. That's now resolved.
This commit is contained in:
parent
752597b8e1
commit
ef53304b1b
@ -36,6 +36,10 @@ def refresh(context: bpy.types.Context, api_client: _ApiClient) -> None:
|
|||||||
rna_cluster.name = cluster.name
|
rna_cluster.name = cluster.name
|
||||||
rna_cluster.description = getattr(cluster, "description", "")
|
rna_cluster.description = getattr(cluster, "description", "")
|
||||||
|
|
||||||
|
# Preferences have changed, so make sure that Blender saves them (assuming
|
||||||
|
# auto-save here).
|
||||||
|
context.preferences.is_dirty = True
|
||||||
|
|
||||||
|
|
||||||
def _get_enum_items(self, context):
|
def _get_enum_items(self, context):
|
||||||
global _enum_items
|
global _enum_items
|
||||||
|
Loading…
x
Reference in New Issue
Block a user