Skip to content

Commit

Permalink
Merge branch 'v1.1' into v1.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	cocos2d/core/base-ui/CCWidgetManager.js
  • Loading branch information
jareguo committed Aug 16, 2016
2 parents 64bd184 + ecfdd8c commit d60eda1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cocos2d/core/base-ui/CCWidgetManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,11 @@ function refreshScene () {
else {
var i, node, nodes = widgetManager._nodesWithWidget, len = nodes.length;
if (CC_EDITOR && window._Scene && _Scene.AnimUtils && _Scene.AnimUtils.curAnimState) {
var editingNode = _Scene.AnimUtils.curRootNode;
for (i = len - 1; i >= 0; i--) {
node = nodes[i];
var widget = node._widget;
if (widget.isAlignOnce && animationState.animatedSinceLastFrame) {
if (widget.isAlignOnce && animationState.animatedSinceLastFrame && node.isChildOf(editingNode)) {
// widget contains in _nodesWithWidget should aligned at least once
widget.enabled = false;
}
Expand Down
3 changes: 2 additions & 1 deletion jsb/jsb-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ var actionUpdate = {
'FadeOut': syncOpacityUpdate,
'FadeTo': syncOpacityUpdate,
'TintTo': syncColorUpdate,
'TintBy': syncColorUpdate
'TintBy': syncColorUpdate,
'BezierBy': syncPositionUpdate
};

for (var key in actionUpdate) {
Expand Down

0 comments on commit d60eda1

Please sign in to comment.