fix for minor regression in own recent edits: sample line was drawing in newly created curve nodes (Hue correct).
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user