     {
         ListView@ terrainBrushes = window.GetChild("BrushesContainer", true);
 
-        String brushesFileLocation = fileSystem.programDir + "Data/Textures/Editor/TerrainBrushes";
+        Array<String>@ resourceDirs = cache.resourceDirs;
+        String brushesFileLocation;
+        for (uint i = 0; i < resourceDirs.length; ++i)
+        {
+            brushesFileLocation = resourceDirs[i] + "Textures/Editor/TerrainBrushes";
+            if (fileSystem.DirExists(brushesFileLocation))
+                break;
+        }
+
         Array<String> files = fileSystem.ScanDir(brushesFileLocation, "*.*", SCAN_FILES, false);
 
         for (uint i = 0; i < files.length; ++i)


        UpdateTerrainSetConstantHeight(image, 0);

        image.SavePNG(fileLocation);

        Terrain@ terrain = node.CreateComponent("Terrain");

                continue;

            return value < (i + (i / 2)) ? i : i * 2;
        }

        return 2048;
    }
