omni::connect::core::canRemovePrim

Defined in omni/connect/core/StageAlgo.h

bool omni::connect::core::canRemovePrim(const pxr::UsdPrim &prim)

Determines if the given UsdPrim can be removed safely.

Multi-layer editing and Omniverse Live editing present challenges when trying to remove prims. We cannot always safely delete prims, sometimes they must must be deactivated instead. Use canRemovePrim to determine if a prim can be removed via the current UsdEditTarget, and if so, use removeOrDeactivatePrim to do it safely.

Parameters

prim – The prim to be removed.

Returns

A bool indicating if the prim can be removed.