private void OnSceneGUI() { if (!m_editing) { if (m_debugPointQty > 0) { RenderIntermediateSplinePoints(m_debugPointQty, pointSpline); } return; } if (m_editControlPoint.HasValue && EditorInputAbstractions.AddPointMode()) { m_editControlPoint = null; } CheckActiveCamera(); RenderControlPoints(pointSpline); if (EditorInputAbstractions.AddPointMode() && SceneView.currentDrawingSceneView == SceneView.lastActiveSceneView) { PointSelection(pointSpline); if (Event.current.type == EventType.MouseMove) { SceneView.RepaintAll(); } } }
private void OnSceneGUI() { if (!m_editing) { if (m_debugPointQty > 0) { RenderIntermediateSplinePoints(m_debugPointQty, cubic2DSpline); } return; } if (m_editControlPoint.HasValue && EditorInputAbstractions.AddPointMode()) { m_editControlPoint = null; } RenderControlPoints(cubic2DSpline); if (EditorInputAbstractions.AddPointMode()) { PointSelection(cubic2DSpline); if (Event.current.type == EventType.MouseMove) { SceneView.RepaintAll(); } } }