Cycles: log how many nodes were deduplicated for use in tests.

To make the number more meaningful, also skip deduplicating
obviously unused nodes with no outgoing links.
This commit is contained in:
Alexander Gavrilov
2016-08-02 19:26:57 +03:00
parent e54320c488
commit f2d5295abf
2 changed files with 14 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ TEST(render_graph, deduplicate_deep)
EXPECT_ANY_MESSAGE(log);
CORRECT_INFO_MESSAGE(log, "Folding Value1::Value to constant (0.8).");
CORRECT_INFO_MESSAGE(log, "Folding Value2::Value to constant (0.8).");
CORRECT_INFO_MESSAGE(log, "Deduplicated 2 nodes.");
builder
.add_node(ShaderNodeBuilder<GeometryNode>("Geometry1"))