Add parent and unparent buttons

Add parent and unparent buttons
This commit is contained in:
Alezia Kurdis 2020-09-30 00:42:15 -04:00 committed by GitHub
parent 94d030fb5c
commit 16324ace16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,7 @@
var PROFILING_ENABLED = false;
var profileIndent = '';
const PROFILE_NOOP = function(_name, fn, args) {
fn.apply(this, args);
};
@ -316,6 +317,12 @@ EntityListTool = function(shouldUseEditTabletApp) {
undoHistory.undo();
} else if (data.type === 'redo') {
undoHistory.redo();
} else if (data.type === 'parent') {
parentSelectedEntities();
} else if (data.type === 'unparent') {
unparentSelectedEntities();
} else if (data.type === 'hmdMultiSelectMode') {
hmdMultiSelectMode = data.value;
}
};