ソースを参照

Fix edge case where control point selection outlives mouse down

pull/4829/head
Henry Wilder 3週間前
コミット
e618e8841d
1個のファイルの変更3行の追加0行の削除
  1. +3
    -0
      examples/shapes/shapes_splines_drawing.c

+ 3
- 0
examples/shapes/shapes_splines_drawing.c ファイルの表示

@ -158,6 +158,9 @@ int main(void)
else if (IsKeyPressed(KEY_TWO)) splineTypeActive = 1;
else if (IsKeyPressed(KEY_THREE)) splineTypeActive = 2;
else if (IsKeyPressed(KEY_FOUR)) splineTypeActive = 3;
// Clear selection when changing to a spline without control points
if (IsKeyPressed(KEY_ONE) || IsKeyPressed(KEY_TWO) || IsKeyPressed(KEY_THREE)) selectedControlPoint = NULL;
//----------------------------------------------------------------------------------
// Draw

読み込み中…
キャンセル
保存