[Bf-blender-cvs] [327e1d335ed] temp-fracture-modifier-2.8: added "shared" pointer prop in RNA
Martin Felke
noreply at git.blender.org
Fri Aug 10 14:00:56 CEST 2018
Commit: 327e1d335ed4d361d51d1eaead824a9d65c323f1
Author: Martin Felke
Date: Thu Aug 9 23:34:13 2018 +0200
Branches: temp-fracture-modifier-2.8
https://developer.blender.org/rB327e1d335ed4d361d51d1eaead824a9d65c323f1
added "shared" pointer prop in RNA
this way access to mesh_islands / mesh_constraints is possible again
===================================================================
M source/blender/makesrna/intern/rna_fracture.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_fracture.c b/source/blender/makesrna/intern/rna_fracture.c
index 51701a524e0..b6a6aad27fc 100644
--- a/source/blender/makesrna/intern/rna_fracture.c
+++ b/source/blender/makesrna/intern/rna_fracture.c
@@ -688,7 +688,7 @@ static void rna_Modifier_update_and_keep(Main *UNUSED(bmain), Scene *UNUSED(scen
void RNA_def_fracture(BlenderRNA *brna)
{
- StructRNA *srna;
+ StructRNA *srna, *subrna;
PropertyRNA *prop;
static EnumPropertyItem prop_fracture_algorithm[] = {
@@ -1469,12 +1469,12 @@ void RNA_def_fracture(BlenderRNA *brna)
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_update(prop, 0, "rna_Modifier_update");
- //prop = RNA_def_property(srna, "shared", PROP_POINTER, PROP_NONE);
- //RNA_def_property_pointer_sdna(prop, NULL, "shared");
- //RNA_def_property_struct_type(prop, "FractureModifierData_Shared");
+ subrna = RNA_def_struct(brna, "FractureModifierShared", NULL);
+ RNA_def_struct_sdna(subrna, "FractureModifierData_Shared");
- srna = RNA_def_struct(brna, "FractureModifierShared", NULL);
- RNA_def_struct_sdna(srna, "FractureModifierData_Shared");
+ prop = RNA_def_property(srna, "shared", PROP_POINTER, PROP_NONE);
+ RNA_def_property_pointer_sdna(prop, NULL, "shared");
+ RNA_def_property_struct_type(prop, "FractureModifierShared");
- RNA_api_fracture(brna, srna);
+ RNA_api_fracture(brna, subrna);
}
More information about the Bf-blender-cvs
mailing list