From 4fcf842405388ed0c5e00d2aa86049923bfd0a25 Mon Sep 17 00:00:00 2001 From: "kaosat.dev" Date: Fri, 19 Jul 2024 14:20:01 +0200 Subject: [PATCH] feat(Blenvy:Blender): minor UI tweaks --- tools/blenvy/add_ons/auto_export/settings.py | 2 +- tools/blenvy/core/blenvy_manager.py | 4 ++-- tools/blenvy/core/ui/ui.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/blenvy/add_ons/auto_export/settings.py b/tools/blenvy/add_ons/auto_export/settings.py index d6a71aa..a08e9fe 100644 --- a/tools/blenvy/add_ons/auto_export/settings.py +++ b/tools/blenvy/add_ons/auto_export/settings.py @@ -75,7 +75,7 @@ class AutoExportSettings(PropertyGroup): export_materials_library: BoolProperty( name='Export materials library', description='remove materials from blueprints and use the material library instead', - default=False, + default=True, update=save_settings ) # type: ignore diff --git a/tools/blenvy/core/blenvy_manager.py b/tools/blenvy/core/blenvy_manager.py index dbdea8c..bf14d24 100644 --- a/tools/blenvy/core/blenvy_manager.py +++ b/tools/blenvy/core/blenvy_manager.py @@ -130,8 +130,8 @@ class BlenvyManager(PropertyGroup): auto_export: PointerProperty(type=auto_export_settings.AutoExportSettings) # type: ignore components: PointerProperty(type=component_settings.ComponentsSettings) # type: ignore - level_scene_selector: PointerProperty(type=bpy.types.Scene, name="level scene", description="level_scene_picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore - library_scene_selector: PointerProperty(type=bpy.types.Scene, name="library scene", description="library_scene_picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore + level_scene_selector: PointerProperty(type=bpy.types.Scene, name="level scene", description="level scene picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore + library_scene_selector: PointerProperty(type=bpy.types.Scene, name="library scene", description="library scene picker", poll=is_scene_already_in_use, update=save_settings)# type: ignore @property def level_scenes(self): diff --git a/tools/blenvy/core/ui/ui.py b/tools/blenvy/core/ui/ui.py index 624f6fa..77c6f9b 100644 --- a/tools/blenvy/core/ui/ui.py +++ b/tools/blenvy/core/ui/ui.py @@ -98,7 +98,7 @@ class BLENVY_PT_SidePanel(bpy.types.Panel): header.label(text="Components") if panel: components_ui.draw_settings_ui(panel, blenvy.components) - + if config_mode == 'EXPORT': header, panel = layout.panel("auto_export", default_closed=False) header.label(text="Auto Export") @@ -129,7 +129,7 @@ def draw_common_settings_ui(layout, settings): layout.alert = True row.label(text="NO library or level scenes specified! at least one level scene or library scene is required!") row = layout.row() - row.label(text="Please select and add one using the UI below") + row.label(text="Please select and add at least one:") section = layout rows = 2