_flattenInstance#
Fully qualified name: usd_optimize::_flattenInstance
-
bool usd_optimize::_flattenInstance(const PXR_NS::UsdPrim &prim)#
Completely remove instancing from a prim.
Assuming an instance, flattens the prim. This function turns off instanceable on the specified prim. It also removes composition (for example a reference to the thing being instanced) and replaces it with explicit properties. All children (what would be the instance proxies underneath the specified prim) are copied from what it was instancing.
The point of this function is to completely remove instancing so that if the thing being instanced went away it would still exist on its own.
- Returns:
Whether flattening succeeded