Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
select at least one scene when open panel
Browse files Browse the repository at this point in the history
  • Loading branch information
dualface committed Oct 8, 2016
1 parent bba7bfe commit d9efe96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion creator-project/packages/creator-lua-support/core/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ module.exports = class Project {
return item.uuid == startSceneUuid;
});

if (!startSceneUuid || !found) {
if (!found) {
if (this.scenes.length) {
this.startSceneUuid = this.scenes[0].uuid;
this.scenes[0].checked = true;
} else {
this.startSceneUuid = '';
}
Expand Down

0 comments on commit d9efe96

Please sign in to comment.