changes for materials to treat them as shorts not int/chars (since they are stored...
[blender-staging.git] / source / blender / makesrna / intern / rna_curve.c
index 99473d13daa160f9488e2e63b4a95d1c12c653f8..5d0c1db572d25c557a93821d8d6db142133300c3 100644 (file)
@@ -296,7 +296,8 @@ static EnumPropertyItem *rna_Curve_fill_mode_itemf(bContext *UNUSED(C), PointerR
 {
        Curve *cu= (Curve*)ptr->id.data;
 
-       return (cu->flag&CU_3D)  ? curve3d_fill_mode_items : curve2d_fill_mode_items;
+       /* cast to quiet warning it IS a const still */
+       return (EnumPropertyItem *)((cu->flag & CU_3D) ? curve3d_fill_mode_items : curve2d_fill_mode_items);
 }
 
 static int rna_Nurb_length(PointerRNA *ptr)