Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into enhancement/publ…
Browse files Browse the repository at this point in the history
…ish_instances_uuid_from_host
  • Loading branch information
BigRoy committed Aug 28, 2023
2 parents 6da94d4 + 437f483 commit 419c9f4
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ body:
label: Version
description: What version are you running? Look to OpenPype Tray
options:
- 3.16.5-nightly.2
- 3.16.5-nightly.1
- 3.16.4
- 3.16.4-nightly.3
- 3.16.4-nightly.2
Expand Down Expand Up @@ -133,8 +135,6 @@ body:
- 3.14.8-nightly.4
- 3.14.8-nightly.3
- 3.14.8-nightly.2
- 3.14.8-nightly.1
- 3.14.7
validations:
required: true
- type: dropdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin,
"FTRACK_SERVER",
"AVALON_APP_NAME",
"OPENPYPE_USERNAME",
"OPENPYPE_SG_USER"
"OPENPYPE_SG_USER",
"KITSU_LOGIN",
"KITSU_PWD"
]

# custom deadline attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def _ensure_asset_version_exists(
status_name = asset_version_data.pop("status_name", None)

# Try query asset version by criteria (asset id and version)
version = asset_version_data.get("version") or 0
version = asset_version_data.get("version") or "0"
asset_version_entity = self._query_asset_version(
session, version, asset_id
)
Expand Down
5 changes: 2 additions & 3 deletions openpype/pipeline/farm/pyblish_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_transferable_representations(instance):
to_transfer = []

for representation in instance.data.get("representations", []):
if "publish_on_farm" not in representation.get("tags"):
if "publish_on_farm" not in representation.get("tags", []):
continue

trans_rep = representation.copy()
Expand Down Expand Up @@ -265,8 +265,7 @@ def create_skeleton_instance(
instance_skeleton_data[v] = instance.data.get(v)

representations = get_transferable_representations(instance)
instance_skeleton_data["representations"] = []
instance_skeleton_data["representations"] += representations
instance_skeleton_data["representations"] = representations

persistent = instance.data.get("stagingDir_persistent") is True
instance_skeleton_data["stagingDir_persistent"] = persistent
Expand Down
3 changes: 2 additions & 1 deletion openpype/plugins/publish/extract_thumbnail_from_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _create_thumbnail(self, context, thumbnail_source):
if thumbnail_created:
return full_output_path

self.log.warning("Thumbanil has not been created.")
self.log.warning("Thumbnail has not been created.")

def _instance_has_thumbnail(self, instance):
if "representations" not in instance.data:
Expand All @@ -147,6 +147,7 @@ def create_thumbnail_oiio(self, src_path, dst_path):
oiio_cmd = get_oiio_tool_args(
"oiiotool",
"-a", src_path,
"--ch", "R,G,B",
"-o", dst_path
)
self.log.info("Running: {}".format(" ".join(oiio_cmd)))
Expand Down
8 changes: 8 additions & 0 deletions openpype/tools/attribute_defs/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ def current_value(self):
return self._input_widget.text()

def set_value(self, value, multivalue=False):
block_signals = False
if multivalue:
set_value = set(value)
if None in set_value:
Expand All @@ -352,13 +353,18 @@ def set_value(self, value, multivalue=False):
if len(set_value) == 1:
value = tuple(set_value)[0]
else:
block_signals = True
value = "< Multiselection >"

if value != self.current_value():
if block_signals:
self._input_widget.blockSignals(True)
if self.multiline:
self._input_widget.setPlainText(value)
else:
self._input_widget.setText(value)
if block_signals:
self._input_widget.blockSignals(False)


class BoolAttrWidget(_BaseAttrDefWidget):
Expand Down Expand Up @@ -391,7 +397,9 @@ def set_value(self, value, multivalue=False):
set_value.add(self.attr_def.default)

if len(set_value) > 1:
self._input_widget.blockSignals(True)
self._input_widget.setCheckState(QtCore.Qt.PartiallyChecked)
self._input_widget.blockSignals(False)
return
value = tuple(set_value)[0]

Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/publisher/widgets/overview_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def __init__(self, controller, parent):
def make_sure_animation_is_finished(self):
if self._change_anim.state() == QtCore.QAbstractAnimation.Running:
self._change_anim.stop()
self._on_change_anim_finished()
self._on_change_anim_finished()

def set_state(self, new_state, animate):
if new_state == self._current_state:
Expand Down
2 changes: 1 addition & 1 deletion openpype/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
"""Package declaring Pype version."""
__version__ = "3.16.5-nightly.1"
__version__ = "3.16.5-nightly.2"

0 comments on commit 419c9f4

Please sign in to comment.