jonigata commited on
Commit
ee3a573
·
1 Parent(s): 2ed1c97

temporarily disable cutoff

Browse files
Files changed (1) hide show
  1. static/poseEditor.js +4 -2
static/poseEditor.js CHANGED
@@ -28,13 +28,15 @@ function cutOffLimb(pose, cutOffIndex) {
28
  for (let i = 0; i < 18; i++) {
29
  // ルートまで検索し、その間にcuttOffIndexがあれば削除
30
  if (i == 1) {continue;} // ルートは削除しない
 
31
  while (true) {
32
- let parent = findParentNodeIndex(i);
33
  if (parent === cutOffIndex) {
34
  console.log(`cutOffLimb: ${i} -> ${cutOffIndex}`);
35
  newPose[i] = null;
36
  break;
37
  }
 
38
  }
39
  }
40
  return newPose;
@@ -431,7 +433,7 @@ function handleMouseDown(event) {
431
  if (keyDownFlags["KeyR"]) {repairPerson(personIndex);return;}
432
 
433
  if (keyDownFlags["KeyQ"] && minDist < 16 && nodeIndex != 1) {
434
- cutOffPersonLimb(personIndex, nodeIndex);
435
  return;
436
  }
437
 
 
28
  for (let i = 0; i < 18; i++) {
29
  // ルートまで検索し、その間にcuttOffIndexがあれば削除
30
  if (i == 1) {continue;} // ルートは削除しない
31
+ var curr = i;
32
  while (true) {
33
+ let parent = findParentNodeIndex(curr);
34
  if (parent === cutOffIndex) {
35
  console.log(`cutOffLimb: ${i} -> ${cutOffIndex}`);
36
  newPose[i] = null;
37
  break;
38
  }
39
+ curr = parent;
40
  }
41
  }
42
  return newPose;
 
433
  if (keyDownFlags["KeyR"]) {repairPerson(personIndex);return;}
434
 
435
  if (keyDownFlags["KeyQ"] && minDist < 16 && nodeIndex != 1) {
436
+ // cutOffPersonLimb(personIndex, nodeIndex);
437
  return;
438
  }
439