Skip to content

Commit 9016fee

Browse files
committed
Compile issues
1 parent 9474d5d commit 9016fee

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

com.unity.cinemachine/Editor/PostProcessing/CinemachineAutoFocusEditor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ public override VisualElement CreateInspectorGUI()
4545
var shaderDisplay = ux.AddChild(new PropertyField(computeShaderProp));
4646
shaderDisplay.SetEnabled(false);
4747

48-
var importHelp = ux.AddChild(InspectorUtility.HelpBoxWithButton(
48+
var importHelp = ux.AddChild(new HelpBox(
4949
$"The {k_ComputeShaderName} shader needs to be imported into "
5050
+ "the project. It will be imported by default into the Assets root. "
5151
+ "After importing, you can move it elsewhere but don't rename it.",
52-
HelpBoxMessageType.Warning,
53-
"Import\nShader", () =>
52+
HelpBoxMessageType.Warning));
53+
importHelp.AddButton("Import\nShader", () =>
5454
{
5555
// Check if it's already imported, just in case
5656
var shader = FindShader();
@@ -65,7 +65,7 @@ public override VisualElement CreateInspectorGUI()
6565
shader = AssetDatabase.LoadAssetAtPath<ComputeShader>(shaderAssetPath);
6666
}
6767
AssignShaderToTarget(shader);
68-
}));
68+
});
6969
#endif
7070

7171
ux.TrackPropertyWithInitialCallback(focusTargetProp, (p) =>

com.unity.cinemachine/Runtime/PostProcessing/CinemachineVolumeSettings.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,12 @@ protected override void PostPipelineStageCallback(
213213
dof.focalLength.value = srcDof.focalLength.value;
214214
}
215215
#endif
216+
217+
#if UNITY_EDITOR
218+
#pragma warning disable CS0618 // Type or member is obsolete
216219
extra.ProfileCopy.isDirty = true;
220+
#pragma warning restore CS0618
221+
#endif
217222
}
218223
profile = extra.ProfileCopy;
219224
}

0 commit comments

Comments
 (0)