This adds basic support for the transform operators for curves.
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
| source/blender/editors/transform/transform_convert_curves.cc | ||
|---|---|---|
| 25 | ||
| 30 | The indices might be empty if everything is selected, so two separate arrays will be necessary-- one of index masks and one of the vectors | |
| 39–47 | This is already a utility-- curves::retrieve_selected_points | |
| 71–83 | Might as well parallelize this | |
| source/blender/editors/transform/transform_convert_curves.cc | ||
|---|---|---|
| 39–47 | I saw that, but I couldn't include things from editor in this file. Maybe there is a way? | |
| source/blender/editors/transform/transform_convert_curves.cc | ||
|---|---|---|
| 39–47 | Hmm, including ED_curves.h worked for me, and should be covered by the ../include item in cmake. Maybe there's something else going on though. | |
| source/blender/editors/transform/transform_convert_curves.cc | ||
|---|---|---|
| 39–47 | Changing the namespace like you did made it work! | |
- Merge branch 'master' into curves-transform
- Cleanup + support for no selection attribute case
| source/blender/editors/transform/transform_convert_curves.cc | ||
|---|---|---|
| 67–68 | This is still very ugly, but the transform code needs a raw pointer to work, so not sure what else to do here. | |
This works well and it's relatively fast considering how early it is!
Maybe adding a basic keymap and active tools is the next step? Or some more selection operators I guess.
| release/scripts/startup/bl_ui/space_view3d.py | ||
|---|---|---|
| 5338–5342 | ||
| source/blender/editors/curves/intern/curves_selection.cc | ||
| 58–59 | I strongly suggest setting up format on save for your editor, it'll save a lot of time! | |
| source/blender/editors/transform/transform_convert_curves.cc | ||
| 14 | This one is redundant with BKE_curves.hh | |
| 33 | What about selection_per_object? The index_mask part is included in the type I think | |
| 90–91 | Might as well put this here now. It won't make Bezier's work fully, but it will help a bit. | |
| 103 | Missing newline | |