Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] When rotating belts, they cannot rotate down. #57

Open
NotSoV opened this issue Jul 2, 2018 · 0 comments
Open

[BUG] When rotating belts, they cannot rotate down. #57

NotSoV opened this issue Jul 2, 2018 · 0 comments

Comments

@NotSoV
Copy link

NotSoV commented Jul 2, 2018

(Ex: Up, right, up(should be down here), left, up, right, up.)

I still have my training wheels on when it comes to JavaScript. I've applied a duct tape fix for my locally downloaded copy. Something seems to be wrong with the below function in viewmodel.js:

 function rotateSelectedItem() {
    if (selectedItem && selectedItem.canRotate) {
        selectedItem.direction = (selectedItem.direction + 2) % 8;
        pickPlacable(selectedItem);
    }
}

or in view.js:

 function createPreview(placeable) {}

In rotateSelectionItem(), I can cheat and change the 2 to a 1.9999 or something like that and my models will rotate properly, to the human eye, but I am not sure what the ramifications are when exporting the string.

If someone could point me in the right direction, I'll spend the time fixing it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant