Blender Git Commit Log

Git Commits -> Revision 3b66d2e

Revision 3b66d2e by Philipp Oeser (master)
November 8, 2019, 13:34 (GMT)
Fix T71405: Trying to Ctrl-C on many buttons crashes Blender

Usually Ctrl+C copies the operator name to the clipboard
["bpy.ops.material.new()", "bpy.ops.object.material_slot_remove()"]
Crash happens for all buttons of UI_BTYPE_BUT without associated
operator [some are defined with callbacks only, often these are created
with e.g uiDefIconBut (instead of e.g. uiDefIconButO)]

Other examples that crash with Ctrl+C:
- animation decorators next to animatable properties
- button to show a modifier texture in the texture tab
- ...

2.79 survived here (result in the clipboard was just not changed hitting
Ctrl+C on these buttons), this is what happens with this patch as well.

Maniphest Tasks: T71405

Differential Revision: https://developer.blender.org/D6208

Commit Details:

Full Hash: 3b66d2ed21a35036f8221d831f96556f85261db9
Parent Commit: e8cd226
Lines Changed: +3, -0

1 Modified Path:

/source/blender/editors/interface/interface_handlers.c (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021