fix build process (#2831)

This commit is contained in:
Jare Guo
2018-06-08 09:55:41 +08:00
committed by GitHub
parent 02391c6cf2
commit 04e6a2ca84
+5 -3
View File
@@ -268,7 +268,7 @@ if (CC_EDITOR) {
function refreshScene () {
// check animation editor
if (CC_EDITOR) {
if (CC_EDITOR && !Editor.isBuilder) {
var AnimUtils = Editor.require('scene://utils/animation');
if (AnimUtils) {
var nowPreviewing = !!AnimUtils.Cache.animation;
@@ -299,8 +299,10 @@ function refreshScene () {
}
else {
var i, widget, iterator = widgetManager._activeWidgetsIterator;
var AnimUtils = Editor.require('scene://utils/animation');
if (CC_EDITOR && AnimUtils.Cache.animation) {
var AnimUtils;
if (CC_EDITOR &&
(AnimUtils = Editor.require('scene://utils/animation')) &&
AnimUtils.Cache.animation) {
var editingNode = AnimUtils.Cache.rNode;
for (i = activeWidgets.length - 1; i >= 0; i--) {
widget = activeWidgets[i];