Ver código fonte

ProjectLibrary.save will now immediately update the internal resource instead of delaying it for the next checkForModifications call

BearishSun 10 anos atrás
pai
commit
043d254cb5

+ 1 - 0
BansheeEditor/Source/BsProjectLibrary.cpp

@@ -652,6 +652,7 @@ namespace BansheeEngine
 		filePath.makeAbsolute(getResourcesFolder());
 
 		Resources::instance().save(resource, filePath, true);
+		checkForModifications(filePath);
 	}
 
 	void ProjectLibrary::createFolderEntry(const Path& path)

+ 0 - 2
MBansheeEditor/EditorApplication.cs

@@ -383,13 +383,11 @@ namespace BansheeEditor
         [ToolbarItem("Save Project", ToolbarIcon.SaveProject, "", 1999)]
         public static void SaveProject()
         {
-            Debug.Log("Save project");
             foreach (var resourceUUID in dirtyResources)
             {
                 string path = ProjectLibrary.GetPath(resourceUUID);
                 Resource resource = ProjectLibrary.Load<Resource>(path);
 
-                Debug.Log("Save project item: " + path + " - " + (resource != null));
                 if(resource != null)
                     ProjectLibrary.Save(resource);
             }

+ 1 - 1
MBansheeEditor/Library/LibraryGUIEntry.cs

@@ -327,7 +327,7 @@ namespace BansheeEditor
                     }
                     else if (resEntry.ResType == ResourceType.ScriptCode)
                     {
-                        ProgressBar.Show("Opening Visual Studio...", 1.0f);
+                        ProgressBar.Show("Opening external code editor...", 1.0f);
                         CodeEditor.OpenFile(resEntry.Path, 0);
                         ProgressBar.Hide();
                     }