feat(blenvy): qol ui information

This commit is contained in:
kaosat.dev 2024-05-18 22:39:22 +02:00
parent f6b61f83ae
commit 8abd806d5f
2 changed files with 13 additions and 1 deletions

View File

@ -98,7 +98,18 @@ class BLENVY_PT_SidePanel(bpy.types.Panel):
draw_folder_browser(layout=row, label="Materials Folder", prop_origin=blenvy, target_property="materials_path") draw_folder_browser(layout=row, label="Materials Folder", prop_origin=blenvy, target_property="materials_path")
panel.separator() panel.separator()
# scenes selection # scenes selection
if len(blenvy.main_scenes) == 0 and len(blenvy.library_scenes) == 0:
row = panel.row()
row.alert = True
panel.alert = True
row.label(text="NO library or main scenes specified! at least one main scene or library scene is required!")
row = panel.row()
row.label(text="Please select and add one using the UI below")
section = panel section = panel
rows = 2 rows = 2
row = section.row() row = section.row()
@ -143,7 +154,7 @@ class BLENVY_PT_SidePanel(bpy.types.Panel):
remove_operator.action = 'REMOVE' remove_operator.action = 'REMOVE'
remove_operator.scene_type = 'LIBRARY' remove_operator.scene_type = 'LIBRARY'
col.separator() col.separator()
header, panel = layout.panel("components", default_closed=False) header, panel = layout.panel("components", default_closed=False)
header.label(text="Components") header.label(text="Components")
if panel: if panel:

View File

@ -1,6 +1,7 @@
def draw_settings_ui(layout, auto_export_settings): def draw_settings_ui(layout, auto_export_settings):
controls_enabled = auto_export_settings.auto_export controls_enabled = auto_export_settings.auto_export
layout.label(text="Auto exports gltf files every time you save your project")
layout.prop(auto_export_settings, "auto_export") layout.prop(auto_export_settings, "auto_export")
layout.separator() layout.separator()