File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
10
10
- CameraDeactivated events were not sent consistently when a blend interrupted another blend before completion.
11
11
- CameraActivated events were not sent consistently when activation was due to timeline blends.
12
12
13
+ ### Changed
14
+ - Added delayed processing to near and far clip plane inspector fields for the CinemachineCamera lens.
15
+
13
16
14
17
## [ 3.1.2] - 2024-10-01
15
18
Original file line number Diff line number Diff line change @@ -97,15 +97,18 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
97
97
var innerFovControl = foldout . AddChild ( new FovPropertyControl ( property , false ) ) ;
98
98
99
99
var nearClip = property . FindPropertyRelative ( ( ) => s_Def . NearClipPlane ) ;
100
- foldout . AddChild ( new PropertyField ( nearClip ) ) . RegisterValueChangeCallback ( ( evt ) =>
100
+ var nearClipField = foldout . AddChild ( new PropertyField ( nearClip ) ) ;
101
+ nearClipField . OnInitialGeometry ( ( ) => nearClipField . SafeSetIsDelayed ( ) ) ;
102
+ nearClipField . RegisterValueChangeCallback ( ( evt ) =>
101
103
{
102
104
if ( ! IsOrtho ( property ) && nearClip . floatValue < 0.01f )
103
105
{
104
106
nearClip . floatValue = 0.01f ;
105
107
property . serializedObject . ApplyModifiedPropertiesWithoutUndo ( ) ;
106
108
}
107
109
} ) ;
108
- foldout . Add ( new PropertyField ( property . FindPropertyRelative ( ( ) => s_Def . FarClipPlane ) ) ) ;
110
+ var farClipField = foldout . AddChild ( new PropertyField ( property . FindPropertyRelative ( ( ) => s_Def . FarClipPlane ) ) ) ;
111
+ farClipField . OnInitialGeometry ( ( ) => farClipField . SafeSetIsDelayed ( ) ) ;
109
112
foldout . Add ( new PropertyField ( property . FindPropertyRelative ( ( ) => s_Def . Dutch ) ) ) ;
110
113
111
114
var physical = foldout . AddChild ( new PropertyField ( property . FindPropertyRelative ( ( ) => s_Def . PhysicalProperties ) ) ) ;
You can’t perform that action at this time.
0 commit comments