Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-06-11 08:44:08 +0300
committerJoshua Leung <aligorith@gmail.com>2018-06-11 08:44:08 +0300
commit9ab26bec27607fc03600bbbf2cea733ab9cce1cc (patch)
treea4c051faa55f4980a071835815b6f0b1081db302 /source/blender/editors/space_graph
parent4605e57b0f60fef282afeae3756211fe6ac1c572 (diff)
Driver Workflow (T55145): Tweak to default expression used for new drivers created from UI
Previously, newly created drivers were set to "Scripted Expression" mode and had their 'expression' field set to the pre-driver value of the property, so that adding a driver didn't cause the property to immediately lose its old value (and potentially causing havok in the scene). However, this had the unintended consequence of making the driver setup workflow more cumbersome, as you first had to replace that value with the name of the driver variable before your driver would work. This commit works around this issue by trying to combine the best of both worlds (quite literally): Now, the driver expression for drivers created using Ctrl-D will be "var + <old value>". Thus, in the simplest case, the driver will do something as soon as you fill out the driver variable settings (e.g. just filling out the Target Object field will do it), meaning you get your drivers working faster. Of course, it may now be necessary to edit out the old-value, and/or it might be a bit more confusing what/why it's there for newbies. However, the improved ease of setup, and/or a more tangible example of how an expression may be constructed outweigh the downsides IMO.
Diffstat (limited to 'source/blender/editors/space_graph')
0 files changed, 0 insertions, 0 deletions