提交 d2b6bf52 编写于 作者: T tschw

Avoid exception in Editor.add/removeScript w/o selection.

上级 afd72f5d
......@@ -45,6 +45,13 @@ Sidebar.Script = function ( editor ) {
scriptsContainer.clear();
var object = editor.selected;
if ( object === null ) {
return;
}
var scripts = editor.scripts[ object.uuid ];
if ( scripts !== undefined ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册