Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various minor bugfixes #4172

Merged
merged 5 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def launch(self, session, event):

new_status = asset_version_statuses.get(found_item["status"])
if not new_status:
self.log.warning(
self.log.warning((
"AssetVersion doesn't have status `{}`."
).format(found_item["status"])
).format(found_item["status"]))
continue

try:
Expand Down
2 changes: 1 addition & 1 deletion openpype/settings/defaults/project_settings/maya.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@
"current_context": [
{
"subset_name_filters": [
"\".+[Mm]ain\""
".+[Mm]ain"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antirotor Can you confirm this is ok?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is, there shouldn't be any double quotes

],
"families": [
"model"
Expand Down
18 changes: 6 additions & 12 deletions openpype/tools/standalonepublish/widgets/widget_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,11 @@ def _on_data_changed(self):
if item is None:
return

asset_doc = None
if asset_name != self.NOT_SELECTED:
# Get the assets from the database which match with the name
project_name = self.dbcon.active_project()
asset_doc = get_asset_by_name(
project_name, asset_name, fields=["_id"]
)

# Get plugin and family
plugin = item.data(PluginRole)

# Early exit if no asset name
if not asset_name.strip():
if (
asset_name == self.NOT_SELECTED
or not asset_name.strip()
):
self._build_menu([])
item.setData(ExistsRole, False)
print("Asset name is required ..")
Expand All @@ -210,8 +202,10 @@ def _on_data_changed(self):
asset_doc = get_asset_by_name(
project_name, asset_name, fields=["_id"]
)

# Get plugin
plugin = item.data(PluginRole)

if asset_doc and plugin:
asset_id = asset_doc["_id"]
task_name = self.dbcon.Session["AVALON_TASK"]
Expand Down