Commit bcf03d6
committed
fix(Presence): fix crash on object grab if no collider is present
The Player Presence script checks to see if a grabbed object has a
collider so it can ignore collisions with grabbed objects. However,
if the grabbed object doesn't have a collider but it's children do
then it would crash. This fix prevents that and checks for child
colliders to remove the physics collisions from.1 parent 09abdc6 commit bcf03d6
File tree
2 files changed
+10
-1
lines changed- Assets/SteamVR_Unity_Toolkit/Scripts
2 files changed
+10
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments