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

Cannot switch asset from hero version to versioned #3689

Closed
simonebarbieri opened this issue Aug 18, 2022 · 0 comments · Fixed by #3691
Closed

Cannot switch asset from hero version to versioned #3689

simonebarbieri opened this issue Aug 18, 2022 · 0 comments · Fixed by #3691
Labels
type: bug Something isn't working

Comments

@simonebarbieri
Copy link
Contributor

simonebarbieri commented Aug 18, 2022

Describe the bug
It is impossible to switch an asset from hero version to versioned again. It gives the following error:

// Traceback (most recent call last):
//   File "C:\Dev\OpenPype\openpype\openpype\tools\sceneinventory\view.py", line 202, in _on_switch_to_versioned
//     update_container(item, version_name)
//   File "C:\Dev\OpenPype\openpype\openpype\pipeline\load\utils.py", line 453, in update_container
//     loader = Loader(get_representation_context(container["representation"]))
//   File "C:\Dev\OpenPype\openpype\openpype\pipeline\load\utils.py", line 229, in get_representation_context
//     assert all([representation, version, subset, asset, project]), (
// AssertionError: This is a bug

To Reproduce
Steps to reproduce the behavior:

  1. From the Scene Inventory, set any asset as hero version.
  2. Try to set the same asset to versioned.

Desktop (please complete the following information):

  • OS: Windows 11
  • Host: Maya and Blender (but likely affects all the DCCs)

[cuID:2r78gx9]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant