Questions about isAttributeEditAllowed function. #2212
-
Hi, I found some of the logic in maya-usd/lib/mayaUsd/ufe/Utils.cpp Line 378 in 166a2ba The following line of code checks the edit target layer’s position in the given prim: maya-usd/lib/mayaUsd/ufe/Utils.cpp Line 390 in 166a2ba But if it couldn’t find the layer in the prim’s layer stack, it still returns a position number and still check the prim’s property’s layer stack maya-usd/lib/mayaUsd/ufe/Utils.cpp Line 410 in 166a2ba But if a layer is not in a prim’s layer stack, it certainly will not in the prim’s property’s layer stack. So I’d think when the edit target layer is not in a prim’s layer stack, We found this issue just recently in maya 2022 because in maya 2020 From my understanding, the intention for |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi Nick, I looked a little more into this and I tend to agree with the things you say. Its always difficult when it comes to the implied restrictions imposed and I don't have a strong "opinion" on what to enforce with certain workflows. It clearly is not a one size fits all approach. Saying that in this case I think the |
Beta Was this translation helpful? Give feedback.
-
Thank you Neil. This issue is currently a blocker in our maya 2022 pipeline at Animal Logic, so we are making an internal code change for this. I can send a PR that is similar to what we did internally and start the conversation from there. |
Beta Was this translation helpful? Give feedback.
-
I have created a PR for this issue #2390. |
Beta Was this translation helpful? Give feedback.
Hi Nick,
I looked a little more into this and I tend to agree with the things you say. Its always difficult when it comes to the implied restrictions imposed and I don't have a strong "opinion" on what to enforce with certain workflows. It clearly is not a one size fits all approach. Saying that in this case I think the
findLayerIndex
code non intuitive in that it returns a position which then causes the additional search inisAttributeEditAllowed
which can cause thefalse
condition. So in this case I think it can be relaxed but would need to do so more verification to see if it breaks any other logic. As a group we are revisiting the strength of Options being imposed and I look forward t…