mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 19:34:02 +02:00
avoid calling editEntity on overlays
This commit is contained in:
parent
a7c684e007
commit
900fae30fd
1 changed files with 6 additions and 3 deletions
|
@ -3912,9 +3912,12 @@ function MyController(hand) {
|
|||
}
|
||||
|
||||
} else {
|
||||
Entities.editEntity(childID, { parentID: NULL_UUID });
|
||||
if (Overlays.getProperty(childID, "grabbable")) {
|
||||
Overlays.editOverlay(childID, { parentID: NULL_UUID });
|
||||
if (childType == "entity") {
|
||||
Entities.editEntity(childID, { parentID: NULL_UUID });
|
||||
} else if (childType == "overlay") {
|
||||
if (Overlays.getProperty(childID, "grabbable")) {
|
||||
Overlays.editOverlay(childID, { parentID: NULL_UUID });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue