We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 278deda + decbe18 commit 40818baCopy full SHA for 40818ba
1 file changed
src/scene/ScenePlugin.js
@@ -105,18 +105,15 @@ var ScenePlugin = new Class({
105
{
106
if (key === undefined) { key = this.key; }
107
108
- if (key !== this.key)
+ if (this.settings.status !== CONST.RUNNING)
109
110
- if (this.settings.status !== CONST.RUNNING)
111
- {
112
- this.manager.queueOp('stop', this.key);
113
- this.manager.queueOp('start', key);
114
- }
115
- else
116
117
- this.manager.stop(this.key);
118
- this.manager.start(key, data);
119
+ this.manager.queueOp('stop', this.key);
+ this.manager.queueOp('start', key);
+ }
+ else
+ {
+ this.manager.stop(this.key);
+ this.manager.start(key, data);
120
}
121
122
return this;
0 commit comments