mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
function rename
This commit is contained in:
@@ -165,7 +165,7 @@ proto._cangodhelpme = function (godhelpme) {
|
||||
|
||||
proto.visit = function(parentCmd){
|
||||
var node = this._node;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
// quick return if not visible
|
||||
if (!node._visible)
|
||||
return;
|
||||
|
||||
@@ -81,7 +81,7 @@ proto.transform = function(parentCmd, recursive){
|
||||
|
||||
proto.visit = function(parentCmd){
|
||||
var node = this._node;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
// quick return if not visible
|
||||
if (!node._visible)
|
||||
return;
|
||||
|
||||
@@ -334,7 +334,7 @@ _ccsg.Node.RenderCmd.prototype = {
|
||||
}
|
||||
return this._transform;
|
||||
},
|
||||
_propagateFlags: function(parentCmd) {
|
||||
_propagateFlagsDown: function(parentCmd) {
|
||||
//return;
|
||||
var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
|
||||
var parentNode = parentCmd ? parentCmd._node : null;
|
||||
@@ -454,7 +454,7 @@ proto.transform = function (parentCmd, recursive) {
|
||||
|
||||
proto.visit = function (parentCmd) {
|
||||
var node = this._node;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
// quick return if not visible
|
||||
if (!node._visible)
|
||||
return;
|
||||
|
||||
@@ -45,7 +45,7 @@ proto._updateColor = function(){};
|
||||
|
||||
proto.visit = function (parentCmd) {
|
||||
var node = this._node;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
// quick return if not visible
|
||||
if (!node._visible)
|
||||
return;
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
var node = this._node, children = node._children;
|
||||
var len = children.length;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
// quick return if not visible
|
||||
if (!node._visible || len === 0)
|
||||
return;
|
||||
@@ -295,7 +295,7 @@
|
||||
}
|
||||
|
||||
var node = this._node;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
// quick return if not visible
|
||||
if (!node._visible)
|
||||
return;
|
||||
|
||||
@@ -60,7 +60,7 @@ proto.rendering = function () {
|
||||
|
||||
proto.visit = function(parentCmd){
|
||||
var node = this._node;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
// quick return if not visible
|
||||
if (!node._visible)
|
||||
return;
|
||||
|
||||
@@ -125,7 +125,7 @@ proto.getTexture = function(){
|
||||
|
||||
proto.visit = function(parentCmd){
|
||||
var node = this._node;
|
||||
this._propagateFlags(parentCmd);
|
||||
this._propagateFlagsDown(parentCmd);
|
||||
//TODO: it will implement dynamic compute child cutting automation.
|
||||
var i, len, locChildren = node._children;
|
||||
// quick return if not visible
|
||||
|
||||
Reference in New Issue
Block a user