mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-11-14 00:17:55 +01:00
setautoupdate always returns true
This commit is contained in:
parent
f499693465
commit
aadde22a4e
@ -33,7 +33,7 @@ export default class Doodle3DBox extends EventDispatcher {
|
||||
}
|
||||
setAutoUpdate(autoUpdate = true, updateInterval = 1000) {
|
||||
this.updateInterval = updateInterval;
|
||||
if (this.autoUpdate === autoUpdate) return;
|
||||
if (this.autoUpdate === autoUpdate) return this;
|
||||
|
||||
this.autoUpdate = autoUpdate;
|
||||
if (autoUpdate) this._update();
|
||||
|
@ -24,7 +24,7 @@ export default class Doodle3DManager extends EventDispatcher {
|
||||
}
|
||||
setAutoUpdate(autoUpdate = true, updateInterval = 1000) {
|
||||
this.updateInterval = updateInterval;
|
||||
if (this.autoUpdate === autoUpdate) return;
|
||||
if (this.autoUpdate === autoUpdate) return this;
|
||||
|
||||
this.autoUpdate = autoUpdate;
|
||||
if (autoUpdate) this._update();
|
||||
|
Loading…
Reference in New Issue
Block a user