Page MenuHome

Curves: Edit mode selection operators
ClosedPublic

Authored by Falk David (filedescriptor) on Thu, Jan 19, 5:51 PM.

Details

Summary

This is based on D16835 with a few improvements:

  • The core part of the selection functions are separated out into curves_selection.cc. This is done so that other objects that use CurvesGeometry can also make use of the selection code.
  • The selection functions either use an existing .selection attribute, or creates a new boolean .selection attribute.

Note:

  • For now, the select_grow operator is not supported in edit mode.
  • Patch should be tested with D16979 applied

Diff Detail

Repository
rB Blender

Event Timeline

Falk David (filedescriptor) requested review of this revision.Thu, Jan 19, 5:51 PM
Falk David (filedescriptor) created this revision.
  • Remove select_grow shortcut in edit mode
Hans Goudey (HooglyBoogly) added inline comments.
source/blender/editors/curves/intern/curves_ops.cc
10–12

Not sure all these new includes are needed

1088

Guessing this is copied from somewhere, but comment formatting still :)

source/blender/editors/sculpt_paint/curves_sculpt_ops.cc
802

Not sure I agree with this rename, the operator is part of the "sculpt curves" area, like others, make sense to keep that name prefix IMO. Same with select_random

This revision is now accepted and ready to land.Thu, Jan 19, 6:13 PM
source/blender/editors/sculpt_paint/curves_sculpt_ops.cc
802

Ah yes, I wanted to ask you about this. The issue is that in python this would also appear as curves.select_random/curves.select_grow. So I added the sculpt part in the name of the actual operator. I'm open to another, better, solution of course!

source/blender/editors/sculpt_paint/curves_sculpt_ops.cc
802

Hmm, why is that? In current master I see this:

>>> bpy.ops.sculpt_curves.
                          brush_stroke(
                          min_distance_edit(
                          select_end(
                          select_grow(
                          select_random(
>>> bpy.ops.curves
<module 'bpy.ops.curves'>
source/blender/editors/sculpt_paint/curves_sculpt_ops.cc
802

You're absolutely right, my bad. Reverting...

  • Revert name changes to sculpt selection operators
Hans Goudey (HooglyBoogly) added inline comments.
release/scripts/modules/rna_manual_reference.py
1585 ↗(On Diff #59656)

The grow name should remain unchanged too, right?

Anyway, this file is autogenerated and shouldn't be adjusted here

  • Merge branch 'master'
  • Revert changes to rna_manual_reference.py
  • Fix python menu and shortcut
This revision was automatically updated to reflect the committed changes.