浏览代码

Fix interaction prompt

master
Palash Bansal 1年前
父节点
当前提交
8239de5553
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/core/object/iCameraCommons.ts

+ 2
- 1
src/core/object/iCameraCommons.ts 查看文件

@@ -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
}

正在加载...
取消
保存