Skip to content

Commit

Permalink
- fix this as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cont1nuity committed May 21, 2023
1 parent 5d3b090 commit be5d82b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plater_ScriptingPanels.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ end
--call the external function to import this script with ignoreRevision, overrideExisting and showDebug
local importSuccess, newObject = Plater.ImportScriptString (text, true, true, true, keepExisting)
if (importSuccess) then
PlaterOptionsPanelContainer:SelectIndex (Plater, PLATER_OPTIONS_HOOKING_TAB)
PlaterOptionsPanelContainer:SelectTabByIndex (PLATER_OPTIONS_HOOKING_TAB)
local mainFrame = PlaterOptionsPanelContainer
local hookFrame = mainFrame.AllFrames [PLATER_OPTIONS_HOOKING_TAB]
hookFrame.EditScript (newObject)
Expand All @@ -417,7 +417,7 @@ end
elseif (scriptType == "script") then
local importSuccess, newObject = Plater.ImportScriptString (text, true, true, true, keepExisting)
if (importSuccess) then
PlaterOptionsPanelContainer:SelectIndex (Plater, PLATER_OPTIONS_SCRIPTING_TAB)
PlaterOptionsPanelContainer:SelectTabByIndex (PLATER_OPTIONS_SCRIPTING_TAB)
local mainFrame = PlaterOptionsPanelContainer
local scriptingFrame = mainFrame.AllFrames [PLATER_OPTIONS_SCRIPTING_TAB]
scriptingFrame.EditScript (newObject)
Expand Down

0 comments on commit be5d82b

Please sign in to comment.