Browse Source

Move showManipulationToolbar outside of if statement (#3694)

develop
Tasman Drake 6 years ago
committed by Yotam Berkowitz
parent
commit
4d1af99987
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/network/modules/ManipulationSystem.js

+ 1
- 1
lib/network/modules/ManipulationSystem.js View File

@ -1156,8 +1156,8 @@ class ManipulationSystem {
this.options.addNode(defaultData, (finalizedData) => { this.options.addNode(defaultData, (finalizedData) => {
if (finalizedData !== null && finalizedData !== undefined && this.inMode === 'addNode') { // if for whatever reason the mode has changes (due to dataset change) disregard the callback if (finalizedData !== null && finalizedData !== undefined && this.inMode === 'addNode') { // if for whatever reason the mode has changes (due to dataset change) disregard the callback
this.body.data.nodes.getDataSet().add(finalizedData); this.body.data.nodes.getDataSet().add(finalizedData);
this.showManipulatorToolbar();
} }
this.showManipulatorToolbar();
}); });
} }
else { else {

Loading…
Cancel
Save