Skip to content

Commit

Permalink
Support Terrain material colors (requires Lune 0.7.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoontee committed Oct 14, 2023
1 parent c953b17 commit 214c8c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Binary file modified Lync/Plugin.rbxm
Binary file not shown.
13 changes: 4 additions & 9 deletions Lync/RobloxPluginSource/Plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -713,15 +713,10 @@ local function buildPath(path: string)
end
if data.TerrainMaterialColors then
if target == workspace.Terrain then
if isBuildScript then
-- Temporary. Awaiting rbx-dom / Lune update.
print("Terrain material colors unimplemented!")
else
for material, value in data.TerrainMaterialColors do
lpcall("Set Terrain Material Color", function()
workspace.Terrain:SetMaterialColor(material, eval(value))
end)
end
for material, value in data.TerrainMaterialColors do
lpcall("Set Terrain Material Color", function()
workspace.Terrain:SetMaterialColor(material, eval(value))
end)
end
else
terminate("Cannot use $terrainMaterialColors property with " .. tostring(target))
Expand Down

0 comments on commit 214c8c1

Please sign in to comment.