Fix T45317: Cycles material preview unnecessarily re-rendering
The issue was caused by wrong fix for T22741 which forced redraws on any window event, like Expose. Use proper NV_WM | ND_UNDO listener instead,
This commit is contained in:
@@ -1406,7 +1406,6 @@ void PointDensityTextureNode::compile(SVMCompiler& compiler)
|
|||||||
|
|
||||||
void PointDensityTextureNode::compile(OSLCompiler& compiler)
|
void PointDensityTextureNode::compile(OSLCompiler& compiler)
|
||||||
{
|
{
|
||||||
ShaderInput *vector_in = input("Vector");
|
|
||||||
ShaderOutput *density_out = output("Density");
|
ShaderOutput *density_out = output("Density");
|
||||||
ShaderOutput *color_out = output("Color");
|
ShaderOutput *color_out = output("Color");
|
||||||
|
|
||||||
|
@@ -371,9 +371,11 @@ static void buttons_area_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier *
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
/* Listener for preview render, when doing an global undo. */
|
/* Listener for preview render, when doing an global undo. */
|
||||||
case NC_WINDOW:
|
case NC_WM:
|
||||||
ED_area_tag_redraw(sa);
|
if (wmn->data == ND_UNDO) {
|
||||||
sbuts->preview = 1;
|
ED_area_tag_redraw(sa);
|
||||||
|
sbuts->preview = 1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef WITH_FREESTYLE
|
#ifdef WITH_FREESTYLE
|
||||||
case NC_LINESTYLE:
|
case NC_LINESTYLE:
|
||||||
|
Reference in New Issue
Block a user