Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_color.c2
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));
}
}