Skip to content

Commit 575847d

Browse files
authored
Merge pull request #44 from m-mohr/patch-2
Fixed Infinity-bug in perfectScale
2 parents 6bdfad5 + 762b574 commit 575847d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ Blocks.prototype.doLoad = function(scene, init)
739739
*/
740740
Blocks.prototype.perfectScale = function()
741741
{
742-
if (!this.div) {
742+
if (!this.div || this.blocks.length === 0) {
743743
return;
744744
}
745745

0 commit comments

Comments
 (0)