@@ -273,19 +273,28 @@ public override void OnInspectorGUI()
273
273
EditorGUI . indentLevel ++ ;
274
274
EditorGUI . BeginChangeCheck ( ) ;
275
275
276
- tilePass . debugViewTilesFlags = EditorGUILayout . MaskField ( "DebugView Tiles" , tilePass . debugViewTilesFlags , styles . tileLightLoopDebugTileFlagStrings ) ;
277
- tilePass . enableSplitLightEvaluation = EditorGUILayout . Toggle ( styles . splitLightEvaluation , tilePass . enableSplitLightEvaluation ) ;
278
276
tilePass . enableBigTilePrepass = EditorGUILayout . Toggle ( styles . bigTilePrepass , tilePass . enableBigTilePrepass ) ;
279
277
tilePass . enableClustered = EditorGUILayout . Toggle ( styles . clustered , tilePass . enableClustered ) ;
280
- tilePass . disableTileAndCluster = EditorGUILayout . Toggle ( styles . disableTileAndCluster , tilePass . disableTileAndCluster ) ;
281
278
282
279
if ( EditorGUI . EndChangeCheck ( ) )
283
280
{
284
281
EditorUtility . SetDirty ( renderLoop ) ; // Repaint
285
282
286
- // If something is chanage on tilePassLightLoop we need to force a OnValidate() OnHDRenderLoop, else change Rebuild() will not be call
283
+ // If something is chanage regarding tile/cluster rendering we need to force a OnValidate() OnHDRenderLoop, else change Rebuild() will not be call
287
284
renderLoop . OnValidate ( ) ;
288
285
}
286
+
287
+ EditorGUI . BeginChangeCheck ( ) ;
288
+
289
+ tilePass . debugViewTilesFlags = EditorGUILayout . MaskField ( "DebugView Tiles" , tilePass . debugViewTilesFlags , styles . tileLightLoopDebugTileFlagStrings ) ;
290
+ tilePass . enableSplitLightEvaluation = EditorGUILayout . Toggle ( styles . splitLightEvaluation , tilePass . enableSplitLightEvaluation ) ;
291
+ tilePass . disableTileAndCluster = EditorGUILayout . Toggle ( styles . disableTileAndCluster , tilePass . disableTileAndCluster ) ;
292
+
293
+ if ( EditorGUI . EndChangeCheck ( ) )
294
+ {
295
+ EditorUtility . SetDirty ( renderLoop ) ; // Repaint
296
+ UnityEditorInternal . InternalEditorUtility . RepaintAllViews ( ) ;
297
+ }
289
298
EditorGUI . indentLevel -- ;
290
299
}
291
300
}
0 commit comments