Laurynas Duburas laurynas
  • Joined on 2021-06-10
194fe3e21e unused variable
59ffe11981 VArray to Span
Laurynas Duburas commented on pull request blender/blender#128638 2024-10-17 16:29:06 +02:00
Curves: Convert types when transforming

@JacquesLucke I've reorganized code, it is still in IndexMasks. BEZIER_HANDLE_AUTO handles are affected by selection of both left and right sides and it leads to the choice between…

71abbba19f readability
Laurynas Duburas commented on pull request blender/blender#128638 2024-10-15 23:11:15 +02:00
Curves: Convert types when transforming

@JacquesLucke I remembered, main argument to use masks was contains. It is needed if to loop over points. I'll try to simplify things by using less masks and pushing logic into `IndexMask::from…

Laurynas Duburas commented on pull request blender/blender#128638 2024-10-15 12:53:59 +02:00
Curves: Convert types when transforming

While it's nice to use IndexMask where possible, it does feel like this adds lots of unnecessary complexity here.. It seems like just iterating over the bezier curves and updating them in a…

Laurynas Duburas commented on pull request blender/blender#128638 2024-10-14 14:55:34 +02:00
Curves: Convert types when transforming

Haven't looked at the code in too much detail yet. It seems the behavior is still different compared to legacy curves. When I start with auto handles, I can grab them freely on legacy curves,…

06f5aed752 legacy logic for auto
6039f390a6 unused line
Compare 2 commits »
Laurynas Duburas commented on pull request blender/blender#128638 2024-10-11 12:46:41 +02:00
Curves: Convert types when transforming

It does and it works after small fix. But call like handle_types_left_for_write creates new attribute in curves and that is unnecessary side effect. I refuse to check or believe that this…

3c59469f94 enhancement for get_curves_selection_attribute_names
Laurynas Duburas commented on pull request blender/blender#128726 2024-10-11 11:19:11 +02:00
Curves: Align handles in transform operator

I've refactored the code.

// Could even be part of the transform context...

Good point. I'll move them when #128638 is merged to avoid conflicts.

Laurynas Duburas pushed to curves-align-handles at laurynas/blender 2024-10-11 11:09:35 +02:00
8a82ba862d refactoring
Laurynas Duburas commented on pull request blender/blender#128726 2024-10-11 09:05:47 +02:00
Curves: Align handles in transform operator

That is relieving, I had a feeling I understand less and less :)

Laurynas Duburas commented on pull request blender/blender#128726 2024-10-10 23:06:28 +02:00
Curves: Align handles in transform operator

The logic in old curves is different. It is described in PR. If I imagine right, this asimetric approach would allow to move two handles and leave knot in place, making a corner.

Regarding…

Laurynas Duburas commented on pull request blender/blender#128726 2024-10-10 22:17:24 +02:00
Curves: Align handles in transform operator

I jumped rewriting and it appeared that TransCustomData holds only selected points. Adding them would complicate things too much. Again why it will be better to make a copy and then call…

Laurynas Duburas pushed to curves-align-handles at laurynas/blender 2024-10-10 22:01:05 +02:00
9233313b91 const back
Laurynas Duburas commented on pull request blender/blender#128726 2024-10-10 20:51:17 +02:00
Curves: Align handles in transform operator

& is severe bug, but with const another story. Some say that it is redundant, but others use that style: https://projects.blender.org/blender/blender/src/commit/de5ac7395e3ae4e5e5a698996aff6e

Laurynas Duburas pushed to curves-align-handles at laurynas/blender 2024-10-10 20:50:46 +02:00
047fd248ad IndexMask as reference
Laurynas Duburas pushed to curves-align-handles at laurynas/blender 2024-10-10 20:35:44 +02:00
e5d06b50e7 align_handles -> calculate_aligned_handles
2958e144f9 small fixes
Compare 2 commits »
Laurynas Duburas commented on pull request blender/blender#128726 2024-10-10 20:22:41 +02:00
Curves: Align handles in transform operator

It seems that most reasonable way to do alignment in TransCustomData before calls to copy_positions_from_curves_transform_custom_data.