fix: implementation not found if a new type is added
This commit is contained in:
parent
9b1b8f11fd
commit
4f731c6640
@ -106,7 +106,11 @@ class SessionStartOperator(bpy.types.Operator):
|
|||||||
|
|
||||||
supported_bl_types.append(type_module_class.bl_id)
|
supported_bl_types.append(type_module_class.bl_id)
|
||||||
|
|
||||||
# Retreive local replicated types settings
|
if type_impl_name not in settings.supported_datablocks:
|
||||||
|
logging.info(f"{type_impl_name} not found, \
|
||||||
|
regenerate type settings...")
|
||||||
|
settings.generate_supported_types()
|
||||||
|
|
||||||
type_local_config = settings.supported_datablocks[type_impl_name]
|
type_local_config = settings.supported_datablocks[type_impl_name]
|
||||||
|
|
||||||
bpy_factory.register_type(
|
bpy_factory.register_type(
|
||||||
@ -638,6 +642,7 @@ class ClearCache(bpy.types.Operator):
|
|||||||
row = self.layout
|
row = self.layout
|
||||||
row.label(text=f" Do you really want to remove local cache ? ")
|
row.label(text=f" Do you really want to remove local cache ? ")
|
||||||
|
|
||||||
|
|
||||||
classes = (
|
classes = (
|
||||||
SessionStartOperator,
|
SessionStartOperator,
|
||||||
SessionStopOperator,
|
SessionStopOperator,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user