提交 2d85150b 编写于 作者: M Mr.doob

Editor: Notify editor has been cleared.

上级 e467602d
......@@ -169,6 +169,7 @@
var signals = editor.signals;
signals.editorCleared.add( saveState );
signals.geometryChanged.add( saveState );
signals.objectAdded.add( saveState );
signals.objectChanged.add( saveState );
......
......@@ -22,6 +22,8 @@ var Editor = function () {
// notifications
editorCleared: new SIGNALS.Signal(),
savingStarted: new SIGNALS.Signal(),
savingFinished: new SIGNALS.Signal(),
......@@ -381,6 +383,8 @@ Editor.prototype = {
this.deselect();
this.signals.editorCleared.dispatch();
},
//
......
......@@ -21,6 +21,13 @@ Menubar.Add = function ( editor ) {
var meshCount = 0;
var lightCount = 0;
editor.signals.editorCleared.add( function () {
meshCount = 0;
lightCount = 0;
} );
// Group
var option = new UI.Panel();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册