Fix #35704: Simplify on scene with dupli recursion crashes
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 11 Jun 2013 11:21:16 +0000 (11:21 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 11 Jun 2013 11:21:16 +0000 (11:21 +0000)
commit568f0c70c13ed8aca358b9b50606c7cd671ce2e2
treea7231d02b01017dd5c0dcfd2f45de6a8ba40cf03
parente895c8302ea0f89a8a2040157d0f36e6ea978864
Fix #35704: Simplify on scene with dupli recursion crashes

Couple of issues here:

- User shouldn't be able to run into dupligroup recursion.
  It was checking already when setting a group for dupli.
  Added check to operator which adds object to group.

- It's still possible files with recursion are hanging around,
  so made simplify function robust to such kind of crap.
source/blender/editors/object/object_group.c
source/blender/makesrna/intern/rna_scene.c