Autodesk / Autodesk/maya-usd

[MAYA-128016] Selection highlight in viewport does not show up on a prim after toggling "Mark/Unmark as Instanceable"

Open
#2,652 4 comments 2 reactions 1 assignee Claimed by @santosg87 View on GitHub
bug
Dominant language
Wolfram Language
Stars
905
Forks
223
Avg merge
2d 9h
Merged PRs (30d)
17

Description

**Describe the bug**
A prim that has been marked or unmarked as instanceable does not have the selection highlighted in the viewport.

Similar to #2651: it appears to be selected in the Outliner, however, the highlight is not displayed in the viewport. If we try to re-select the object in the viewport or outliner, it does not appear. It only appears after you move the prim and then, re-select it.

**Steps to reproduce**
Steps to reproduce the behavior:
1. Open `Kitchen_Set_instanced`
3. Select `ChairB_1`
4. Right click and select "Unmark as instanceable"

Notice that the `ChairB_1` is selected in the outliner but it is not highlighted in the viewport. The same behaviour can be observed if you open `Kitchen_set` and "Mark as instanceable"

It also prints the following error in the script editor:
`// Error: Couldn't find primInfo for cache path /Kitchen_set/Props_grp/DiningTable_grp/ChairB_1
`

**Expected behavior**
We would expect the selection highlight to reflect what is selected in the viewport.

**Attachments**
![unmarkasinstanceable_highlight_error](https://user-images.githubusercontent.com/12554015/195693262-2f8a389d-e770-476f-891b-b6fb821c60e2.gif)

**Specs (if applicable):**
- Linux
- maya2023.2
- Maya USD commit SHA [dev at 302f393]
- Pixar USD commit SHA [dev at 60ed06c]

Pixar Internal JIRA MAYA-3508

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.