From be5d82b55b545d3dc70fd61c4cf4e197c3aab5c9 Mon Sep 17 00:00:00 2001 From: Continuity Date: Sun, 21 May 2023 19:34:04 +0200 Subject: [PATCH] - fix this as well --- Plater_ScriptingPanels.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plater_ScriptingPanels.lua b/Plater_ScriptingPanels.lua index 5fc08453..268d0ff3 100644 --- a/Plater_ScriptingPanels.lua +++ b/Plater_ScriptingPanels.lua @@ -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) @@ -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)