Page MenuHome

Fix T80625: Trimming tools not working with transformed objects
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Sep 9 2020, 6:21 PM.

Details

Summary

The code to handle object transforms was wrong. Now the trimming mesh
and depts is calculated in world space, using the real view origin and
normal and then stored in object space in the mesh and in the original
coordinates array. As now both meshes for the boolean operation are in
the same object space, the space conversion code can also be removed
from the boolean function.

Diff Detail

Repository
rB Blender

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Sep 9 2020, 6:21 PM
Pablo Dobarro (pablodp606) created this revision.
source/blender/editors/sculpt_paint/paint_mask.c
286–287

I don't know what that mens or how this helps understanding what world_space_view_origin and world_space_view_normal are for.

950–956

and then converted? Otherwise I don't really follow.

Pablo Dobarro (pablodp606) marked 2 inline comments as done.
  • Update comments
source/blender/editors/sculpt_paint/paint_mask.c
289

so there is not a true version of them

so these (variables?) are not a true version of them ?
so there is no true version of them ?

What is the true version anyway?

source/blender/editors/sculpt_paint/paint_mask.c
289

This is how variables are named all over the sculpt code. When a variable needs to be modified for symmetry, the original version has the true prefix and never changes and there is another variable with the same name without the prefix that changes per symmetry pass.

source/blender/editors/sculpt_paint/paint_mask.c
289

Ok, this is fine.
But the sentence still needs to be adjusted to be more proper English I think.

Pablo Dobarro (pablodp606) marked an inline comment as done.
  • update comments
Sergey Sharybin (sergey) requested changes to this revision.Sep 30 2020, 11:43 AM
Sergey Sharybin (sergey) added inline comments.
source/blender/editors/sculpt_paint/paint_mask.c
289
This revision now requires changes to proceed.Sep 30 2020, 11:43 AM
Pablo Dobarro (pablodp606) marked an inline comment as done.
  • Rebase
  • Update comments

@Bastien Montagne (mont29) The code was already reviewed, I just updated the comment in the latest update

@Pablo Dobarro (pablodp606) Unless getting this in master is really urgent, I would rather let @Sergey Sharybin (sergey) finish the review? More efficient this way imho (and less risk of missing something in the review process).

Not very urgent right now as the tools is in experimental because of the missing icons, but it would be nice to have this committed before enabling it by default as it is a very obvious bug and it is going to produce a lot of reports

This revision is now accepted and ready to land.Oct 15 2020, 4:25 PM