2
0
BearishSun 10 жил өмнө
parent
commit
2021c91753

+ 2 - 0
BansheeEditor/Include/BsSelection.h

@@ -62,6 +62,8 @@ namespace BansheeEngine
 
 		/**
 		 * @brief	Pings the resource, highlighting it in its respective editors.
+		 * 		
+		 * @param	resourcePath	Resource path relative to the project library resources folder.
 		 */
 		void ping(const Path& resourcePath);
 

+ 2 - 0
SBansheeEditor/Source/BsGUIResourceField.cpp

@@ -252,6 +252,8 @@ namespace BansheeEngine
 			return;
 
 		Path resPath = gProjectLibrary().uuidToPath(mUUID);
+		resPath = resPath.getRelative(gProjectLibrary().getResourcesFolder());
+
 		Selection::instance().ping(resPath);
 	}
 

+ 2 - 0
SBansheeEditor/Source/BsGUITextureField.cpp

@@ -233,6 +233,8 @@ namespace BansheeEngine
 			return;
 
 		Path resPath = gProjectLibrary().uuidToPath(mUUID);
+		resPath = resPath.getRelative(gProjectLibrary().getResourcesFolder());
+
 		Selection::instance().ping(resPath);
 	}