mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Refactor: Don't reference to a temporary variable in knife tool
Reported by Clang-Tidy as readability-reference-to-constructed-temporary. Pull Request: https://projects.blender.org/blender/blender/pulls/159277
This commit is contained in:
parent
793fd943f3
commit
bd5ef291ba
1 changed files with 2 additions and 2 deletions
|
|
@ -3432,8 +3432,8 @@ static bool knife_snap_angle_screen(const KnifeTool_OpData *kcd,
|
|||
float3 &r_cage,
|
||||
float &r_angle)
|
||||
{
|
||||
const float3 &vec_x = kcd->vc.rv3d->viewinv[0];
|
||||
const float3 &vec_z = kcd->vc.rv3d->viewinv[2];
|
||||
const float3 vec_x = kcd->vc.rv3d->viewinv[0];
|
||||
const float3 vec_z = kcd->vc.rv3d->viewinv[2];
|
||||
return knife_snap_angle_impl(kcd, vec_x, vec_z, ray_orig, ray_dir, r_cage, r_angle);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue