Commit 2a916b24 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.

(cherry picked from commit 1b858eb4)
parent 08d64c6e
......@@ -480,11 +480,6 @@ tool_options_manager_tool_changed (GimpContext *user_context,
if (user_context->gimp->busy)
/* 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 &
if (GIMP_IS_PAINT_OPTIONS (active->tool_options))
tool_options_manager_copy_paint_props (GIMP_PAINT_OPTIONS (active->tool_options),
active->context_props &
/* then, undefine these properties so the tool syncs with the
* user context automatically
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment