diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-03 21:11:25 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-03 21:11:25 +0400 |
commit | 57407d39b0230a1f1a137beaedb7a4771d8b8272 (patch) | |
tree | 0560fb23d2e0e356bf92247d8745b65efc2878df | |
parent | 0dabf824fbcb7d343919edd88e29bd267a8734f6 (diff) |
Fix crash when trying to reset color space to default value
-rw-r--r-- | source/blender/makesrna/intern/rna_color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c index c430a89655d..2ae3ca1dfbd 100644 --- a/source/blender/makesrna/intern/rna_color.c +++ b/source/blender/makesrna/intern/rna_color.c @@ -544,7 +544,7 @@ static void rna_ColorManagedColorspaceSettings_colorspace_set(struct PointerRNA ColorManagedColorspaceSettings *colorspace = (ColorManagedColorspaceSettings *) ptr->data; const char *name = IMB_colormanagement_colorspace_get_indexed_name(value); - if (name) { + if (name && name[0]) { BLI_strncpy(colorspace->name, name, sizeof(colorspace->name)); } } |