removed updater
1.6.1 - removed: Auto Updater that was failing since 2.93 - prefs: add a checkbox to disable the "load base palette button" in UI.
This commit is contained in:
+9
-7
@@ -1,4 +1,4 @@
|
||||
from . import addon_updater_ops
|
||||
# from . import addon_updater_ops
|
||||
from .utils import get_addon_prefs
|
||||
import bpy
|
||||
from pathlib import Path
|
||||
@@ -44,9 +44,10 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
# layout.use_property_split = True
|
||||
prefs = get_addon_prefs()
|
||||
rd = context.scene.render
|
||||
# check for update
|
||||
addon_updater_ops.check_for_update_background()
|
||||
# addon_updater_ops.check_for_update_background()
|
||||
|
||||
# layout.label(text='View options:')
|
||||
## flip X cam
|
||||
@@ -147,10 +148,11 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
|
||||
row.operator('gp.rename_data_from_obj', text='Rename all').rename_all = True
|
||||
|
||||
## Check base palette
|
||||
if not all(x in [m.name for m in context.object.data.materials if m] for x in ("line", "invisible")):
|
||||
box = col.box()
|
||||
box.label(text='Missing base material setup', icon='INFO')
|
||||
box.operator('gp.load_default_palette')
|
||||
if prefs.warn_base_palette and prefs.palette_path:
|
||||
if not all(x in [m.name for m in context.object.data.materials if m] for x in ("line", "invisible")):
|
||||
box = col.box()
|
||||
box.label(text='Missing base material setup', icon='INFO')
|
||||
box.operator('gp.load_default_palette')
|
||||
|
||||
else:
|
||||
col.label(text='No GP object selected')
|
||||
@@ -177,7 +179,7 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
|
||||
col.prop(context.scene.gptoolprops, 'cursor_follow', text=text, icon=icon)
|
||||
|
||||
# Mention update as notice
|
||||
addon_updater_ops.update_notice_box_ui(self, context)
|
||||
# addon_updater_ops.update_notice_box_ui(self, context)
|
||||
|
||||
|
||||
# row = layout.row(align=False)
|
||||
|
||||
Reference in New Issue
Block a user