Page MenuHome

Fix T71405: Trying to Ctrl-C on many buttons crashes Blender
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Nov 7 2019, 5:55 PM.

Details

Summary

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 (havent checked code, but result in the clipboard was
just not changed hitting Ctrl+C on these buttons), this is what happens
with this patch as well.

Diff Detail

Repository
rB Blender
Branch
T71405 (branched from master)
Build Status
Buildable 5609
Build 5609: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 7 2019, 11:29 PM

why this is not the same shortcut to copy an operator button or a property button? will be logical to have only one and which is the operator to copy operators button. I see it nowhere in shortcuts