Sean Kim Sean-Kim
  • Joined on 2023-12-14
Sean Kim commented on pull request blender/blender#126382 2024-08-16 01:28:18 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Thanks, I appreciate the links & info!

Sean Kim commented on pull request blender/blender#126382 2024-08-16 00:34:32 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Good point about it being context dependent & not really suited for as generic of a class as Mesh. When you mention zero-cost, what overhead difference is there? I was under the impression that…

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:46 +02:00
Sculpt: Remove duplicate BVH tree positions storage

I don't know if I understand the prior history well enough to evaluate the scope or correctness of the change. The changes make sense in a vacuum though

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:45 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Maybe reference the specific mesh caches that these correspond to? As a larger question, I think we should clearly define what type of data we do and dont want in SculptSession since that was one of the main tasks in the refactor - not saying that there's necessarily a better place for this.

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:44 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Nit: The scoping here seems unnecessary; I think I'd opt to renaming the positions_eval name below or determining if we need to change the signature of this function to a MutableSpan

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:43 +02:00
Sculpt: Remove duplicate BVH tree positions storage

I know this isn't part of this PR, but wow this is a confusing name at first glance.

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:41 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Just a note to verify testing with the duplicate object scenario mentioned in this crash to make sure this change doesn't cause regressions

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:40 +02:00
Sculpt: Remove duplicate BVH tree positions storage

I don't know if I understand the logic behind the if statements here & in the face_normals_cache_eval function

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:39 +02:00
Sculpt: Remove duplicate BVH tree positions storage

I don't see the value in this assert, was this left over from previous testing?

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:38 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Maybe a member function on the Mesh object instead of this floating static? Depends on if you think we'll use this elsewhere.

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:36 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Seems like this comment can be removed at this point.

Sean Kim commented on pull request blender/blender#126382 2024-08-15 23:55:35 +02:00
Sculpt: Remove duplicate BVH tree positions storage

Could we use deform_modifiers_active here? Or alternatively, if deform_modifiers_active is always false if this is empty and true if its populated, maybe lets make a public function so we don't do different kinds of checks everywhere.

Sean Kim pushed to gp-drawing-placement at Sean-Kim/blender 2024-08-15 23:14:58 +02:00
d064f5b591 Merge branch 'main' of projects.blender.org:blender/blender into gp-drawing-placement
f6141b3fa7 Cleanup: Formatting
1602f82f28 Fix: Sculpt: Correct asserts in previous commit
f04fd1fad7 Refactor: Sculpt: Require depsgraph to access mesh positions
220cf67172 Cleanup: Improve object argument name
Compare 61 commits »
Sean Kim deleted branch cleanup-mask-by-color from Sean-Kim/blender 2024-08-15 04:52:33 +02:00
Sean Kim pushed to main at blender/blender 2024-08-15 04:52:31 +02:00
a0e6e16da5 Refactor: Various changes to SCULPT_OT_mask_by_color
Sean Kim merged pull request blender/blender#126258 2024-08-15 04:52:30 +02:00
Refactor: Various changes to SCULPT_OT_mask_by_color
Sean Kim commented on pull request blender/blender#126341 2024-08-15 04:49:16 +02:00
Refactor: Sculpt: Consolidate pbvh clearing actions

I don't mind making the proposed changes, I think it makes the overall desired behavior more clear

Sean Kim deleted branch automask-factor-overload from Sean-Kim/blender 2024-08-15 04:47:52 +02:00
Sean Kim pushed to main at blender/blender 2024-08-15 04:47:49 +02:00
712d322335 Refactor: Sculpt: Add automask factor raw pointer overload