MikaFil commited on
Commit
9726aa9
·
verified ·
1 Parent(s): fdabf2a

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +1 -2
viewer.js CHANGED
@@ -180,12 +180,11 @@ export async function initializeViewer(config, instanceId) {
180
  console.log("%c[VIEWER DEBUG] All assets loaded, starting app", "color: #2ECC40;");
181
  app.start();
182
  progressDialog.style.display = 'none';
183
-
184
 
185
  modelEntity = new pc.Entity('model');
186
  modelEntity.addComponent('gsplat', { asset: assets.sogs });
187
  modelEntity.setLocalPosition(modelX, modelY, modelZ);
188
- modelEntity.setFromEulerAngles(modelRotationX, modelRotationY, modelRotationZ);
189
  modelEntity.setLocalScale(modelScale, modelScale, modelScale);
190
  app.root.addChild(modelEntity);
191
 
 
180
  console.log("%c[VIEWER DEBUG] All assets loaded, starting app", "color: #2ECC40;");
181
  app.start();
182
  progressDialog.style.display = 'none';
 
183
 
184
  modelEntity = new pc.Entity('model');
185
  modelEntity.addComponent('gsplat', { asset: assets.sogs });
186
  modelEntity.setLocalPosition(modelX, modelY, modelZ);
187
+ modelEntity.setLocalEulerAngles(modelRotationX, modelRotationY, modelRotationZ);
188
  modelEntity.setLocalScale(modelScale, modelScale, modelScale);
189
  app.root.addChild(modelEntity);
190