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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-12-10 11:11:48 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2014-12-10 11:39:24 +0300
commit8555595d172a4051a0be3557bfd009299578d52a (patch)
treee0644ff95de5497e99c3fdffcbddb574d5fc0ce7
parent9783d9297c27ad9203dd9b6ed6e21421e899dc2f (diff)
Fixes for compilation with msvc
MSVC doesn't like caling macro argument f when using float values in the macro, it simply replaces the f in the float value with the argument.. CMake compilation still fails because of 77785ce70807, numpy is never getting unpacked.
-rw-r--r--source/blender/blenlib/intern/polyfill2d_beautify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/polyfill2d_beautify.c b/source/blender/blenlib/intern/polyfill2d_beautify.c
index 5bbdbeb8c06..c67fe444640 100644
--- a/source/blender/blenlib/intern/polyfill2d_beautify.c
+++ b/source/blender/blenlib/intern/polyfill2d_beautify.c
@@ -178,7 +178,7 @@ static float quad_v2_rotate_beauty_calc(
float len_12, len_23, len_34, len_41, len_24, len_13;
-#define AREA_FROM_CROSS(f) (fabsf(f) / 2.0f)
+#define AREA_FROM_CROSS(val) (fabsf(val) / 2.0f)
/* edges around the quad */
len_12 = len_v2v2(v1, v2);