Sean Kim Sean-Kim
  • Joined on 2023-12-14
Sean Kim pushed to mask-cleanup at Sean-Kim/blender 2024-05-17 00:04:39 +02:00
8c77608aeb Cleanup: Shorten & cleanup names in paint_mask.cc
Sean Kim created branch mask-cleanup in Sean-Kim/blender 2024-05-17 00:04:39 +02:00
Sean Kim commented on pull request blender/blender#121895 2024-05-16 23:29:11 +02:00
Cleanup: Remove unncessary prefixes in sculpt_face_set.cc

I'd like to remove face_set_ too, but I think sculpt_face_set_edit -> edit_init here and sculpt_face_set_init_exec

Sean Kim created pull request blender/blender#121895 2024-05-16 23:24:14 +02:00
Cleanup: Remove unncessary prefixes in sculpt_face_set.cc
Sean Kim pushed to face-set-cleanup at Sean-Kim/blender 2024-05-16 23:17:52 +02:00
0223556d3f Cleanup: Remove unncessary prefixes in sculpt_face_set.cc
94b1d21e9e Fix: Use correct datatype for the USD uvmap varname
22ca19dcb2 Cleanup: Add enum for referring to VSE strip handles.
d42e507c14 UI: Fix AutoKeying Text
7017091272 Fix #120761: Handle vert to face flushing in vert_hide_update
Compare 10 commits »
Sean Kim created branch face-set-cleanup in Sean-Kim/blender 2024-05-16 23:17:52 +02:00
Sean Kim commented on pull request blender/blender#121835 2024-05-16 21:18:10 +02:00
Sculpt: Start data-oriented refactor for draw brush

Some further thoughts after the last round of review.

Sean Kim commented on pull request blender/blender#121835 2024-05-16 21:18:09 +02:00
Sculpt: Start data-oriented refactor for draw brush

Minor nit - the comment below makes me think that we should compare distances[i]to FLT_MAX instead

Sean Kim commented on pull request blender/blender#121835 2024-05-16 21:18:08 +02:00
Sculpt: Start data-oriented refactor for draw brush

Is adding a clamp to [0.0, 1.0] here worthwhile?

Sean Kim commented on pull request blender/blender#121835 2024-05-16 21:18:07 +02:00
Sculpt: Start data-oriented refactor for draw brush

Something that I thought of based on your comment about the initialize vs modify comment on these spans - what do you think about moving the initialization of the r_factors Vector here and the r_distances Vector later to somewhere outside of these functions?

Sean Kim commented on pull request blender/blender#121835 2024-05-16 20:59:22 +02:00
Sculpt: Start data-oriented refactor for draw brush

Thanks for the review!

For the r_ prefixes, I don't actually think they apply here. I've always viewed those as a way to express that the values were initialized or otherwise…

Sean Kim commented on pull request blender/blender#121835 2024-05-16 20:51:27 +02:00
Sculpt: Start data-oriented refactor for draw brush

Just my 2 cents - I think them being redundant is fine, to me the asserts at this level provide two benefits:

  1. Gives more contextual information on this line with the sizes being unequal than…
Sean Kim pushed to main at blender/blender-developer-docs 2024-05-16 02:05:18 +02:00
649c6777e9 Update docs/release_notes/4.2/modeling.md
Sean Kim suggested changes for blender/blender#121835 2024-05-16 01:10:59 +02:00
Sculpt: Start data-oriented refactor for draw brush

Just a first pass on the code so far for high level / stylistic stuff, haven't gone super in depth into either of the brush algorithms to compare to the existing code.

Sean Kim commented on pull request blender/blender#121835 2024-05-16 01:10:58 +02:00
Sculpt: Start data-oriented refactor for draw brush

translations -> r_translations here and elsewhere in the file

Sean Kim commented on pull request blender/blender#121835 2024-05-16 01:10:57 +02:00
Sculpt: Start data-oriented refactor for draw brush

positions -> r_positions here and elsewhere in the file

Sean Kim commented on pull request blender/blender#121835 2024-05-16 01:10:56 +02:00
Sculpt: Start data-oriented refactor for draw brush

factors -> r_factors, this and elsewhere in the other methods.

Sean Kim commented on pull request blender/blender#121835 2024-05-16 01:10:55 +02:00
Sculpt: Start data-oriented refactor for draw brush

Minor nit, I'm personally not a fan of utils as a suffix, it tends to lead to the file / namespace / class being a dumping ground of loosely related concepts instead of something more cohesive. That being said I don't think I have a good name for this right now - maybe something to do with factor and displacement, since that seems to be the main type of output of these functions?

Sean Kim commented on pull request blender/blender#121835 2024-05-16 01:10:54 +02:00
Sculpt: Start data-oriented refactor for draw brush

Since factors comes up a fair bit in this file, I think it's worth defining what it is somewhere in the main header.