Final set of actions
This commit is contained in:
1 parent
267f75aa9e
commit
9bbabb14ca
2 files changed
+9
-9
No files matched your search
@@ -585,7 +585,7 @@ function newUiObject() {
|
||||
let THRESHOLD = 1.15
|
||||
|
||||
if (ratio > THRESHOLD) {
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Parent Detach', project: 'Foundations' })
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Parent Detach', project: 'Visual-Scripting' })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -692,7 +692,7 @@ function newUiObject() {
|
||||
let THRESHOLD = 1.15
|
||||
|
||||
if (ratio > THRESHOLD) {
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Reference Detach', project: 'Foundations' })
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Reference Detach', project: 'Visual-Scripting' })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1387,14 +1387,14 @@ function newUiObject() {
|
||||
|
||||
function onDragFinished(event) {
|
||||
if (isChainAttaching === true) {
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Parent Attach', project: 'Foundations', relatedNode: chainAttachToNode })
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Parent Attach', project: 'Visual-Scripting', relatedNode: chainAttachToNode })
|
||||
chainAttachToNode = undefined
|
||||
isChainAttaching = false
|
||||
/* We want to avoid the situation in which we are attaching a node to its parent and at the same time referencing another node. */
|
||||
isReferenceAttaching = false
|
||||
}
|
||||
if (isReferenceAttaching === true) {
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Reference Attach', project: 'Foundations', relatedNode: referenceAttachToNode })
|
||||
UI.projects.foundations.spaces.designSpace.workspace.executeAction({ node: thisObject.payload.node, name: 'Reference Attach', project: 'Visual-Scripting', relatedNode: referenceAttachToNode })
|
||||
referenceAttachToNode = undefined
|
||||
isReferenceAttaching = false
|
||||
}
|
||||
|
||||
@@ -322,7 +322,7 @@ function newUiObjectConstructor() {
|
||||
{
|
||||
action: 'Backup',
|
||||
actionFunction: floatingObject.payload.executeAction,
|
||||
actionProject: 'Foundations',
|
||||
actionProject: 'Visual-Scripting',
|
||||
label: undefined,
|
||||
visible: true,
|
||||
iconPathOn: 'backup-entity',
|
||||
@@ -337,7 +337,7 @@ function newUiObjectConstructor() {
|
||||
{
|
||||
action: 'Clone',
|
||||
actionFunction: floatingObject.payload.executeAction,
|
||||
actionProject: 'Foundations',
|
||||
actionProject: 'Visual-Scripting',
|
||||
label: undefined,
|
||||
visible: true,
|
||||
iconPathOn: 'clone-entity',
|
||||
@@ -353,7 +353,7 @@ function newUiObjectConstructor() {
|
||||
{
|
||||
action: 'Share',
|
||||
actionFunction: floatingObject.payload.executeAction,
|
||||
actionProject: 'Foundations',
|
||||
actionProject: 'Visual-Scripting',
|
||||
label: undefined,
|
||||
visible: true,
|
||||
iconPathOn: 'share-entity',
|
||||
@@ -403,7 +403,7 @@ function newUiObjectConstructor() {
|
||||
askConfirmation: true,
|
||||
confirmationLabel: "Confirm to Detach",
|
||||
actionFunction: floatingObject.payload.executeAction,
|
||||
actionProject: 'Foundations',
|
||||
actionProject: 'Visual-Scripting',
|
||||
label: undefined,
|
||||
visible: true,
|
||||
iconPathOn: 'detach-node',
|
||||
@@ -420,7 +420,7 @@ function newUiObjectConstructor() {
|
||||
askConfirmation: true,
|
||||
confirmationLabel: "Confirm to Detach",
|
||||
actionFunction: floatingObject.payload.executeAction,
|
||||
actionProject: 'Foundations',
|
||||
actionProject: 'Visual-Scripting',
|
||||
label: undefined,
|
||||
visible: true,
|
||||
iconPathOn: 'delink-node',
|
||||
|
||||
Reference in new issue
Block a user