mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
comsetic fix
This commit is contained in:
parent
fafcbe8992
commit
10e66c4c39
3 changed files with 13 additions and 6 deletions
|
|
@ -273,7 +273,8 @@ class InventoryModel(QtGui.QStandardItemModel):
|
|||
) = self._get_status_data(project_name, status_name)
|
||||
|
||||
repre_name = (
|
||||
repre_info.representation_name or "<unknown representation>"
|
||||
repre_info.representation_name or
|
||||
"<unknown representation>"
|
||||
)
|
||||
container_model_items = []
|
||||
for container_item in container_items:
|
||||
|
|
@ -281,7 +282,8 @@ class InventoryModel(QtGui.QStandardItemModel):
|
|||
unique_name = repre_name + object_name
|
||||
item = QtGui.QStandardItem()
|
||||
item.setColumnCount(root_item.columnCount())
|
||||
item.setData(container_item.namespace, QtCore.Qt.DisplayRole)
|
||||
item.setData(container_item.namespace,
|
||||
QtCore.Qt.DisplayRole)
|
||||
item.setData(self.GRAYOUT_COLOR, NAME_COLOR_ROLE)
|
||||
item.setData(self.GRAYOUT_COLOR, VERSION_COLOR_ROLE)
|
||||
item.setData(item_icon, QtCore.Qt.DecorationRole)
|
||||
|
|
@ -290,7 +292,8 @@ class InventoryModel(QtGui.QStandardItemModel):
|
|||
item.setData(version_label, VERSION_LABEL_ROLE)
|
||||
item.setData(container_item.loader_name, LOADER_NAME_ROLE)
|
||||
item.setData(container_item.object_name, OBJECT_NAME_ROLE)
|
||||
item.setData(container_item.project_name, PROJECT_NAME_ROLE)
|
||||
item.setData(container_item.project_name,
|
||||
PROJECT_NAME_ROLE)
|
||||
item.setData(True, IS_CONTAINER_ITEM_ROLE)
|
||||
item.setData(unique_name, ITEM_UNIQUE_NAME_ROLE)
|
||||
container_model_items.append(item)
|
||||
|
|
|
|||
|
|
@ -362,7 +362,8 @@ class ContainersModel:
|
|||
current_project_name = self._controller.get_current_project_name()
|
||||
for container in containers:
|
||||
try:
|
||||
item = ContainerItem.from_container_data(current_project_name, container)
|
||||
item = ContainerItem.from_container_data(
|
||||
current_project_name, container)
|
||||
repre_id = item.representation_id
|
||||
try:
|
||||
uuid.UUID(repre_id)
|
||||
|
|
|
|||
|
|
@ -802,7 +802,9 @@ class SceneInventoryView(QtWidgets.QTreeView):
|
|||
)
|
||||
|
||||
repre_info_by_project[project_name] = repres_info
|
||||
version_items_by_project[project_name] = version_items_by_product_id
|
||||
version_items_by_project[project_name] = (
|
||||
version_items_by_product_id
|
||||
)
|
||||
|
||||
active_version_id = active_repre_info.version_id
|
||||
# active_product_id = active_repre_info.product_id
|
||||
|
|
@ -994,7 +996,8 @@ class SceneInventoryView(QtWidgets.QTreeView):
|
|||
|
||||
def _on_switch_to_versioned(self, item_ids):
|
||||
# Get container items by ID
|
||||
containers_items_by_id = self._controller.get_container_items_by_id(item_ids)
|
||||
containers_items_by_id = self._controller.get_container_items_by_id(
|
||||
item_ids)
|
||||
# Extract project names and their corresponding representation IDs
|
||||
repre_ids_by_project = collections.defaultdict(set)
|
||||
for container_item in containers_items_by_id.values():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue