|
@@ -1300,7 +1300,8 @@ extension PQStuckPointEditerController {
|
|
|
}
|
|
|
|
|
|
func clipPoint(clipCount:Int,oldPoints: Array<Float>) {
|
|
|
- for i in finallyStuckPoints.count...clipCount {
|
|
|
+ BFLog(message: "拼接卡点数:\(clipCount)")
|
|
|
+ for i in finallyStuckPoints.count...clipCount + finallyStuckPoints.count {
|
|
|
|
|
|
if ((i % (oldPoints.count - 1)) != 0){
|
|
|
finallyStuckPoints.append(finallyStuckPoints[i-1] + oldPoints[i%(oldPoints.count - 1)] - oldPoints[(i-1)%(oldPoints.count - 1)])
|
|
@@ -1440,10 +1441,13 @@ extension PQStuckPointEditerController {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- finallyStuckPoints.append(stuckPointsTemp.first ?? 0.0)
|
|
|
-
|
|
|
+ if(finallyStuckPoints.count == 0){
|
|
|
+ finallyStuckPoints.append(stuckPointsTemp.first ?? 0.0)
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- clipPoint(clipCount: sticker.clipCount + 1 , oldPoints: stuckPointsTemp)
|
|
|
+ clipPoint(clipCount: sticker.clipCount , oldPoints: stuckPointsTemp)
|
|
|
BFLog(message: "finallyStuckPoints\(finallyStuckPoints)")
|
|
|
|
|
|
|