mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed few hounds
This commit is contained in:
parent
548100e04f
commit
cf5bf6f49c
4 changed files with 12 additions and 11 deletions
|
|
@ -1,10 +1,12 @@
|
|||
"""Main entrypoint for standalone debugging"""
|
||||
"""
|
||||
"""Main entrypoint for standalone debugging
|
||||
|
||||
Used for running 'avalon.tool.loader.__main__' as a module (-m), useful for
|
||||
debugging without need to start host.
|
||||
|
||||
Modify AVALON_MONGO accordingly
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
from . import cli
|
||||
|
||||
|
||||
|
|
@ -17,7 +19,6 @@ def my_exception_hook(exctype, value, traceback):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import os
|
||||
os.environ["AVALON_MONGO"] = "mongodb://localhost:27017"
|
||||
os.environ["OPENPYPE_MONGO"] = "mongodb://localhost:27017"
|
||||
os.environ["AVALON_DB"] = "avalon"
|
||||
|
|
@ -26,9 +27,6 @@ if __name__ == '__main__':
|
|||
os.environ["AVALON_CONFIG"] = "pype"
|
||||
os.environ["AVALON_ASSET"] = "Jungle"
|
||||
|
||||
|
||||
import sys
|
||||
|
||||
# Set the exception hook to our wrapping function
|
||||
sys.excepthook = my_exception_hook
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import collections
|
|||
|
||||
from Qt import QtWidgets, QtCore, QtGui
|
||||
|
||||
from avalon import api, io, pipeline
|
||||
from avalon import api, pipeline
|
||||
from avalon.lib import HeroVersionType
|
||||
|
||||
from openpype.tools.utils import lib as tools_lib
|
||||
|
|
@ -1173,8 +1173,10 @@ class RepresentationWidget(QtWidgets.QWidget):
|
|||
repre_context
|
||||
):
|
||||
if tools_lib.is_sync_loader(loader):
|
||||
both_unavailable = item["active_site_progress"] <= 0 and \
|
||||
item["remote_site_progress"] <= 0
|
||||
both_unavailable = (
|
||||
item["active_site_progress"] <= 0
|
||||
and item["remote_site_progress"] <= 0
|
||||
)
|
||||
if both_unavailable:
|
||||
continue
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,8 @@ class AssetDelegate(QtWidgets.QItemDelegate):
|
|||
else:
|
||||
bg_color.setAlpha(0)
|
||||
|
||||
# # -- When not needed to do a rounded corners (easier and without painter restore):
|
||||
# When not needed to do a rounded corners (easier and without
|
||||
# painter restore):
|
||||
# painter.fillRect(
|
||||
# item_rect,
|
||||
# QtGui.QBrush(bg_color)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from . import lib
|
|||
from Qt import QtWidgets, QtCore, QtGui
|
||||
from avalon.vendor import qtawesome, qargparse
|
||||
|
||||
from avalon import style, io
|
||||
from avalon import style
|
||||
|
||||
from .models import AssetModel, RecursiveSortFilterProxyModel
|
||||
from .views import AssetsView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue