mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-22 13:53:48 +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