mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修复bug。
This commit is contained in:
parent
8b83fead40
commit
653e35f3e9
@ -53,7 +53,6 @@ StatusBar.prototype.render = function () {
|
||||
}, {
|
||||
xtype: 'checkbox',
|
||||
id: 'cbThrowBall',
|
||||
scope: this.id,
|
||||
onChange: this.onEnableThrowBall.bind(this)
|
||||
}]
|
||||
}]
|
||||
@ -111,7 +110,7 @@ StatusBar.prototype.onUpdateInfo = function () {
|
||||
};
|
||||
|
||||
StatusBar.prototype.onEnableThrowBall = function () {
|
||||
var enabled = UI.get('cbThrowBall', this.id);
|
||||
var enabled = UI.get('cbThrowBall');
|
||||
this.app.call('enableThrowBall', this, enabled.getValue());
|
||||
};
|
||||
|
||||
|
||||
@ -22,6 +22,9 @@ ThrowBallEvent.prototype.create = function (scene, camera, renderer) {
|
||||
this.scene = scene;
|
||||
this.camera = camera;
|
||||
this.renderer = renderer;
|
||||
|
||||
this.enabled = UI.get('cbThrowBall').getValue();
|
||||
|
||||
this.app.on(`click.${this.id}`, this.throwBall.bind(this));
|
||||
this.app.on(`enableThrowBall.${this.id}`, this.onEnableThrowBall.bind(this));
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user