@zcomponent/core 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/inflate.js +2 -0
  2. package/package.json +1 -1
package/lib/inflate.js CHANGED
@@ -107,6 +107,8 @@ export function createLayerFromData(zcomp, anim, data) {
107
107
  const ret = new Layer(anim);
108
108
  ret.active = undefined;
109
109
  ret.id = data.id;
110
+ if (data.defaultClip === null)
111
+ ret.active = null;
110
112
  for (const layerClip of Object.values(data.clips)) {
111
113
  if (!layerClip)
112
114
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zcomponent/core",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",