Asset Pipeline v2 #145
@ -94,6 +94,12 @@ class ASSETPIPE_OT_sync_with_publish(bpy.types.Operator):
|
|||||||
_temp_transfer_data = None
|
_temp_transfer_data = None
|
||||||
_invalid_objs = []
|
_invalid_objs = []
|
||||||
|
|
||||||
|
expand: bpy.props.BoolProperty(
|
||||||
|
name="Show New Transfer Data",
|
||||||
|
default=False,
|
||||||
|
description="Show New Transfer Data",
|
||||||
|
)
|
||||||
|
|
||||||
save: bpy.props.BoolProperty(
|
save: bpy.props.BoolProperty(
|
||||||
name="Save Current File",
|
name="Save Current File",
|
||||||
default=True,
|
default=True,
|
||||||
@ -150,9 +156,14 @@ class ASSETPIPE_OT_sync_with_publish(bpy.types.Operator):
|
|||||||
layout.label(text="No New Transfer Data found")
|
layout.label(text="No New Transfer Data found")
|
||||||
else:
|
else:
|
||||||
layout.label(text="New Transfer Data will be Pushed to Publish")
|
layout.label(text="New Transfer Data will be Pushed to Publish")
|
||||||
|
row = layout.row()
|
||||||
|
row.prop(self, "expand", text="", icon="COLLAPSEMENU", toggle=False)
|
||||||
|
row.label(text="Show New Transfer Data")
|
||||||
objs = [transfer_info.obj for transfer_info in self._temp_transfer_data]
|
objs = [transfer_info.obj for transfer_info in self._temp_transfer_data]
|
||||||
|
|
||||||
|
if not self.expand:
|
||||||
|
return
|
||||||
|
|
||||||
for obj in set(objs):
|
for obj in set(objs):
|
||||||
obj_ownership = [
|
obj_ownership = [
|
||||||
transfer_info
|
transfer_info
|
||||||
|
Loading…
Reference in New Issue
Block a user