diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-09 23:03:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-09 23:03:05 +0300 |
commit | 4768c33dbbbbdae6e1d052016dbebf6639addfb5 (patch) | |
tree | c67cefd9499b0d5ceed2f1e10507e108afa2c24e /source/blender/blenkernel/intern | |
parent | 0d2b08035847b22936148e79bca61ffcbcac43f3 (diff) |
bugfix [#21055] Python: accessing ParticleEdit.hair causes segmentation violation
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index 3be01e38368..2ecb282a16e 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -579,6 +579,7 @@ void unlink_object(Scene *scene, Object *ob) if(sce->id.lib==NULL) { if(sce->camera==ob) sce->camera= NULL; if(sce->toolsettings->skgen_template==ob) sce->toolsettings->skgen_template = NULL; + if(sce->toolsettings->particle.object==ob) sce->toolsettings->particle.object= NULL; #ifdef DURIAN_CAMERA_SWITCH { |