diff options
Diffstat (limited to 'source')
-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)); } } |