Skip to content
This repository was archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Add scale limits for sanity reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 19, 2016
1 parent e2f6388 commit 252e907
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void execute(CommandQueue queue, CommandEntry entry) {
tscs.disable();
mainScs.remove(uuid);
}
if (scs.sizeY == 1.0f && scs.sizeX == 1.0f && scs.sizeZ == 1.0f) {
if (scs.sizeY == 1.0f && scs.sizeX == 1.0f && scs.sizeZ == 1.0f || scs.sizeX <= 0.0f || scs.sizeY <= 0.0f || scs.sizeZ <= 0.0f) {
if (queue.shouldShowGood()) {
queue.outGood("Ignoring a non-editing scaler for: " + uuid);
}
Expand Down

0 comments on commit 252e907

Please sign in to comment.