-
Notifications
You must be signed in to change notification settings - Fork 202
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
MAYA-115117 Deactivate prim on pull instead of using exclude feature #2036
MAYA-115117 Deactivate prim on pull instead of using exclude feature #2036
Conversation
@@ -46,8 +46,7 @@ namespace { | |||
|
|||
// We want to display the unloaded prims, so removed UsdPrimIsLoaded from | |||
// the default UsdPrimDefaultPredicate. | |||
const Usd_PrimFlagsConjunction MayaUsdPrimDefaultPredicate | |||
= UsdPrimIsActive && UsdPrimIsDefined && !UsdPrimIsAbstract; | |||
const Usd_PrimFlagsConjunction MayaUsdPrimDefaultPredicate = UsdPrimIsDefined && !UsdPrimIsAbstract; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish the predicate in USD be more flexible!
@@ -98,7 +98,8 @@ class MAYAUSD_CORE_PUBLIC ProxyShapeHierarchy : public Ufe::Hierarchy | |||
|
|||
private: | |||
const PXR_NS::UsdPrim& getUsdRootPrim() const; | |||
Ufe::SceneItemList createUFEChildList(const PXR_NS::UsdPrimSiblingRange& range) const; | |||
Ufe::SceneItemList | |||
createUFEChildList(const PXR_NS::UsdPrimSiblingRange& range, bool filterInactive) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Negative boolean tend to be confusing. I would prefere this to be filter
with true meaning do filter, false meaning do not filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it mean filter-the-inactive-nodes and not make-filter-inactive... I mis-read the meaning of the variable.
Exclude prim is way too expensive for complex scenes since it repopulates the entire render index. We decided to switch to deactivation which reduces the cost to what changed.