Skip to content

Commit 448000f

Browse files
committed
Update StarlingDisplayBridge.as
Fix change display bug and change display color bug.
1 parent bf8ccf6 commit 448000f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/dragonBones/display/StarlingDisplayBridge.as

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
}
4141
public function set display(value:Object):void
4242
{
43+
/*
4344
if (_display is Image && value is Image)
4445
{
4546
var from:Image = _display as Image;
@@ -63,6 +64,7 @@
6364
from.readjustSize();
6465
return;
6566
}
67+
*/
6668

6769
if (_display == value)
6870
{
@@ -78,13 +80,15 @@
7880
}
7981
removeDisplay();
8082
}
83+
/*
8184
else if(value is Image && !_imageBackup)
8285
{
8386
_imageBackup = value as Image;
8487
_textureBackup = _imageBackup.texture;
8588
_pivotXBackup = _imageBackup.pivotX;
8689
_pivotYBackup = _imageBackup.pivotY;
8790
}
91+
*/
8892
_display = value;
8993
addDisplay(parent, index);
9094
}
@@ -198,4 +202,4 @@
198202
}
199203
}
200204
}
201-
}
205+
}

0 commit comments

Comments
 (0)