Asset Pipeline v2 #145
@ -1,14 +1,15 @@
|
|||||||
import bpy
|
import bpy
|
||||||
from . import config
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from . import constants
|
||||||
|
from . import config
|
||||||
|
from .prefs import get_addon_prefs
|
||||||
from .merge.naming import task_layer_prefix_transfer_data_update
|
from .merge.naming import task_layer_prefix_transfer_data_update
|
||||||
from .merge.task_layer import (
|
from .merge.task_layer import (
|
||||||
draw_task_layer_selection,
|
draw_task_layer_selection,
|
||||||
)
|
)
|
||||||
from .merge.publish import get_next_published_file, find_all_published
|
from .merge.publish import get_next_published_file, find_all_published
|
||||||
from .images import save_images
|
from .images import save_images
|
||||||
from . import constants
|
|
||||||
from .sync import (
|
from .sync import (
|
||||||
sync_invoke,
|
sync_invoke,
|
||||||
sync_draw,
|
sync_draw,
|
||||||
@ -17,7 +18,6 @@ from .sync import (
|
|||||||
sync_execute_pull,
|
sync_execute_pull,
|
||||||
sync_execute_push,
|
sync_execute_push,
|
||||||
)
|
)
|
||||||
from . import constants
|
|
||||||
|
|
||||||
|
|
||||||
class ASSETPIPE_OT_create_new_asset(bpy.types.Operator):
|
class ASSETPIPE_OT_create_new_asset(bpy.types.Operator):
|
||||||
@ -337,6 +337,8 @@ class ASSETPIPE_OT_sync_push(bpy.types.Operator):
|
|||||||
return context.window_manager.invoke_props_dialog(self, width=400)
|
return context.window_manager.invoke_props_dialog(self, width=400)
|
||||||
|
|
||||||
def draw(self, context: bpy.types.Context):
|
def draw(self, context: bpy.types.Context):
|
||||||
|
prefs = get_addon_prefs()
|
||||||
|
if prefs.is_advanced_mode:
|
||||||
self.layout.prop(self, "pull")
|
self.layout.prop(self, "pull")
|
||||||
self.layout.prop(self, "save")
|
self.layout.prop(self, "save")
|
||||||
sync_draw(self, context)
|
sync_draw(self, context)
|
||||||
|
Loading…
Reference in New Issue
Block a user