Skip to content

Commit 7eaef71

Browse files
committed
tiny fix
variable scope issue
1 parent 2196811 commit 7eaef71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/pac3/editor/client/panels/properties.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,8 +1756,8 @@ do -- base editable
17561756
local files = get_files_recursively(nil, path, {"vmt"})
17571757

17581758
for i,file in ipairs(files) do
1759-
mat_no_ext = string.sub(file,11,#file) --"materials/"
1760-
menu3:AddOption(string.StripExtension(file), function()
1759+
local mat_no_ext = string.StripExtension(string.sub(file,11,#file)) --"materials/"
1760+
menu3:AddOption(mat_no_ext, function()
17611761
self:SetValue(mat_no_ext)
17621762
if self.CurrentKey == "Material" then
17631763
pace.current_part:SetMaterial(mat_no_ext)

0 commit comments

Comments
 (0)