Commit 91cf1b9
Guard against None PhysicsManager._cfg in _apply_sdf_config
The cloner calls _apply_sdf_config unconditionally on each prototype.
If PhysicsManager._cfg is None at that point, cfg.sdf_cfg would raise
AttributeError. Add an early return when cfg is None, matching the
guard already used in the cloner's pattern compilation code.1 parent a0ac249 commit 91cf1b9
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
484 | 486 | | |
485 | 487 | | |
486 | 488 | | |
| |||
0 commit comments