mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
删除GeometryEvent。
This commit is contained in:
parent
30bb007101
commit
02ed99ea19
@ -114,7 +114,6 @@ import ShowGridChangedEvent from './viewport/ShowGridChangedEvent';
|
||||
import SceneFogChangedEvent from './viewport/SceneFogChangedEvent';
|
||||
import SceneBackgroundChangedEvent from './viewport/SceneBackgroundChangedEvent';
|
||||
import ObjectEvent from './viewport/ObjectEvent';
|
||||
import GeometryEvent from './viewport/GeometryEvent';
|
||||
import PickEvent from './viewport/PickEvent';
|
||||
import WindowResizeEvent from './viewport/WindowResizeEvent';
|
||||
import ThemeChangedEvent from './viewport/ThemeChangedEvent';
|
||||
@ -250,7 +249,6 @@ function EventDispatcher(app) {
|
||||
new SceneFogChangedEvent(this.app),
|
||||
new SceneBackgroundChangedEvent(this.app),
|
||||
new ObjectEvent(this.app),
|
||||
new GeometryEvent(this.app),
|
||||
new PickEvent(this.app),
|
||||
new WindowResizeEvent(this.app),
|
||||
new ThemeChangedEvent(this.app),
|
||||
|
||||
@ -1,29 +0,0 @@
|
||||
import BaseEvent from '../BaseEvent';
|
||||
|
||||
/**
|
||||
* 几何体改变事件
|
||||
* @param {*} app
|
||||
*/
|
||||
function GeometryEvent(app) {
|
||||
BaseEvent.call(this, app);
|
||||
}
|
||||
|
||||
GeometryEvent.prototype = Object.create(BaseEvent.prototype);
|
||||
GeometryEvent.prototype.constructor = GeometryEvent;
|
||||
|
||||
GeometryEvent.prototype.start = function () {
|
||||
var _this = this;
|
||||
this.app.on('geometryChanged.' + this.id, function (object) {
|
||||
_this.onGeometryChanged(object);
|
||||
});
|
||||
};
|
||||
|
||||
GeometryEvent.prototype.stop = function () {
|
||||
this.app.on('geometryChanged.' + this.id, null);
|
||||
};
|
||||
|
||||
GeometryEvent.prototype.onGeometryChanged = function (object) {
|
||||
this.app.call('render');
|
||||
};
|
||||
|
||||
export default GeometryEvent;
|
||||
Loading…
x
Reference in New Issue
Block a user