Fix T92908: print warning when instance recursion limit is reached
Currently we have a fixed instance recursion limit. While we want to lift this limitation at some point, that is out of scope for a bug fix. For now just print a warning to make it easier to detect the issue. Differential Revision: https://developer.blender.org/D13162
This commit is contained in:
parent
74fe19b193
commit
4f246b8bf9
Notes:
blender-bot
2023-02-14 05:25:44 +01:00
Referenced by issue #93922, Geometry Nodes: This scene became extremely slow Referenced by issue #92908, Geometry Nodes: Cycles Ignores part of the geometry after Join Geometry node
|
@ -166,6 +166,10 @@ static void copy_dupli_context(
|
|||
r_ctx->persistent_id[r_ctx->level] = index;
|
||||
++r_ctx->level;
|
||||
|
||||
if (r_ctx->level == MAX_DUPLI_RECUR - 1) {
|
||||
std::cerr << "Warning: Maximum instance recursion level reached.\n";
|
||||
}
|
||||
|
||||
r_ctx->gen = get_dupli_generator(r_ctx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue