fix #44; The masked images all disappear if game view is maximized
parent
76cb9129e9
commit
7a9efce141
|
@ -186,15 +186,6 @@ namespace Coffee.UIExtensions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static void UpdateSceneViewMatrixForShader()
|
static void UpdateSceneViewMatrixForShader()
|
||||||
{
|
{
|
||||||
UnityEditor.SceneView sceneView = UnityEditor.SceneView.lastActiveSceneView;
|
|
||||||
if (!sceneView || !sceneView.camera)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Camera cam = sceneView.camera;
|
|
||||||
Matrix4x4 w2c = cam.worldToCameraMatrix;
|
|
||||||
Matrix4x4 prj = cam.projectionMatrix;
|
|
||||||
|
|
||||||
s_ActiveSoftMaskables.RemoveAll(x=>!x);
|
s_ActiveSoftMaskables.RemoveAll(x=>!x);
|
||||||
foreach (var sm in s_ActiveSoftMaskables)
|
foreach (var sm in s_ActiveSoftMaskables)
|
||||||
|
|
Loading…
Reference in New Issue