[Bf-blender-cvs] [a261b850f14] fluid-mantaflow: Mantaflow: Minor update in smoke rna
Sebastián Barschkis
noreply at git.blender.org
Sat Apr 6 22:14:19 CEST 2019
Commit: a261b850f1427bbf3f3944072024a570fcceb35b
Author: Sebastián Barschkis
Date: Fri Apr 5 23:47:42 2019 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rBa261b850f1427bbf3f3944072024a570fcceb35b
Mantaflow: Minor update in smoke rna
Added const to return type to silence some warnings
===================================================================
M source/blender/makesrna/intern/rna_smoke.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c
index 708dba9628a..71cd57dba08 100644
--- a/source/blender/makesrna/intern/rna_smoke.c
+++ b/source/blender/makesrna/intern/rna_smoke.c
@@ -440,7 +440,7 @@ static void rna_Smoke_guiding_parent_set(PointerRNA *ptr, PointerRNA value)
}
}
-static EnumPropertyItem *rna_Smoke_cachetype_mesh_itemf(
+static const EnumPropertyItem *rna_Smoke_cachetype_mesh_itemf(
bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
{
EnumPropertyItem *item = NULL;
@@ -465,7 +465,7 @@ static EnumPropertyItem *rna_Smoke_cachetype_mesh_itemf(
return item;
}
-static EnumPropertyItem *rna_Smoke_cachetype_volume_itemf(
+static const EnumPropertyItem *rna_Smoke_cachetype_volume_itemf(
bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
{
EnumPropertyItem *item = NULL;
@@ -498,7 +498,7 @@ static EnumPropertyItem *rna_Smoke_cachetype_volume_itemf(
return item;
}
-static EnumPropertyItem *rna_Smoke_cachetype_particle_itemf(
+static const EnumPropertyItem *rna_Smoke_cachetype_particle_itemf(
bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
{
EnumPropertyItem *item = NULL;
@@ -916,7 +916,7 @@ static void rna_Smoke_flowsource_set(struct PointerRNA *ptr, int value)
}
}
-static EnumPropertyItem *rna_Smoke_flowsource_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free)
+static const EnumPropertyItem *rna_Smoke_flowsource_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free)
{
SmokeFlowSettings *settings = (SmokeFlowSettings *)ptr->data;
More information about the Bf-blender-cvs
mailing list