Page MenuHome

UI: Grease Pencil Modifier Drag and Drop, Layout Changes
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Jun 10 2020, 12:20 AM.

Details

Summary

This patch implements the list panel system D7490 for grease pencil modifiers. It also moves their drawing to a callback in GpencilModifierTypeInfo in line with the extensible architecture refactoring goal T75724.

I also added the "set_error" function for grease pencil modifiers, which hadn't been added from mesh modifiers yet.

The implementation is exactly the same as for the modifier patch.

OldNew

Diff Detail

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Jun 10 2020, 12:20 AM
Hans Goudey (HooglyBoogly) created this revision.
Hans Goudey (HooglyBoogly) planned changes to this revision.Jun 10 2020, 12:26 AM

There are actually a few changes from the modifier patch I still have to port over

  • Fix error in patch creation
  • Add menu for consistency with modidifers

Any feedback about the menu can be applied to both grease pencil modifiers and mesh
modifiers together, but for now we can keep them consistent.

For some reason arc included D7499

Hans Goudey (HooglyBoogly) edited the summary of this revision. (Show Details)
Hans Goudey (HooglyBoogly) planned changes to this revision.Jun 10 2020, 1:05 AM

Use pinned object

  • Merge master
  • Changes from constraints patch
This revision is now accepted and ready to land.Jun 15 2020, 4:31 PM
  • Expand array relative offset subpanel by default
  • Fix build error

I have tested and it looks good to me.

Matias Mendiola (mendio) requested changes to this revision.Jun 15 2020, 6:00 PM

All seems Ok, only the Build modifier is outdated, there is a new feature added: https://developer.blender.org/rBa1593fa05baf

This revision now requires changes to proceed.Jun 15 2020, 6:00 PM

All seems Ok, only the Build modifier is outdated, there is a new feature added: https://developer.blender.org/rBa1593fa05baf

Oops! Good catch, I'll include that now.

All seems Ok, only the Build modifier is outdated, there is a new feature added: https://developer.blender.org/rBa1593fa05baf

Actually I did add that, it's just labeled "Use Factor," which I thought was a better description for the property, since the entire Build modifier "restricts visible points" already. "Factor" at least implies that it's a more hardcoded value

This revision is now accepted and ready to land.Jun 15 2020, 8:14 PM
  • Improvements to panel header


Didn't find any obvious issue on a quick glance over the changes.
Again, didn't review the layout changes in detail and I can't speak for the design side of things.

Besides the two mentioned point, looks fine. (Also the constraint changes are in here too, I assume they are not part of the proposed changes :) )

source/blender/blenkernel/intern/gpencil_modifier.c
58

Should be "bke.gpencil_modifier" I guess.

source/blender/editors/object/object_gpencil_modifier.c
671

Would use the same description as in the constraint patch.