(stage: Any, prim_path: str)
| 846 | |
| 847 | |
| 848 | def _remove_prim_subtree(stage: Any, prim_path: str) -> None: |
| 849 | prim = stage.GetPrimAtPath(prim_path) |
| 850 | if prim is None or (hasattr(prim, "IsValid") and not prim.IsValid()): |
| 851 | return |
| 852 | stage.RemovePrim(prim_path) |
| 853 | |
| 854 | |
| 855 | def _ensure_xform(stage: Any, prim_path: str) -> None: |