mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2025-01-03 10:03: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) {
|
setAutoUpdate(autoUpdate = true, updateInterval = 1000) {
|
||||||
this.updateInterval = updateInterval;
|
this.updateInterval = updateInterval;
|
||||||
if (this.autoUpdate === autoUpdate) return;
|
if (this.autoUpdate === autoUpdate) return this;
|
||||||
|
|
||||||
this.autoUpdate = autoUpdate;
|
this.autoUpdate = autoUpdate;
|
||||||
if (autoUpdate) this._update();
|
if (autoUpdate) this._update();
|
||||||
|
@ -24,7 +24,7 @@ export default class Doodle3DManager extends EventDispatcher {
|
|||||||
}
|
}
|
||||||
setAutoUpdate(autoUpdate = true, updateInterval = 1000) {
|
setAutoUpdate(autoUpdate = true, updateInterval = 1000) {
|
||||||
this.updateInterval = updateInterval;
|
this.updateInterval = updateInterval;
|
||||||
if (this.autoUpdate === autoUpdate) return;
|
if (this.autoUpdate === autoUpdate) return this;
|
||||||
|
|
||||||
this.autoUpdate = autoUpdate;
|
this.autoUpdate = autoUpdate;
|
||||||
if (autoUpdate) this._update();
|
if (autoUpdate) this._update();
|
||||||
|
Loading…
Reference in New Issue
Block a user