kopia lustrzana https://github.com/backface/turtlestitch
Fixed loading blank inputs
rodzic
6a4b4afbe9
commit
64a1636736
2
store.js
2
store.js
|
@ -1032,7 +1032,7 @@ SnapSerializer.prototype.loadInput = function (model, input, block) {
|
||||||
input.setColor(this.loadColor(model.contents));
|
input.setColor(this.loadColor(model.contents));
|
||||||
} else {
|
} else {
|
||||||
val = this.loadValue(model);
|
val = this.loadValue(model);
|
||||||
if (val) {
|
if (val !== undefined && val !== null && input.setContents) {
|
||||||
input.setContents(this.loadValue(model));
|
input.setContents(this.loadValue(model));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue