wgge 1.0.12 → 1.0.13

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.
@@ -67,8 +67,15 @@ export default class ObjectModel extends ModelBase {
67
67
 
68
68
  if (this.properties.count() > 0) {
69
69
  const properties = {};
70
- this.properties.forEach((name, propertyNode) =>
71
- properties[name] = propertyNode.getState()
70
+ this.properties.forEach(
71
+ (name, propertyNode) => {
72
+ if (propertyNode.isPersistent) {
73
+ const s = propertyNode.getState();
74
+ if (s !== undefined) {
75
+ properties[name] = s;
76
+ }
77
+ }
78
+ }
72
79
  );
73
80
  state.p = properties;
74
81
  }
@@ -104,9 +104,7 @@ export default class AssetCache extends NodeWithEvents {
104
104
 
105
105
  loaderFailed(loader, msg, onError) {
106
106
  console.error(`Loading of asset '${loader.uri}' failed: ${msg}`);
107
-
108
107
  if (onError) onError(msg);
109
-
110
108
  this.loaders.remove(loader);
111
109
  }
112
110
 
@@ -117,9 +115,7 @@ export default class AssetCache extends NodeWithEvents {
117
115
  } else {
118
116
  this.cache.add(loader.uri, resource);
119
117
  }
120
-
121
118
  if (onLoaded) onLoaded(resource);
122
-
123
119
  this.loaders.remove(loader);
124
120
  }
125
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgge",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Web GL Game Engine",
5
5
  "main": "index.js",
6
6
  "devDependencies": {