Spaces:
Runtime error
Runtime error
fix error on no source image
Browse files- static/poseEditor.js +4 -2
static/poseEditor.js
CHANGED
|
@@ -208,8 +208,10 @@ function handleMouseUp(event) {
|
|
| 208 |
|
| 209 |
function initializePose(jsonData,w,h) {
|
| 210 |
console.log("initializePose");
|
| 211 |
-
|
| 212 |
-
|
|
|
|
|
|
|
| 213 |
|
| 214 |
canvas = document.getElementById('canvas');
|
| 215 |
ctx = canvas.getContext('2d');
|
|
|
|
| 208 |
|
| 209 |
function initializePose(jsonData,w,h) {
|
| 210 |
console.log("initializePose");
|
| 211 |
+
if (jsonData != null) {
|
| 212 |
+
candidate = jsonData.candidate;
|
| 213 |
+
subset = jsonData.subset;
|
| 214 |
+
}
|
| 215 |
|
| 216 |
canvas = document.getElementById('canvas');
|
| 217 |
ctx = canvas.getContext('2d');
|