mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
Add Parent-Children Selector group
Add Parent-Children Selector group Prevent action to happen when some entities are Locked in the Selection Code Adjustments
This commit is contained in:
parent
6da472b7e3
commit
ba371613ba
1 changed files with 13 additions and 3 deletions
|
@ -207,11 +207,11 @@ EntityListTool = function(shouldUseEditTabletApp) {
|
|||
var parentStatus = getParentState(ids[i]);
|
||||
var parentState = "";
|
||||
if (parentStatus === "PARENT") {
|
||||
parentState = "N";
|
||||
parentState = "A";
|
||||
} else if (parentStatus === "CHILDREN") {
|
||||
parentState = "O";
|
||||
parentState = "C";
|
||||
} else if (parentStatus === "PARENT_CHILDREN") {
|
||||
parentState = "M";
|
||||
parentState = "B";
|
||||
}
|
||||
|
||||
entities.push({
|
||||
|
@ -339,6 +339,16 @@ EntityListTool = function(shouldUseEditTabletApp) {
|
|||
selectAllEntitiesInCurrentSelectionBox(false);
|
||||
} else if (data.type === 'selectAllTouchingBox') {
|
||||
selectAllEntitiesInCurrentSelectionBox(true);
|
||||
} else if (data.type === 'selectParent') {
|
||||
SelectionManager.selectParent();
|
||||
} else if (data.type === 'selectTopParent') {
|
||||
SelectionManager.selectTopParent();
|
||||
} else if (data.type === 'addChildrenToSelection') {
|
||||
SelectionManager.addChildrenToSelection();
|
||||
} else if (data.type === 'selectFamily') {
|
||||
SelectionManager.selectFamily();
|
||||
} else if (data.type === 'selectTopFamily') {
|
||||
SelectionManager.selectTopFamily();
|
||||
} else if (data.type === 'teleportToEntity') {
|
||||
SelectionManager.teleportToEntity();
|
||||
} else if (data.type === 'moveEntitySelectionToAvatar') {
|
||||
|
|
Loading…
Reference in a new issue