mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-02-01 16:08:17 +00:00
删除无用代码。
This commit is contained in:
parent
87301328ee
commit
2117dcf647
@ -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;
|
||||
Loading…
x
Reference in New Issue
Block a user