Skip to content

Commit fcf3034

Browse files
YvainRaeymaekersEvergreen
authored andcommitted
Fixed UUM-72471: Can't add a Scene to a Baking Set when it has just b…
JIRA: https://jira.unity3d.com/browse/UUM-72471 Actual deletion code was missing from the onRemoveCallback of the ReorderedList.
1 parent b5cee89 commit fcf3034

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeVolumeLightingTab.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,9 @@ void InitializeSceneList()
616616

617617
onRemoveCallback = (list) =>
618618
{
619+
var guid = (string)list.list[list.index];
620+
activeSet.RemoveScene(guid);
619621
Undo.RegisterCompleteObjectUndo(new Object[] { activeSet }, "Deleted scene in baking set");
620-
621-
ReorderableList.defaultBehaviours.DoRemoveButton(list);
622622
EditorUtility.SetDirty(activeSet);
623623
},
624624

@@ -1191,7 +1191,7 @@ bool IsVisible()
11911191
EnableGroupBox(probeDistanceGroupBox, debug.drawBricks);
11921192
EnableGroupBox(probeSamplingGroupBox, debug.drawProbeSamplingDebug);
11931193
EnableTextArea(vertexSamplingWarning, ProbeReferenceVolume.instance.vertexSampling);
1194-
1194+
11951195
if (debugLayers && m_LayerToggles != null)
11961196
{
11971197
if (bakingSet.bakedMaskCount != 1)

0 commit comments

Comments
 (0)