删除无用代码。

This commit is contained in:
liteng 2018-07-08 15:49:32 +08:00
parent 87301328ee
commit 2117dcf647

View File

@ -14,12 +14,10 @@ VRModeEvent.prototype.constructor = VRModeEvent;
VRModeEvent.prototype.start = function () {
var _this = this;
this.app.on('mVRMode.' + this.id, this.onVRMode.bind(this));
this.app.on('animate.' + this.id, this.onAnimate.bind(this));
};
VRModeEvent.prototype.stop = function () {
this.app.on('mVRMode.' + this.id, null);
this.app.on('animate.' + this.id, null);
};
VRModeEvent.prototype.onVRMode = function () {
@ -32,12 +30,4 @@ VRModeEvent.prototype.onVRMode = function () {
}
};
VRModeEvent.prototype.onAnimate = function () {
var vrEffect = this.app.editor.vrEffect;
if (vrEffect && vrEffect.isPresenting) {
this.app.call('render', this);
}
};
export default VRModeEvent;