Sean Kim Sean-Kim
  • Joined on 2023-12-14
Sean Kim commented on pull request blender/blender#127109 2024-09-04 01:47:43 +02:00
Fix #127077: Edit voxel size op unpredictable with large/small meshes

Was this 0.25f value just determined experimentally?

Sean Kim commented on pull request blender/blender#127109 2024-09-04 01:47:42 +02:00
Fix #127077: Edit voxel size op unpredictable with large/small meshes

As is this comment doesn't seem particularly helpful; I think if any part warrants a comment it'd be stating that we cap the min size based on the point where we cant visually display any more info.

Sean Kim approved blender/blender#127116 2024-09-03 22:10:54 +02:00
Refactor: Sculpt: Make sculpt undo node definition private

Small nit, otherwise looks good - I think the lookup naming is fine, I don't really have any better suggestions than that, fetch seems about as appropriate, really anything that implies that it isnt a simple attribute accessor.

Sean Kim commented on pull request blender/blender#127116 2024-09-03 22:10:52 +02:00
Refactor: Sculpt: Make sculpt undo node definition private

This float3* usage seems a bit odd - I think using a separate index here is probably better than the pointer math on line 2468

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:20 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

Haven't yet gone through and done any sort of testing for this patch, just an initial pass over from the code side of things

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:19 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

I find these flags to be a bit confusing, and this is likely outside of the scope of this PR, but why does Rebuild not imply Update as well?

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:18 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

Unrelated?

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:17 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

nit: the != 0 seems unnecessary

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:16 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

Same as above

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:14 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

Since display_level is now a static 0, I think this can be simplified to

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:13 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

nit: I think use_ instead of do_ reads better here as a boolean flag.

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:12 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

More for my own knowledge than anything about this PR, but is there something that describes the sharp_face attribute and why / how it's used?

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:11 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

nit: "whether to used" -> "whether to use"

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:10 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

I know you mentioned performance on a large mesh in the main PR text, but it might be interesting to see multires performance specifically with this change.

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:08 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

Why do we need the const_cast here? Shouldn't *pbvh as the first parameter just work?

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:08 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

Would it be better to only calculate visible_nodes when update_only_visible is true (i.e. do this as an if statement instead of a ternary? Not sure about the relative costs here and if we actually update the entire mesh that often.

Sean Kim commented on pull request blender/blender#127002 2024-09-03 17:07:06 +02:00
Sculpt: Restructure PBVH drawing to avoid overhead

nit: Can be moved above if (scd->use_wire)

Sean Kim commented on pull request blender/blender#126953 2024-09-03 06:26:01 +02:00
Fix #126914: Sculpt crash after unsubdividing has no effect

@ideasman42 AFAIK, 4.2 shouldn't have a crash here since it was caused by a change I made in 4.3, if you mean the change to always rebuild the PBVH at the beginning of the cursor, it's possible,…

Sean Kim pushed to main at Sean-Kim/.profile 2024-09-02 02:31:32 +02:00
058bba87cd Update reports/2024.md
Sean Kim pushed to remove-stroke-flags at Sean-Kim/blender 2024-09-01 23:33:23 +02:00
9eedcfa243 Cleanup: Various sculpt.cc enum changes and removal