Commit 1b858eb4 authored by Michael Natterer's avatar Michael Natterer 😴

app: more stuff in gimp-tool-options-manager.c

tool_options_manager_tool_changed(): also copy the non-global paint
options of the new tool to the global paint options, so they get used
when "global_foo" is enabled.
parent 54257da7
......@@ -480,11 +480,6 @@ tool_options_manager_tool_changed (GimpContext *user_context,
if (user_context->gimp->busy)
return;
/* note that in this function we only deal with non-global
* properties, so we never have to copy from or to the global paint
* options
*/
if (manager->active_tool)
{
GimpToolInfo *active = manager->active_tool;
......@@ -513,6 +508,12 @@ tool_options_manager_tool_changed (GimpContext *user_context,
active->context_props &
~manager->global_props);
if (GIMP_IS_PAINT_OPTIONS (active->tool_options))
tool_options_manager_copy_paint_props (GIMP_PAINT_OPTIONS (active->tool_options),
manager->global_paint_options,
active->context_props &
~manager->global_props);
/* then, undefine these properties so the tool syncs with the
* user context automatically
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment