浏览代码

fix final issues (possible null ref + calling wrong function on cleanup)

/main
Tim Cooper 8 年前
当前提交
287456d2
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 10
      Assets/ScriptableRenderLoop/HDRenderLoop/Editor/HDRenderLoopInspector.cs
  2. 2
      Assets/ScriptableRenderLoop/fptl/FptlLighting.cs

10
Assets/ScriptableRenderLoop/HDRenderLoop/Editor/HDRenderLoopInspector.cs


public readonly GUIContent bigTilePrepass = new GUIContent("Enable big tile prepass", "Toggle");
public readonly GUIContent clustered = new GUIContent("Enable clustered", "Toggle");
public readonly GUIContent disableTileAndCluster = new GUIContent("Disable Tile/clustered", "Toggle");
public readonly GUIContent disableDeferredShadingInCompute = new GUIContent("Disable deferred shading in compute", "Toggle");
public readonly GUIContent disableDeferredShadingInCompute = new GUIContent("Disable deferred shading in compute", "Toggle");
public readonly GUIContent textureSettings = new GUIContent("Texture Settings");
public readonly GUIContent spotCookieSize = new GUIContent("Spot cookie size");

EditorUtility.SetDirty(renderLoop); // Repaint
// SetAssetDirty will tell renderloop to rebuild
renderLoop.Cleanup();
renderLoop.ClearCachedData();
}
EditorGUI.BeginChangeCheck();

2
Assets/ScriptableRenderLoop/fptl/FptlLighting.cs


{
base.InternalCleanup();
FptlLighting theOwner = owner as FptlLighting;
if (owner != null)
if (theOwner != null)
theOwner.Cleanup();
}
}

正在加载...
取消
保存