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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-08 12:41:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-08 12:41:10 +0400
commit098cbdac62c007c708a21ffa73204abfdca00853 (patch)
treed6b7cd8ee459dd55fa6de6af97ad4428f62f80ed /source/blender/editors/space_node/drawnode.c
parent206b7a6d1b378ff97e86e9e800c2a71f69b22856 (diff)
fix for minor regression in own recent edits: sample line was drawing in newly created curve nodes (Hue correct).
Diffstat (limited to 'source/blender/editors/space_node/drawnode.c')
-rw-r--r--source/blender/editors/space_node/drawnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index d201a05c378..4e9e0c92bd9 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -338,8 +338,8 @@ static void node_buts_curvevec(uiLayout *layout, bContext *UNUSED(C), PointerRNA
uiTemplateCurveMapping(layout, ptr, "mapping", 'v', 0, 0);
}
-static float _sample_col[4]; /* bad bad, 2.5 will do better?... no it won't... */
#define SAMPLE_FLT_ISNONE FLT_MAX
+static float _sample_col[4] = {SAMPLE_FLT_ISNONE}; /* bad bad, 2.5 will do better?... no it won't... */
void ED_node_sample_set(const float col[4])
{
if (col) {