Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-12-21 02:26:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-21 02:26:29 +0300
commita9ba96896a627688be3359bf6a9d7e25995aa631 (patch)
treedea6a458787470ae2b046acd5247838e343323be /source/blender/makesrna/intern/rna_object.c
parent4530b4984cc0bee1e67115c883dfaa98076832a9 (diff)
modified fix for commits r33811, 33812.
- SSS Presets were not working on pinned materials. - added ability for save-presets to define variables to stop them becoming too verbose. - remove object.active_node_material
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 6031d3e29d9..6dbf6fca108 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -597,22 +597,6 @@ static PointerRNA rna_Object_active_material_get(PointerRNA *ptr)
return rna_pointer_inherit_refine(ptr, &RNA_Material, ma);
}
-/* returns (optional) active node material in base material */
-static PointerRNA rna_Object_active_node_material_get(PointerRNA *ptr)
-{
- Object *ob= (Object*)ptr->id.data;
- Material *ma;
-
- ma= (ob->totcol)? give_current_material(ob, ob->actcol): NULL;
- if(ma) {
- Material *manode= give_node_material(ma);
- if(manode)
- return rna_pointer_inherit_refine(ptr, &RNA_Material, manode);
- }
-
- return rna_pointer_inherit_refine(ptr, &RNA_Material, ma);
-}
-
static void rna_Object_active_material_set(PointerRNA *ptr, PointerRNA value)
{
Object *ob= (Object*)ptr->id.data;
@@ -1794,13 +1778,6 @@ static void rna_def_object(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Active Material", "Active material being displayed");
RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, "rna_MaterialSlot_update");
- prop= RNA_def_property(srna, "active_node_material", PROP_POINTER, PROP_NONE);
- RNA_def_property_struct_type(prop, "Material");
- RNA_def_property_pointer_funcs(prop, "rna_Object_active_node_material_get", NULL, NULL, NULL);
- RNA_def_property_ui_text(prop, "Active Material", "Active (node) material being displayed");
- RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);
-
-
prop= RNA_def_property(srna, "active_material_index", PROP_INT, PROP_UNSIGNED);
RNA_def_property_int_sdna(prop, NULL, "actcol");
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);