Skip to content

Commit d8252bc

Browse files
committed
fix
1 parent 826b74c commit d8252bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

source/isaaclab/isaaclab/scene/interactive_scene.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def __init__(self, cfg: InteractiveSceneCfg):
215215
if self.cfg.filter_collisions and "physx" in self.physics_backend:
216216
self.filter_collisions(self._global_prim_paths)
217217

218-
def _build_clone_plan_from_cfg(self) -> cloner.ClonePlan:
218+
def _build_clone_plan_from_cfg(self) -> cloner.ClonePlan | None:
219219
"""Build a clone plan from scene cfg spawn variants and write planned spawn paths."""
220220

221221
def num_variants(spawn_cfg) -> int:
@@ -251,6 +251,9 @@ def set_spawn_paths(spawn_cfg, paths: list[str | None]) -> None:
251251
raise ValueError(f"Spawner at '{prim_path}' must have at least one variant.")
252252
groups.append((cfg.spawn, prim_path.replace(self.env_regex_ns, self.env_fmt), count))
253253

254+
if not groups:
255+
return None
256+
254257
# Homogeneous scenes still spawn sources at env_0, but publish the simpler env-root plan.
255258
if all(count == 1 for _, _, count in groups):
256259
for spawn_cfg, destination, _ in groups:

0 commit comments

Comments
 (0)