[Bf-blender-cvs] [99b9636bf01] hair_guides: Depsgraph update after changing guide curves through the fur modifier.
Lukas Tönne
noreply at git.blender.org
Tue May 1 07:44:07 CEST 2018
Commit: 99b9636bf0175402ecc676a9677429b8bdf418e6
Author: Lukas Tönne
Date: Thu Apr 26 06:57:46 2018 +0100
Branches: hair_guides
https://developer.blender.org/rB99b9636bf0175402ecc676a9677429b8bdf418e6
Depsgraph update after changing guide curves through the fur modifier.
===================================================================
M source/blender/makesrna/intern/rna_modifier.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index b2bb5cd3079..f472bcba5a5 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -1252,6 +1252,9 @@ static void rna_Fur_guide_curves_apply(ID *id, FurModifierData *fmd, bContext *C
DerivedMesh *scalp = mesh_get_derived_final(CTX_data_depsgraph(C), CTX_data_scene(C), (Object*)id, CD_MASK_BAREMESH);
BKE_hair_bind_follicles(fmd->hair_system, scalp);
}
+
+ DEG_id_tag_update(id, OB_RECALC_DATA);
+ WM_main_add_notifier(NC_OBJECT | ND_MODIFIER, id);
}
#else
More information about the Bf-blender-cvs
mailing list