[Bf-blender-cvs] [8763a8fd4bf] blender2.8: Particle edit: Fix missing hair in edit mode for new particle systems
Sergey Sharybin
noreply at git.blender.org
Wed Jun 20 11:06:54 CEST 2018
Commit: 8763a8fd4bf36e3e8ede5937a63a607ca7fadbba
Author: Sergey Sharybin
Date: Wed Jun 20 11:05:52 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8763a8fd4bf36e3e8ede5937a63a607ca7fadbba
Particle edit: Fix missing hair in edit mode for new particle systems
Need to get away from thosae update flags in original datablocks.
===================================================================
M source/blender/blenkernel/intern/particle_system.c
===================================================================
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 314a58647a9..1c50e85668d 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -4221,16 +4221,6 @@ void particle_system_update(struct Depsgraph *depsgraph, Scene *scene, Object *o
if (!psys_check_enabled(ob, psys, use_render_params))
return;
- if (DEG_is_active(depsgraph)) {
- if (psys->orig_psys != NULL &&
- psys->orig_psys->edit != NULL &&
- psys->orig_psys->edit->psys == psys_orig_get(psys))
- {
- psys->orig_psys->edit->psys_eval = psys;
- psys->orig_psys->edit->psmd_eval = psmd;
- }
- }
-
cfra = DEG_get_ctime(depsgraph);
sim.depsgraph = depsgraph;
@@ -4385,6 +4375,18 @@ void particle_system_update(struct Depsgraph *depsgraph, Scene *scene, Object *o
psys_orig->edit->flags |= PT_CACHE_EDIT_UPDATE_PARTICLE_FROM_EVAL;
}
+ if (DEG_is_active(depsgraph)) {
+ if (psys_orig != psys) {
+ if (psys_orig->edit != NULL &&
+ psys_orig->edit->psys == psys_orig)
+ {
+ psys_orig->edit->psys_eval = psys;
+ psys_orig->edit->psmd_eval = psmd;
+ }
+ psys_orig->flag = psys->flag;
+ }
+ }
+
psys->cfra = cfra;
psys->recalc = 0;
More information about the Bf-blender-cvs
mailing list