Asset Pipeline v2 #145
@ -4,6 +4,7 @@ from pathlib import Path
|
||||
from .merge.transfer_data.transfer_ui import draw_transfer_data
|
||||
from .merge.task_layer import draw_task_layer_selection
|
||||
from .config import verify_json_data
|
||||
from .prefs import get_addon_prefs
|
||||
from . import constants
|
||||
|
||||
|
||||
@ -76,6 +77,11 @@ class ASSETPIPE_PT_sync_advanced(bpy.types.Panel):
|
||||
bl_parent_id = "ASSETPIPE_PT_sync"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context: bpy.types.Context) -> bool:
|
||||
prefs = get_addon_prefs()
|
||||
return prefs.is_advanced_mode
|
||||
|
||||
def draw(self, context: bpy.types.Context) -> None:
|
||||
layout = self.layout
|
||||
box = layout.box()
|
||||
|
Loading…
Reference in New Issue
Block a user