diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-31 22:33:31 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-31 22:33:31 +0400 |
commit | db79c8b01e67e8707aa3810cb727997c9ea3c250 (patch) | |
tree | 9901a0588df91f92ed4a631a46d81cdcd89ec563 /source/blender/blenkernel/BKE_lattice.h | |
parent | 23db21e2c17052ba756a68eb7450fedacc14c555 (diff) |
Implemented general functions to store view context like viewport width/height
and projection matrix, so operators which depends on such things can easily save
settings in operator properties in invoke and then reuse them in exec callback.
This will fix: #24767: Knife tool last operations panel doesn't cause changes even though F6 pop-up does.
#27129: Problem with knife cuts/midpoint type in quad view
Usage is pretty simple:
- From operator template declaration function call ED_view3d_operator_properties_viewmat()
to register all needed properties in operator.
- From invoke callback call ED_view3d_operator_properties_viewmat_set to
store all needed settings in operator properties().
- To access this settings from exec callback, use function
ED_view3d_operator_properties_viewmat_get().
Additional change:
added function apply_project_float() which does the same as
project_float() but accepts actual values for viewport width/height and
projection matrix.
Diffstat (limited to 'source/blender/blenkernel/BKE_lattice.h')
0 files changed, 0 insertions, 0 deletions