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

Maya + Yeti: Fix yeti cache load using wrong name in edge case #3841

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

BigRoy
Copy link
Collaborator

@BigRoy BigRoy commented Sep 13, 2022

Brief description

We hit this issue when the code was trying to create a group node that by pure luck had a node name that matched exactly with a name that was also in the namespace - thus maya would auto-rename the created group node.

As such group_name != group_node and the .setOutlinerColor failed to do its job correctly.

Description

This fixes it by actually using the node name returned by maya.

Testing notes:

Might be hard to test the specific edge case since I'm not entirely sure how we got the exact name match. But just testing a Yeti publish + load to begin with should be a good test.

  1. Load a Yeti Cache.

@LiborBatek LiborBatek self-assigned this Sep 14, 2022
@LiborBatek
Copy link
Member

Hi Roy,
will test it out ASAP. We got finally free license for Yeti from Peregrine so it just depends when it will be running @m-u-r-p-h-y

@LiborBatek
Copy link
Member

Tried out to test it however I have no clue how to get conditions like that :) ...cant get my head around this problem resp how to create such conditions.

However when tested at least yeti publish/load Im encountering the same issue as in here #3404
So I guess it need to be sorted first.

Copy link
Member

@LiborBatek LiborBatek left a comment

Choose a reason for hiding this comment

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

I am not able to prepare such conditions for testing...sorry. Anyone have idea?!

Copy link
Member

@antirotor antirotor left a comment

Choose a reason for hiding this comment

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

group_node is better to use then previous group_name, thanks

@antirotor antirotor merged commit a4ec78b into ynput:develop Nov 15, 2022
@github-actions github-actions bot added this to the next-patch milestone Nov 15, 2022
@BigRoy BigRoy deleted the maya_yeti_fix_name_clash branch March 20, 2024 15:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants