Page MenuHome

Line Art feature update: Filtering feature lines with face mask
ClosedPublic

Authored by YimingWu (NicksBest) on May 19 2021, 2:18 PM.

Details

Summary

This patch needs D11302 D11291 D11288 in place first!

Does what the title says. You can specify filtering options inside line art modifier, like inverting selection and including face mark region border.

Diff Detail

Repository
rB Blender

Event Timeline

YimingWu (NicksBest) requested review of this revision.May 19 2021, 2:18 PM
YimingWu (NicksBest) created this revision.

Removed unwanted changes

D11307 D11308 D11309 all seem to contain the same changes BKE_gpencil_get_lineart_global_limits for example, I'm guessing this is not intentional?

D11307 D11308 D11309 all seem to contain the same changes BKE_gpencil_get_lineart_global_limits for example, I'm guessing this is not intentional?

Well that's the minor conflict I'm talking about. Just preserve that part and you should be good. The commit history is kinda mixed so this is the most separated way of doing the patches :P

You have to be able to separate out the common code more than this.
These patches seem to contain the object loading changes as well.
So you have not based this on those changes, you have included them.

That these depend on other changes are fine, but only the relevant changes should be included in the patch.

Updated to only diff face mark code

Updated to latest master

I noticed some stuff from the "floating edges" patch in here. But I trust that you properly merge these patches into master, so no need to clean these up in this review.

source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
460

This doesn't seem to display properly when using cache.
IE the setting is not grayed out.

I'm getting a lot of RNA_boolean_get: LineartGpencilModifier.use_cached_result not found errors.

However I think we should discuss a bit more about this subsection in general.
I'll do this in the chat.

479

This doesn't seem to work. When I use the cache option the is not shown

503

Why was this changed?

531

Same as above ^

source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
1427

Hanles -> Handles

YimingWu (NicksBest) marked 5 inline comments as done.

Fixed commented stuff

I still have an issue with the current way the section is laid out.

That this picture for example:

Does this mean that the "Filter Face Mask" option is on, but it is baked or does it mean that the option works but we can't change it while cached is on?

The answer here is that it doesn't work at all. Which I don't feel that the grayed out checkbox conveys.

I still have an issue with the current way the section is laid out.

That this picture for example:

Does this mean that the "Filter Face Mask" option is on, but it is baked or does it mean that the option works but we can't change it while cached is on?

The answer here is that it doesn't work at all. Which I don't feel that the grayed out checkbox conveys.

It is supposed to mean "Face mark filtering is done in the first one and this one is ineffective". How about manually remove that checkbox when cache is on? so it's more like other panels.

I guess you can remove the checkbox when caching is on, yes.

You should also rename the section to "Face Mask Filtering"

And "Filter Face Mask" implies that we are filtering face mask and not filtering USING face masks.

I guess you can remove the checkbox when caching is on, yes.

You should also rename the section to "Face Mask Filtering"

And "Filter Face Mask" implies that we are filtering face mask and not filtering USING face masks.

That makes sense. I'll do it.

It's now looking like this. I think it's more clear now.

source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
426

This now also vanishes when the modifier is baked. It should only vanish it is cached.

source/blender/makesrna/intern/rna_gpencil_modifier.c
2833

grammar:
face marks

Plural.

YimingWu (NicksBest) marked 2 inline comments as done.Jun 25 2021, 7:06 AM
YimingWu (NicksBest) added inline comments.
source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c
426

Oh I see..

YimingWu (NicksBest) marked an inline comment as done.

Updated

This revision is now accepted and ready to land.Jun 25 2021, 12:30 PM