|
@@ -538,6 +538,8 @@ export default class XAvatarManager {
|
|
|
return new Promise((n,o)=>avatarLoader.load(this.sceneManager, t, r).then(a=>{
|
|
|
if (a) {
|
|
|
const s = a.instantiateModelsToScene();
|
|
|
+ // 周恩光加 此时body_man缩放已经0.01
|
|
|
+ console.log("body_man缩放", s.rootNodes[0]._children[0]._scaling)
|
|
|
a.xReferenceCount++;
|
|
|
const l = {
|
|
|
isRender: !1,
|
|
@@ -586,6 +588,8 @@ export default class XAvatarManager {
|
|
|
if (a) {
|
|
|
this._clipContainerRes(a);
|
|
|
const s = a.meshes[1].clone(a.meshes[1].name, null);
|
|
|
+ // 周恩光加 装饰模型scale矫正
|
|
|
+ s.scaling = new BABYLON.Vector3(-0.01, 0.01, -0.01)
|
|
|
if (!s) {
|
|
|
logger.warn("[Engine] decoration does not exist!"),
|
|
|
n(null);
|
|
@@ -620,6 +624,7 @@ export default class XAvatarManager {
|
|
|
const r = Date.now();
|
|
|
return new Promise((n,o)=>{
|
|
|
this.loadBody(e.avatarType, e.avatarType, t).then(a=>{
|
|
|
+ // console.error(a.root._children[0]._scaling)
|
|
|
var s;
|
|
|
if (!a)
|
|
|
return e.isInLoadingList = !1,
|