mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Add "Copy ID"
This commit is contained in:
parent
6bee693d0c
commit
94a229b9e7
1 changed files with 13 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
|||
//
|
||||
// entitySelectionTool.js
|
||||
//
|
||||
// Created by Brad hefta-Gaub on 10/1/14.
|
||||
// Modified by Daniela Fontes * @DanielaFifo and Tiago Andrade @TagoWill on 4/7/2017
|
||||
// Modified by David Back on 1/9/2018
|
||||
// Created by Brad hefta-Gaub on October 1st, 2014.
|
||||
// Modified by Daniela Fontes * @DanielaFifo and Tiago Andrade @TagoWill on April 7th, 2017
|
||||
// Modified by David Back on January 9th, 2018
|
||||
// Copyright 2014 High Fidelity, Inc.
|
||||
// Copyright 2020 Vircadia contributors
|
||||
// Copyright 2022-2023 Overte e.V.
|
||||
// Copyright 2022-2024 Overte e.V.
|
||||
//
|
||||
// This script implements a class useful for building tools for editing entities.
|
||||
//
|
||||
|
@ -496,6 +496,15 @@ SelectionManager = (function() {
|
|||
that.createApp.deleteSelectedEntities();
|
||||
};
|
||||
|
||||
that.copyIdFromSelectedEntity = function() {
|
||||
if (that.selections.length !== 1) {
|
||||
audioFeedback.rejection();
|
||||
} else {
|
||||
Window.copyToClipboard(that.selections[0]);
|
||||
audioFeedback.confirmation();
|
||||
}
|
||||
};
|
||||
|
||||
that.copySelectedEntities = function() {
|
||||
var entityProperties = Entities.getMultipleEntityProperties(that.selections);
|
||||
var entityHostTypes = Entities.getMultipleEntityProperties(that.selections, 'entityHostType');
|
||||
|
|
Loading…
Reference in a new issue