Skip to content

Commit

Permalink
Merge pull request #13 from quadproduction/release/4.0.6
Browse files Browse the repository at this point in the history
release/4.0.6
  • Loading branch information
BenSouchet authored Dec 3, 2024
2 parents cf2cbd1 + 9f19725 commit 1111955
Show file tree
Hide file tree
Showing 16 changed files with 359 additions and 314 deletions.
4 changes: 1 addition & 3 deletions src/quadpype/host/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from .interfaces import (
IWorkfileHost,
ILoadHost,
IPublishHost,
INewPublisher,
IPublishHost
)

from .dirmap import HostDirmap
Expand All @@ -18,7 +17,6 @@
"IWorkfileHost",
"ILoadHost",
"IPublishHost",
"INewPublisher",

"HostDirmap",
)
14 changes: 0 additions & 14 deletions src/quadpype/host/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,17 +368,3 @@ def update_context_data(self, data, changes):
"""

pass


class INewPublisher(IPublishHost):
"""Legacy interface replaced by 'IPublishHost'.
Deprecated:
'INewPublisher' is replaced by 'IPublishHost' please change your
imports.
There is no "reasonable" way hot mark these classes as deprecated
to show warning of wrong import. Deprecated since 3.14.* will be
removed in 3.15.*
"""

pass
24 changes: 0 additions & 24 deletions src/quadpype/hosts/maya/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,6 @@ def _get_attr(node, attr, default=None):
return cmds.getAttr("{}.{}".format(node, attr))


# Backwards compatibility: these functions has been moved to lib.
def get_reference_node(*args, **kwargs):
"""Get the reference node from the container members
Deprecated:
This function was moved and will be removed in 3.16.x.
"""
msg = "Function 'get_reference_node' has been moved."
log.warning(msg)
cmds.warning(msg)
return lib.get_reference_node(*args, **kwargs)


def get_reference_node_parents(*args, **kwargs):
"""
Deprecated:
This function was moved and will be removed in 3.16.x.
"""
msg = "Function 'get_reference_node_parents' has been moved."
log.warning(msg)
cmds.warning(msg)
return lib.get_reference_node_parents(*args, **kwargs)


class MayaCreatorBase(ABC):

@staticmethod
Expand Down
4 changes: 3 additions & 1 deletion src/quadpype/lib/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ def get_user_settings(self):
document = self.collection.find_one({
"user_id": self.user_id
})
# Key renaming Required to work with the cache system
document["data"] = document.pop("settings")

self.user_settings_cache.update_from_document(document["settings"], None)
self.user_settings_cache.update_from_document(document, None)

return self.user_settings_cache.data_copy()

Expand Down
8 changes: 0 additions & 8 deletions src/quadpype/tools/publisher/widgets/thumbnail_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ def _paint_default_pix(self, pix_width, pix_height):
QtGui.QPainter.Antialiasing
| QtGui.QPainter.SmoothPixmapTransform
)
if hasattr(QtGui.QPainter, "HighQualityAntialiasing"):
render_hints |= QtGui.QPainter.HighQualityAntialiasing

pix_painter.setRenderHints(render_hints)
pix_painter.drawPixmap(pos_x, pos_y, scaled_pix)
pix_painter.end()
Expand Down Expand Up @@ -168,8 +165,6 @@ def _draw_thumbnails(self, thumbnails, pix_width, pix_height):
QtGui.QPainter.Antialiasing
| QtGui.QPainter.SmoothPixmapTransform
)
if hasattr(QtGui.QPainter, "HighQualityAntialiasing"):
render_hints |= QtGui.QPainter.HighQualityAntialiasing
pix_painter.setRenderHints(render_hints)

tiled_rect = QtCore.QRectF(
Expand Down Expand Up @@ -262,9 +257,6 @@ def _cache_pix(self):
QtGui.QPainter.Antialiasing
| QtGui.QPainter.SmoothPixmapTransform
)
if hasattr(QtGui.QPainter, "HighQualityAntialiasing"):
render_hints |= QtGui.QPainter.HighQualityAntialiasing

final_painter.setRenderHints(render_hints)

final_painter.setBrush(QtGui.QBrush(self.thumbnail_bg_color))
Expand Down
Loading

0 comments on commit 1111955

Please sign in to comment.