diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-01-14 02:16:10 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-01-14 02:16:10 +0300 |
commit | 932f3dab2a997732047b6746e41e276faeee8097 (patch) | |
tree | d17ac10c2c35f359204138cc81a1280df2e21923 /source/blender/makesrna | |
parent | 9146ca06dd8974d7da3feb65dadc93c13d7ecb95 (diff) |
Bugfix [#25623] Intensity for Voxel data partially linked with
brightness
Committing fix on behalf of Matt. VoxelData/PointDensity RNA-structs
had malformed paths
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_texture.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index 7ad59795732..31a436ec417 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -148,6 +148,7 @@ static void rna_Texture_voxeldata_image_update(Main *bmain, Scene *scene, Pointe rna_Texture_voxeldata_update(bmain, scene, ptr); } + /* Used for Texture Properties, used (also) for/in Nodes */ static void rna_Texture_nodes_update(Main *bmain, Scene *scene, PointerRNA *ptr) { @@ -360,6 +361,16 @@ static void rna_PointDensity_psys_set(PointerRNA *ptr, PointerRNA value) pd->psys= BLI_findindex(&ob->particlesystem, value.data) + 1; } +static char *rna_PointDensity_path(PointerRNA *ptr) +{ + return BLI_sprintfN("point_density"); +} + +static char *rna_VoxelData_path(PointerRNA *ptr) +{ + return BLI_sprintfN("voxel_data"); +} + #else static void rna_def_texmapping(BlenderRNA *brna) @@ -1413,6 +1424,7 @@ static void rna_def_texture_pointdensity(BlenderRNA *brna) srna= RNA_def_struct(brna, "PointDensity", NULL); RNA_def_struct_sdna(srna, "PointDensity"); RNA_def_struct_ui_text(srna, "PointDensity", "Point density settings"); + RNA_def_struct_path_func(srna, "rna_PointDensity_path"); prop= RNA_def_property(srna, "point_source", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "source"); @@ -1565,6 +1577,7 @@ static void rna_def_texture_voxeldata(BlenderRNA *brna) srna= RNA_def_struct(brna, "VoxelData", NULL); RNA_def_struct_sdna(srna, "VoxelData"); RNA_def_struct_ui_text(srna, "VoxelData", "Voxel data settings"); + RNA_def_struct_path_func(srna, "rna_VoxelData_path"); prop= RNA_def_property(srna, "interpolation", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "interp_type"); |