mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added washing machine, fixed grabbing and rotation and position
This commit is contained in:
parent
3a07d946b0
commit
fa9a0d5d22
5 changed files with 55 additions and 13 deletions
|
|
@ -47,6 +47,21 @@ function (Parent, Settings, NotificationCenter) {
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
Item.prototype.flip = function(direction) {
|
||||
var oldFlipDirection = this.flipDirection;
|
||||
|
||||
Parent.prototype.flip.call(this, direction);
|
||||
|
||||
if(oldFlipDirection != direction) {
|
||||
NotificationCenter.trigger("view/updateMesh",
|
||||
this.mesh,
|
||||
{
|
||||
xScale: direction
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
return Item;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue