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
diff options
context:
space:
mode:
-rw-r--r--source/blender/blenkernel/intern/paint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c
index 8218f474620..0dbe4c56a09 100644
--- a/source/blender/blenkernel/intern/paint.c
+++ b/source/blender/blenkernel/intern/paint.c
@@ -189,6 +189,8 @@ Paint *BKE_paint_get_active_from_context(const bContext *C)
return &ts->uvsculpt->paint;
else
return &ts->imapaint.paint;
+ default:
+ return &ts->imapaint.paint;
}
}
else {
@@ -238,6 +240,8 @@ PaintMode BKE_paintmode_get_active_from_context(const bContext *C)
return PAINT_SCULPT_UV;
else
return PAINT_TEXTURE_2D;
+ default:
+ return PAINT_TEXTURE_2D;
}
}
else {