Commit: e163beb2739f3b414059395da3cab051e5e556cc
Author: Lukas Tönne
Date:   Tue May 29 08:14:39 2018 +0100
Branches: hair_guides_grooming
https://developer.blender.org/rBe163beb2739f3b414059395da3cab051e5e556cc

Disable unlink operator for the bundle face map, since unbound bundles are not 
functional.

We can still end up with unbound bundles, e.g. when face maps are removed or 
renamed,
so it needs to be accounted for. But this should not be an explicit user action.

===================================================================

M       source/blender/makesrna/intern/rna_groom.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_groom.c 
b/source/blender/makesrna/intern/rna_groom.c
index cb8e42265fe..0751eb4e3aa 100644
--- a/source/blender/makesrna/intern/rna_groom.c
+++ b/source/blender/makesrna/intern/rna_groom.c
@@ -148,6 +148,7 @@ static void rna_def_groom_bundle(BlenderRNA *brna)
        
        prop = RNA_def_property(srna, "scalp_facemap", PROP_STRING, PROP_NONE);
        RNA_def_property_string_sdna(prop, NULL, "scalp_facemap_name");
+       RNA_def_property_flag(prop, PROP_NEVER_UNLINK);
        RNA_def_property_ui_text(prop, "Scalp Vertex Group", "Face map name of 
the scalp region");
        RNA_def_property_string_funcs(prop, NULL, NULL, 
"rna_GroomBundle_scalp_facemap_name_set");
        RNA_def_property_update(prop, NC_GROOM | ND_DRAW, 
"rna_Groom_update_data");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to