Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onChangeTool(newValue) {
GuiSculptingTools.hide(this._sculptManager.getToolIndex());
this._sculptManager.setToolIndex(newValue);
GuiSculptingTools.show(newValue);
var showContinuous = this._sculptManager.canBeContinuous() === true;
this._ctrlContinuous.setVisibility(showContinuous);
var showSym = newValue !== Enums.Tools.TRANSFORM;
this._ctrlSymmetry.setVisibility(showSym);
this._ctrlTitleCommon.setVisibility(showContinuous || showSym);
this._main.getPicking().updateLocalAndWorldRadius2();
}