src/controls.js
function onMouseUp(event, env, isSideEffectsDisabled) {
    mouse.up(event);

    if (!env || isSideEffectsDisabled) {
        return;
    }

    if (objectMoved) {
        if(env.selector.isSelectedEditable()) {
            events.triggerObjectChange(env.selector.getSelectedObject());
        }

        objectMoved = false;
    }
}
function onMouseUp(event, env, isSideEffectsDisabled) {
    mouse.up(event);

    if (!env || isSideEffectsDisabled) {
        return;
    }

    if (objectMoved) {
        if(env.selector.isSelectedEditable()) {
            events.triggerObjectChange(env.selector.getSelectedObject());
        }

        objectMoved = false;
    }
}
function onMouseUp ( event , env , isSideEffectsDisabled ) { mouse . up ( event ) ; if ( ! env || isSideEffectsDisabled ) { return ; } if ( objectMoved ) { if ( env . selector . isSelectedEditable ( ) ) { events . triggerObjectChange ( env . selector . getSelectedObject ( ) ) ; } objectMoved = false ; } }
Triggers object change
@alias module:lib3d.onMouseUp
@param {Object} event - mouse event
@param {Environment} env - affected environment
@param {Boolean} isSideEffectsDisabled - disable side effects like focusing, selecting, moving objects
Triggers object change