|
@@ -8,7 +8,8 @@ import {
|
|
|
arrayChildEffectScope,
|
|
|
togetherCallback,
|
|
|
showLoad,
|
|
|
- hideLoad
|
|
|
+ hideLoad,
|
|
|
+ round
|
|
|
} from '@/utils'
|
|
|
import SDKApp from './index.vue'
|
|
|
import Components from 'bill/index'
|
|
@@ -56,12 +57,24 @@ const associationModels = (sdk: SDK) => {
|
|
|
const data = transform;
|
|
|
if (transform.rotation) {
|
|
|
data.rotation = {
|
|
|
- x: transform.rotation.x,
|
|
|
- y: transform.rotation.y,
|
|
|
- z: transform.rotation.z
|
|
|
+ x: round(transform.rotation.x, 3),
|
|
|
+ y: round(transform.rotation.y, 3),
|
|
|
+ z: round(transform.rotation.z, 3)
|
|
|
}
|
|
|
}
|
|
|
- Object.assign(item, data)
|
|
|
+ if (transform.position) {
|
|
|
+ data.position = {
|
|
|
+ x: round(transform.position.x, 3),
|
|
|
+ y: round(transform.position.y, 3),
|
|
|
+ z: round(transform.position.z, 3)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (transform.bottom) {
|
|
|
+ data.bottom = round(transform.bottom)
|
|
|
+ }
|
|
|
+ if (transform.scale) {
|
|
|
+ data.scale = round(transform.scale)
|
|
|
+ }
|
|
|
nextTick(() => selfUpdate = false)
|
|
|
})
|
|
|
})
|