-
Notifications
You must be signed in to change notification settings - Fork 139
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
toggle rotation on click #79
base: front-end
Are you sure you want to change the base?
Conversation
- closes rodrigo-brito#76 - adds package.lock for versioning of npm modules, yarn version in package.json - generates more complex (chunked js) structure for assets - assumes build is via `make build-with-assets` in master branch, or equivalent - Makefile in stevegt's fork at commit 3a47b3d - see rodrigo-brito#77 for discussion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution, it looks great.
@@ -0,0 +1,15281 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project uses Yarn instead of NPM, and we have yarn.lock
@@ -13,7 +13,8 @@ | |||
"react": "^16.5.2", | |||
"react-dom": "^16.5.2", | |||
"react-router-dom": "^4.3.1", | |||
"sweetalert2": "^7.28.10" | |||
"sweetalert2": "^7.28.10", | |||
"yarn": "^1.22.17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, do not remove yarn.
new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, () => { | ||
this.toggleRotation(); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, () => { | |
this.toggleRotation(); | |
}) | |
new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, this.toggleRotation) |
@@ -208,12 +216,20 @@ class App extends Component { | |||
}); | |||
} | |||
|
|||
toggleRotation() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, you need to include a bind in the constructor for this. Check the constructor for some examples.
The important bits that address #76 are in App.js. Everything else here and in #78 shows what I needed to do to get the build working.
make build-with-assets
in master branch, or equivalent