diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/object_dupli.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object_dupli.cc b/source/blender/blenkernel/intern/object_dupli.cc index 666a31a9e3f..442755be15d 100644 --- a/source/blender/blenkernel/intern/object_dupli.cc +++ b/source/blender/blenkernel/intern/object_dupli.cc @@ -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); } |