浏览代码

Make master preview dirty after rendertexture is resized (fixes #235)

/main
Jens Holm 7 年前
当前提交
d3b6cb07
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/MasterPreviewView.cs

2
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Inspector/MasterPreviewView.cs


m_PreviewRenderHandle.renderTexture.Release();
Object.DestroyImmediate(m_PreviewRenderHandle.renderTexture);
m_PreviewRenderHandle.renderTexture = new RenderTexture(descriptor);
DirtyMasterNode(ModificationScope.Node);
}
public void UpdateRenderTextureOnNextLayoutChange()

正在加载...
取消
保存