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:
authorAntonioya <blendergit@gmail.com>2018-08-02 18:45:17 +0300
committerAntonioya <blendergit@gmail.com>2018-08-02 18:45:32 +0300
commit909556aa26845e9afe3e96ccb9d6e8b87eb8eae1 (patch)
treecce3e98220504649ca2a687b9386784e7112670c /source/blender/makesrna/intern/rna_main_api.c
parent9914c05bd762d495fe3778c417ba1c7c9d7f1332 (diff)
Fix wrong RNA Api parameter definition
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index 50aa3cb5b81..f6e5a6107c9 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -269,9 +269,11 @@ static Material *rna_Main_materials_new(Main *bmain, const char *name)
return (Material *)id;
}
-static void rna_Main_materials_gpencil_data(Main *UNUSED(bmain), struct PointerRNA *ma)
+static void rna_Main_materials_gpencil_data(Main *UNUSED(bmain), PointerRNA *id_ptr)
{
- BKE_material_init_gpencil_settings((Material *)ma);
+ ID *id = id_ptr->data;
+ Material *ma = (Material *)id;
+ BKE_material_init_gpencil_settings(ma);
}
static const EnumPropertyItem *rna_Main_nodetree_type_itemf(bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)