Campbell Barton
de391cf811
Cleanup: use nullptr instead of zero
2023-08-03 19:17:43 +10:00
Germano Cavalcante
c59ba19c0b
Fix #110722 : Wrong value when starting a transformation
...
Caused by 5ed14e9269 .
That commit accidentally removed the `copy_v2_v2_int(t->mval, mval);`
line which was responsible for initializing the value of `mval`.
2023-08-02 15:51:55 -03:00
Germano Cavalcante
f1d44dd64a
Transform: Refactor: Use float vector type for 'TransInfo::mval'
...
In most cases float access is required for this member.
2023-08-02 15:35:09 -03:00
Germano Cavalcante
897f6523ab
Cleanup: Remove unnecessary parameter in 'transform_fn' callback
...
That `const int[2]` parameter is `t->mval` accessed in a different way
and many times it is not even used.
tmp
2023-08-02 15:04:12 -03:00
Germano Cavalcante
5ed14e9269
Transform: use screen mouse offset position for navigation
...
In the 3D View, after navigating, the initial cursor position was
updated based on the relative position of the cursor in 3D space.
Now the initial relative position is maintained but moved closer to or
further from the 2d center based on zoom.
2023-07-31 11:03:45 -03:00
Campbell Barton
cc892efcd4
Cleanup: use snake case, especially for structs that define callbacks
...
Use snake case for ShaderFxTypeInfo, ModifierTypeInfo,
GpencilModifierTypeInfo & bConstraintTypeInfo.
2023-07-27 12:21:06 +10:00
Campbell Barton
302887c619
Cleanup: use boolean literals in source/
...
Apply clang-tidy modernize-use-bool-literals to source/.
2023-07-22 11:43:01 +10:00
Campbell Barton
81ee130063
Cleanup: use C++ system headers
...
Apply clang-tidy modernize-deprecated-headers to source/
2023-07-22 11:27:25 +10:00
Campbell Barton
32fb40fa76
Cleanup: use function style casts for C++
2023-07-14 12:31:00 +10:00
Jacques Lucke
3a2f5fb9db
Editors: move transform code to C++
...
Also see #103343 .
Co-authored-by: Germano Cavalcante <germano.costa@ig.com.br >
Pull Request: https://projects.blender.org/blender/blender/pulls/110049
2023-07-13 17:59:52 +02:00