Merge pull request #2579 from cocos-creator/v1.9

rebase v1.9-release to 1.9.2
This commit is contained in:
Jare Guo
2018-04-21 14:06:03 +08:00
committed by GitHub
3 changed files with 35 additions and 8 deletions
+26
View File
@@ -0,0 +1,26 @@
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
test:
steps:
- run:
command: npm test
setup:
docker:
- image: circleci/node:latest
steps:
- checkout
- run:
command: npm install -g gulp
- run:
command: npm install gulp-qunit
workflows:
version: 2
build-test:
jobs:
- test:
requires:
- setup
-8
View File
@@ -1,8 +0,0 @@
machine:
node:
version: 6.12.3
dependencies:
pre:
- npm install -g gulp
- npm install gulp-qunit
+9
View File
@@ -2508,6 +2508,15 @@ var Node = cc.Class({
this._updateDummySgNode();
var sizeProvider = this._sizeProvider;
if (sizeProvider) {
// sync status for records used in Timeline editor
var sgComponent = this.getComponent(cc._SGComponent);
if (sgComponent && sgComponent._sgNode === sizeProvider && !(sgComponent._objFlags & Flags.IsPreloadStarted)) {
sgComponent._removeSgNode();
this._sizeProvider = sizeProvider = null;
}
}
if (sizeProvider) {
sizeProvider.setContentSize(this._contentSize);
if (sizeProvider instanceof _ccsg.Node) {