void DoLayout() { var rawType = Event.current.rawType; // TODO: rawType seems to be broken after calling Use(), use this Hack and remove it once it's fixed. var mousePosition = Event.current.mousePosition; // mousePosition is also affected by this bug and does not reflect the original position after a Use() Initialize(); HandleSplitterResize(); var processManipulators = Event.current.type != EventType.Repaint && Event.current.type != EventType.Layout; if (processManipulators) { // Update what's under mouse the cursor PickerUtils.DoPick(state, mousePosition); if (state.editSequence.asset != null) { m_PreTreeViewControl.HandleManipulatorsEvents(state); } } SequencerGUI(); if (processManipulators) { if (state.editSequence.asset != null) { m_PostTreeViewControl.HandleManipulatorsEvents(state); } } m_RectangleSelect.OnGUI(state, rawType, mousePosition); m_RectangleZoom.OnGUI(state, rawType, mousePosition); }
void DoLayout() { var mousePosition = Event.current.mousePosition; // mousePosition is also affected by this bug and does not reflect the original position after a Use() Initialize(); var processManipulators = Event.current.type != EventType.Repaint && Event.current.type != EventType.Layout; if (processManipulators) { // Update what's under mouse the cursor PickerUtils.DoPick(state, mousePosition); if (state.editSequence.asset != null) { m_PreTreeViewControl.HandleManipulatorsEvents(state); } } SequencerGUI(); if (processManipulators) { if (state.editSequence.asset != null) { m_PostTreeViewControl.HandleManipulatorsEvents(state); } } }