diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-12-09 02:24:41 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-12-09 02:24:41 +0400 |
commit | 3c4987f98378d44eda133311c65aa19412e4cd38 (patch) | |
tree | 4371b4117d3290e60a58190481e926ebb17fcf28 /source/blender/blenkernel/intern/linestyle.c | |
parent | ec33687d6cf74775e37fdc1a14e22dea08289cb1 (diff) |
Fix for a number of compiler warnings as well as a bug hidden by the warnings.
Patch contribution by Bastien Montagne, thanks!
Diffstat (limited to 'source/blender/blenkernel/intern/linestyle.c')
-rw-r--r-- | source/blender/blenkernel/intern/linestyle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/linestyle.c b/source/blender/blenkernel/intern/linestyle.c index 0ed1b02d3c9..43a0daef80c 100644 --- a/source/blender/blenkernel/intern/linestyle.c +++ b/source/blender/blenkernel/intern/linestyle.c @@ -48,7 +48,7 @@ #include "BLI_blenlib.h" -static char *modifier_name[LS_MODIFIER_NUM] = { +static const char *modifier_name[LS_MODIFIER_NUM] = { NULL, "Along Stroke", "Distance from Camera", @@ -95,7 +95,7 @@ static void default_linestyle_settings(FreestyleLineStyle *linestyle) linestyle->caps = LS_CAPS_BUTT; } -FreestyleLineStyle *FRS_new_linestyle(char *name, struct Main *main) +FreestyleLineStyle *FRS_new_linestyle(const char *name, struct Main *main) { FreestyleLineStyle *linestyle; |