Skip to content

Commit dab0193

Browse files
authored
The eraser tool should not erase pinned widgets (#819)
1 parent 9bcb95c commit dab0193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/Tools/EraserTool.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ override public void IntersectionHappenedThisFrame()
8484

8585
override protected bool HandleIntersectionWithWidget(GrabWidget widget)
8686
{
87-
if (widget is MediaWidget)
87+
if (widget is MediaWidget && !widget.Pinned)
8888
{
8989
SketchMemoryScript.m_Instance.PerformAndRecordCommand(new HideWidgetCommand(widget));
9090
AudioManager.m_Instance.ShowHideWidget(false, transform.position);

0 commit comments

Comments
 (0)