Skip to content

Commit

Permalink
Updated: Expand-contract nodes factorization
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdvideo1234 committed Jul 29, 2024
1 parent 186db54 commit 7c5c080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ local asmlib = trackasmlib; if(not asmlib) then -- Module present
------------ CONFIGURE ASMLIB ------------

asmlib.InitBase("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","8.759")
asmlib.SetOpVar("TOOL_VERSION","8.760")

------------ CONFIGURE GLOBAL INIT OPVARS ------------

Expand Down
13 changes: 3 additions & 10 deletions lua/trackassembly/trackasmlib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1711,18 +1711,11 @@ function GetDirectory(pCurr, vName)
end

function SetExpandNode(pnBase)
local bEx = pnBase:GetExpanded()
if(inputIsKeyDown(KEY_LSHIFT)) then
if(pnBase:GetExpanded()) then
pnBase:ExpandRecurse(false)
else
pnBase:ExpandRecurse(true)
end
pnBase:ExpandRecurse(not bEx)
else
if(pnBase:GetExpanded()) then
pnBase:SetExpanded(false)
else
pnBase:SetExpanded(true)
end
pnBase:SetExpanded(not bEx)
end
end

Expand Down

0 comments on commit 7c5c080

Please sign in to comment.