mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:18:38 +02:00
Use Ctrl to duplicate entities instead of Alt
This commit is contained in:
parent
dd9b4a8143
commit
db1137fa0f
1 changed files with 4 additions and 4 deletions
|
@ -2039,10 +2039,10 @@ SelectionDisplay = (function() {
|
||||||
Vec3.print(" pickResult.intersection", pickResult.intersection);
|
Vec3.print(" pickResult.intersection", pickResult.intersection);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Duplicate entities if alt is pressed. This will make a
|
// Duplicate entities if Ctrl is pressed. This will make a
|
||||||
// copy of the selected entities and move the _original_ entities, not
|
// copy of the selected entities and move the _original_ entities, not
|
||||||
// the new ones.
|
// the new ones.
|
||||||
if (event.isAlt || doDuplicate) {
|
if (event.isControl || doDuplicate) {
|
||||||
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
||||||
var ids = [];
|
var ids = [];
|
||||||
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
||||||
|
@ -2265,10 +2265,10 @@ SelectionDisplay = (function() {
|
||||||
addHandleTool(overlay, {
|
addHandleTool(overlay, {
|
||||||
mode: mode,
|
mode: mode,
|
||||||
onBegin: function(event, pickRay, pickResult) {
|
onBegin: function(event, pickRay, pickResult) {
|
||||||
// Duplicate entities if alt is pressed. This will make a
|
// Duplicate entities if Ctrl is pressed. This will make a
|
||||||
// copy of the selected entities and move the _original_ entities, not
|
// copy of the selected entities and move the _original_ entities, not
|
||||||
// the new ones.
|
// the new ones.
|
||||||
if (event.isAlt) {
|
if (event.isControl) {
|
||||||
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
duplicatedEntityIDs = SelectionManager.duplicateSelection();
|
||||||
var ids = [];
|
var ids = [];
|
||||||
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
for (var i = 0; i < duplicatedEntityIDs.length; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue