[Bf-blender-cvs] [77faefb] master: Fix T43634: Selecting 'Drop Color' from spacebar menu causes instant close
Sergey Sharybin
noreply at git.blender.org
Tue Feb 24 10:38:55 CET 2015
Commit: 77faefb45358cf19389d5da3d7bb3ef7894af235
Author: Sergey Sharybin
Date: Tue Feb 24 14:38:08 2015 +0500
Branches: master
https://developer.blender.org/rB77faefb45358cf19389d5da3d7bb3ef7894af235
Fix T43634: Selecting 'Drop Color' from spacebar menu causes instant close
This is an internal operator, should not be invoked manually.
===================================================================
M source/blender/editors/interface/interface_ops.c
===================================================================
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c
index 19e3891..41d2a90 100644
--- a/source/blender/editors/interface/interface_ops.c
+++ b/source/blender/editors/interface/interface_ops.c
@@ -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 ");
More information about the Bf-blender-cvs
mailing list