mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +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 {
|
} else {
|
||||||
Entities.editEntity(childID, { parentID: NULL_UUID });
|
if (childType == "entity") {
|
||||||
if (Overlays.getProperty(childID, "grabbable")) {
|
Entities.editEntity(childID, { parentID: NULL_UUID });
|
||||||
Overlays.editOverlay(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