shithub: etoys

Download patch

ref: 64ae1b600bef8c31423e959eb5f22935d6cdeac9
parent: b3822385045bb11446f479afb67733ff21c77823
author: rodri <[email protected]>
date: Tue May 12 06:51:24 EDT 2020

bsplines: can't make one without at least three points

--- a/bsplines.c
+++ b/bsplines.c
@@ -108,7 +108,7 @@
 				redraw();
 			}
 			if((e.mouse.buttons&4) != 0){
-				if(npt > 1){
+				if(npt > 2){
 					b.pts = pts;
 					b.npt = npt;
 					bsplines = realloc(bsplines, ++nbspline*sizeof(Bspline));