fix for minor regression in own recent edits: sample line was drawing in newly created curve nodes (Hue correct).

This commit is contained in:
Campbell Barton
2012-08-08 08:41:10 +00:00
parent 206b7a6d1b
commit 098cbdac62

View File

@@ -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) {