Skip to content

Commit 54f1aaf

Browse files
lochristEvergreen
authored andcommitted
Search table view multi edit fixes (6.5 backport)
1 parent 5fbd581 commit 54f1aaf

3 files changed

Lines changed: 105 additions & 147 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ internal static string GetBakingMode(ProbeVolumeBakingSet bakingSet)
308308

309309
internal static void SetBakingMode(ProbeVolumeBakingSet bakingSet, string mode)
310310
{
311+
Undo.RecordObject(bakingSet, "Change Baking Mode");
311312
bakingSet.singleSceneMode = (mode == "Single Scene");
312313
}
313314

@@ -318,6 +319,7 @@ internal static int GetSkyOcclusionBakingSamples(ProbeVolumeBakingSet bakingSet)
318319

319320
internal static void SetSkyOcclusionBakingSamples(ProbeVolumeBakingSet bakingSet, int samples)
320321
{
322+
Undo.RecordObject(bakingSet, "Change Occlusion Baking");
321323
bakingSet.skyOcclusionBakingSamples = samples;
322324
}
323325

@@ -334,6 +336,7 @@ internal static void SetVolumeMode(GameObject go, string mode)
334336
if (!go.TryGetComponent<Volume>(out var volume))
335337
return;
336338

339+
Undo.RecordObject(volume, "Change Volume Mode");
337340
volume.isGlobal = (mode == "Global");
338341
}
339342

@@ -350,6 +353,7 @@ internal static void SetVolumeProfile(GameObject go, VolumeProfile profile)
350353
if (!go.TryGetComponent<Volume>(out var volume))
351354
return;
352355

356+
Undo.RecordObject(volume, "Change Volume Profile");
353357
volume.sharedProfile = profile;
354358
}
355359

@@ -368,6 +372,7 @@ internal static void SetLightShape(GameObject go, LightType value)
368372

369373
if (IsLightShapeApplicable(value))
370374
{
375+
Undo.RecordObject(light, "Change light Shape");
371376
light.type = value;
372377
}
373378
}

0 commit comments

Comments
 (0)