Skip to content

Commit b040146

Browse files
committed
simplified logic on queueOp starting an unready scene
1 parent dd53268 commit b040146

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/scene/SceneManager.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,19 +1032,14 @@ var SceneManager = new Class({
10321032

10331033
if (!scene)
10341034
{
1035-
var isFound = false;
10361035
for (var i = 0; i < this._pending.length; i++)
10371036
{
10381037
if (this._pending[i].key === key)
10391038
{
1040-
isFound = true;
1039+
this.queueOp('start', key, data);
10411040
break;
10421041
}
10431042
}
1044-
if (isFound)
1045-
{
1046-
this.queueOp('start', key, data);
1047-
}
10481043
return this;
10491044
}
10501045

0 commit comments

Comments
 (0)