@@ -67,7 +67,7 @@ private void ImportMesh(string path, string aoId) {
6767 AssetLoaderOptions assetLoaderOptions = AssetLoader . CreateDefaultLoaderOptions ( ) ;
6868 AssetLoader . LoadModelFromFile ( path , null , delegate ( AssetLoaderContext assetLoaderContext ) {
6969 if ( Path . GetExtension ( path ) . ToLower ( ) == ".stl" ) {
70- assetLoaderContext . RootGameObject . transform . Rotate ( 0f , 180f , 0f ) ; // TODO kinali hacked version had 0, 90f, 0
70+ assetLoaderContext . RootGameObject . transform . Rotate ( 0f , 90f , 0f ) ;
7171 }
7272
7373 OnMeshImported ? . Invoke ( this , new ImportedMeshEventArgs ( assetLoaderContext . WrapperGameObject , aoId ) ) ;
@@ -85,7 +85,8 @@ private void ImportMesh(string path, string aoId) {
8585 private IEnumerator DownloadMesh ( string meshId , string fileName , string aoId ) {
8686
8787 //Debug.LogError("MESH: download started");
88- string uri = MainSettingsMenu . Instance . GetProjectServiceURI ( ) + fileName ;
88+ string uri = MainSettingsMenu . Instance . GetAssetFileURI ( fileName ) ;
89+ Debug . LogError ( uri ) ;
8990 using ( UnityWebRequest www = UnityWebRequest . Get ( uri ) ) {
9091 // Request and wait for the desired page.
9192 yield return www . Send ( ) ;
@@ -200,7 +201,8 @@ public bool CheckIfNewerRobotModelExists(string meshId, string fileName) {
200201 return CanIDownload ( meshId ) ;
201202 }
202203
203- string uri = MainSettingsMenu . Instance . GetProjectServiceURI ( ) + fileName ;
204+ string uri = MainSettingsMenu . Instance . GetAssetFileURI ( fileName ) ;
205+
204206 DateTime downloadedZipLastModified = meshFileInfo . LastWriteTime ;
205207 try {
206208 HttpWebRequest httpWebRequest = ( HttpWebRequest ) WebRequest . Create ( uri ) ;
0 commit comments