Skip to content

Commit acdf747

Browse files
committed
Fixes bug where sketchbook panel is opened if a sketch is loaded by a command line argument
1 parent b0905f2 commit acdf747

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/Scripts/SketchControlsScript.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -4132,7 +4132,10 @@ public void LoadSketch(SceneFileInfo fileInfo, bool quickload = false, bool addi
41324132
m_WidgetManager.FollowingPath = false;
41334133
m_WidgetManager.CameraPathsVisible = false;
41344134
m_WidgetManager.DestroyAllWidgets();
4135-
m_PanelManager.ToggleSketchbookPanels(isLoadingSketch: true);
4135+
if (m_PanelManager.SketchbookActive())
4136+
{
4137+
m_PanelManager.ToggleSketchbookPanels(isLoadingSketch: true);
4138+
}
41364139
ResetGrabbedPose(everything: true);
41374140
PointerManager.m_Instance.EnablePointerStrokeGeneration(true);
41384141
if (SaveLoadScript.m_Instance.Load(fileInfo, additive))

0 commit comments

Comments
 (0)