alexjlockwood / ShapeShifter

SVG icon animation tool for Android, iOS, and the web
https://shapeshifter.design
Apache License 2.0
3.97k stars 200 forks source link

Error retrieving command mutation #280

Open alexjlockwood opened 6 years ago

alexjlockwood commented 6 years ago

Error in Shape Shifter

Error in / Error retrieving command mutation

View on Bugsnag

Stacktrace

webpack:///src/app/model/paths/Path.ts:1118 - findInternalIndices

View full stacktrace

Created by Alex Lockwood via Bugsnag

alexjlockwood commented 6 years ago
screen shot 2018-06-17 at 11 51 20 pm
alexjlockwood commented 6 years ago

Occurs when autofixing M 1 1 to M 1 1 L 10 10 L 20 20 (I guess when one of them only has one command).

{
  "version": 1,
  "layers": {
    "vectorLayer": {
      "id": "1",
      "name": "autofix_crash",
      "type": "vector",
      "width": 24,
      "height": 24,
      "children": [
        {
          "id": "3",
          "name": "path",
          "type": "path",
          "pathData": ""
        }
      ]
    },
    "hiddenLayerIds": []
  },
  "timeline": {
    "animation": {
      "id": "2",
      "name": "anim",
      "duration": 300,
      "blocks": [
        {
          "id": "4",
          "layerId": "3",
          "propertyName": "pathData",
          "startTime": 0,
          "endTime": 100,
          "interpolator": "FAST_OUT_SLOW_IN",
          "type": "path",
          "fromValue": "M 1 1",
          "toValue": "M 1 1 L 10 10 L 20 20"
        }
      ]
    }
  }
}