Fix T43634: Selecting 'Drop Color' from spacebar menu causes instant close

This is an internal operator, should not be invoked manually.
This commit is contained in:
Sergey Sharybin 2015-02-24 14:38:08 +05:00
parent 625101da99
commit 77faefb453
Notes: blender-bot 2023-02-14 09:29:44 +01:00
Referenced by issue #43634, Selecting 'Drop Color' from spacebar menu causes instant close
1 changed files with 1 additions and 0 deletions

View File

@ -921,6 +921,7 @@ static void UI_OT_drop_color(wmOperatorType *ot)
ot->description = "Drop colors to buttons";
ot->invoke = drop_color_invoke;
ot->flag = OPTYPE_INTERNAL;
RNA_def_float_color(ot->srna, "color", 3, NULL, 0.0, FLT_MAX, "Color", "Source color", 0.0, 1.0);
RNA_def_boolean(ot->srna, "gamma", 0, "Gamma Corrected", "The source color is gamma corrected ");