Blender Git Commit Log

Git Commits -> Revision 47335b4

Revision 47335b4 by Alexander Gavrilov (master)
August 4, 2019, 10:58 (GMT)
Add a new Copy As Driver context menu option for properties.

It is a very common need to create drivers that set the value of
a property to the value of some other property, but it currently
requires multiple actions: Copy Data Path on the input property,
adding a driver to the output property, selecting the input ID
reference, and pasting the path.

This adds a new Copy As Driver context menu option, which creates
a complete driver in the clipboard that reads the current property,
so all that remains is to paste it to the output property. It is
also possible to paste just the new driver variable into an existing
driver to combine multiple inputs.

Reviewers: brecht, billreynish

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

Commit Details:

Full Hash: 47335b4e61db11e1ee2e38f421dc86fa3c3dd375
Parent Commit: a2fe386
Lines Changed: +186, -46

4 Modified Paths:

/source/blender/editors/animation/drivers.c (+94, -42) (Diff)
/source/blender/editors/include/ED_keyframing.h (+8, -0) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+7, -0) (Diff)
/source/blender/editors/interface/interface_ops.c (+77, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021