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:
authorJeroen Bakker <jeroen@blender.org>2022-02-22 12:30:02 +0300
committerJeroen Bakker <jeroen@blender.org>2022-02-22 12:30:02 +0300
commit683a77256dc8845955a8592a730457e0bdc3c10c (patch)
tree134ff45a65f023f9f57e9304952c309f379e6a0c /source/blender/editors/sculpt_paint
parent4ba894cbb88a6cf312aece6432b84a5de6bb9aa3 (diff)
Fix compilation issue under windows.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.cc b/source/blender/editors/sculpt_paint/paint_image.cc
index 139fc6a0409..eda686d808d 100644
--- a/source/blender/editors/sculpt_paint/paint_image.cc
+++ b/source/blender/editors/sculpt_paint/paint_image.cc
@@ -67,6 +67,8 @@
#include "paint_intern.h"
+extern "C" {
+
/**
* This is a static resource for non-global access.
* Maybe it should be exposed as part of the paint operation,
@@ -1239,11 +1241,11 @@ static int texture_paint_toggle_exec(bContext *C, wmOperator *op)
Main *bmain = CTX_data_main(C);
Scene *scene = CTX_data_scene(C);
Object *ob = CTX_data_active_object(C);
- const eObjectMode mode_flag = OB_MODE_TEXTURE_PAINT;
+ const int mode_flag = OB_MODE_TEXTURE_PAINT;
const bool is_mode_set = (ob->mode & mode_flag) != 0;
if (!is_mode_set) {
- if (!ED_object_mode_compat_set(C, ob, mode_flag, op->reports)) {
+ if (!ED_object_mode_compat_set(C, ob, static_cast<eObjectMode>(mode_flag), op->reports)) {
return OPERATOR_CANCELLED;
}
}
@@ -1385,3 +1387,4 @@ bool mask_paint_poll(bContext *C)
{
return BKE_paint_select_elem_test(CTX_data_active_object(C));
}
+}