diff options
author | Matt Ebb <matt@mke3.net> | 2010-04-22 05:55:10 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-04-22 05:55:10 +0400 |
commit | 5c948964901435ee22596dc6180284605ab3b52d (patch) | |
tree | 317fc02a6cf0784bc013720db425f7a5e0fa4a78 /source/blender/editors/space_graph/space_graph.c | |
parent | 27fa4827147f71733784a49e45dfffbb08d8342d (diff) |
Fix [#22078] Cannot apply modifier in python (context error)
Previously all modifier operators relied on the buttons layout data context pointer to
decide which modifier to work on. This meant that these operators would only work
from from the properties panel, and not from scripting/macros or for operator redo.
This commit makes all modifier operators take the modifier name as an operator
property, so the operators can be re-done or executed outside of the modifier panel.
When invoking the operators from the modifier panel, they automatically fill in the
operator property from context.
This isn't a perfect API design, but it does bring these operators in line with the design
of being able to access all UI functionality via other means like scripts.
Diffstat (limited to 'source/blender/editors/space_graph/space_graph.c')
0 files changed, 0 insertions, 0 deletions