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:
Pullusb
2021-08-23 14:50:00 +02:00
parent e6ff824684
commit 408f017e81
6 changed files with 31 additions and 3229 deletions
+9 -7
View File
@@ -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)