Procházet zdrojové kódy

Fix interaction prompt

master
Palash Bansal před 1 rokem
rodič
revize
8239de5553
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      src/core/object/iCameraCommons.ts

+ 2
- 1
src/core/object/iCameraCommons.ts Zobrazit soubor

@@ -5,7 +5,8 @@ import type {ICamera, ICameraEventMap, ICameraSetDirtyOptions} from '../ICamera'
export const iCameraCommons = {
setDirty: function(this: ICamera, options?: ICameraSetDirtyOptions): void {
// console.log('target', target, this._controls, this._camera)
if (this.controls && this.controls.target && this.target !== this.controls.target) {
// noinspection PointlessBooleanExpressionJS
if (this.controls && this.controls.target && this.controls.enabled !== false && this.target !== this.controls.target) {
this.controls.target.copy(this.target)
// this.controls.update() // this should be done automatically postFrame
}

Načítá se…
Zrušit
Uložit