diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-19 17:36:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-19 17:36:09 +0300 |
commit | 4563849c1b3ca6eb7418ea2870f35a624ec04f81 (patch) | |
tree | 46ff162d9c06ca41025b51de3e756c8877e0f9cc /source/blender/makesrna | |
parent | 259879e135476da6255d1411d66089ccdc78ad9d (diff) |
Fixes for particle system and physics
- Silence harmless error print about relation.
Object with particle system which doesn't use physics will
not have point cache component.
- Tag relations for update when particle system physics type
change.
This ensures correct state of point cache component.
This is all part of T59258.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_particle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c index bc6c6917ed3..1eb96860c3e 100644 --- a/source/blender/makesrna/intern/rna_particle.c +++ b/source/blender/makesrna/intern/rna_particle.c @@ -670,6 +670,8 @@ static void rna_Particle_change_physics_type(Main *bmain, Scene *scene, PointerR part->fluid = MEM_callocN(sizeof(SPHFluidSettings), "SPH Fluid Settings"); BKE_particlesettings_fluid_default_settings(part); } + + DEG_relations_tag_update(bmain); } static void rna_Particle_redo_child(Main *bmain, Scene *scene, PointerRNA *ptr) |