Exemplo n.º 1
0
        public void MouseLeftDown(Point mousePosition)
        {
            var nodeId = _sceneEditor.GetTopmostNodeIdAt(mousePosition, null);

            if (nodeId != null)
            {
                _sceneEditor.Editor.NodeSelection.SelectSingle(nodeId.Value);
                var sceneEditorItem = _sceneEditor.GetEditorItem(nodeId.Value);
                _sceneEditor.StartMouseDragOperation(new TranslateItemOperation(_sceneEditor, sceneEditorItem, mousePosition.ToVector()));
            }
            else
            {
                _sceneEditor.Editor.NodeSelection.Clear();
            }
        }
Exemplo n.º 2
0
 public void MouseLeftDown(Point mousePosition)
 {
     _sceneEditor.StartMouseDragOperation(new DrawBoneOperation(_sceneEditor, mousePosition.ToVector()));
 }