fffiloni commited on
Commit
db63cf0
1 Parent(s): 85ae5b0

Update public/sketch.js

Browse files
Files changed (1) hide show
  1. public/sketch.js +5 -2
public/sketch.js CHANGED
@@ -106,8 +106,11 @@ function draw() {
106
 
107
  //MAP THE PRESSURE VALUE TO VISIBLE ONES
108
  Cursor.mapPressure();
109
-
110
- Draws.get_new_current_path();
 
 
 
111
 
112
 
113
  // ANGLE WE ARE LOOKING FOR TO KEEP TRACK OF THE STYLUS TILT
 
106
 
107
  //MAP THE PRESSURE VALUE TO VISIBLE ONES
108
  Cursor.mapPressure();
109
+
110
+ if(Draws !== undefined){
111
+ Draws.get_new_current_path();
112
+ }
113
+
114
 
115
 
116
  // ANGLE WE ARE LOOKING FOR TO KEEP TRACK OF THE STYLUS TILT