Vertex Weight Proximity not working for Grease Pencil Thickness Modifier #105640
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#105640
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 11
Graphics card: GeForce RTX 3090
Blender Version
Broken: 3.3.4 LTS, 3.5, 3.6
Works: 3.4
Short description of error
Transferring vertex weights by using the vertex weight proximity modifer is not working for Thickness Modifiers in Grease Pencil.
Exact steps for others to reproduce the error
See the attached .blend file.
Vertex Weight proximity not working for Grease Pencil Thickness Modifierto Vertex Weight Proximity not working for Grease Pencil Thickness ModifierThanks for the report. Can confirm this in 3.5/3.6 too.
Did you confirm it as working or broken in 3.5? If it's broken in 3.5 the milestone should be changed to that.
@brecht , 3.4 is good version.
3.3.4, 3.5 and 3.6 are affected by this issue.
I'll bisect this.
I'll change the milestone to 3.5 assuming we may want to fix this for that release still, and then backport the fix to 3.3.
Think this is a consequence by own
6aa29549e8
(see also #103887).Seems the culprit commits mentioned in
6aa29549e8
were also missing the case in_DNA_DEFAULT_LineartGpencilModifierData
(whereLRT_GPENCIL_MATCH_OUTPUT_VGROUP
was still put on.flags
-- instead of.calculation_flags
-- which6aa29549e8
then exposed).Assume we'll have to do some versioning here to correct this properly (otherwise we would have to check against both
modifier_flags
ANDmodifier_calculation_flags
in existing modifiers), will see what I can do...Just talked to @ChengduLittleA in chat, he'll take care
Hi, I checked the problem and I think the issue is indeed with a wrongly assigned_DNA_DEFAULT_LineartGpencilModifierData
. The correct way should beLRT_GPENCIL_MATCH_OUTPUT_VGROUP
being inside.calculation_flags
. Let me check if it's working correctly with the default value changed back.Can't figure out what's going on. From the look of the file, both invert and match flags seems to work from
modifier_flags
, which isn't quite the intention. I need to check what exact is different from both versions@ChengduLittleA : it will work on new modifiers, but wont do the trick for the file reported (for that you need versioning code I think -- or check both flags as mentioned in my previous comment)
OK I know what's happening now.
From what I can see the 3.4 is actually the incorrect one, because the file have neither source nor target vertex group set, and internally the logic is wrong (3.4), where it refers
flag
value instead of thecalculation_flag value
.It is needed to either enter the prefix of the vertex group name in the source, or choose an explicit target, or use "match output". So technically the 3.3lts, 3.5, 3.6 version has the correct behaviour. (Just open the file with 3.5/3.6 and enable "match output" alone would do the trick, and styles are correctly driven by properties as well)
The current logic in the code (not optimum as I'm seeing it today):
I know the logic of this until even now is
... but I'm leaning towards implementing a more flexible weight transferring solution with future node-based line art.
@ChengduLittleA : dont think 3.3lts, 3.5, 3.6 version are actually correct either.
The purpose of DNA defaults was actually to enable
Match Output
by default.This was more or less broken since your own
841df831e8
&3558bb8eae
(since it moved the flags).3.3lts, 3.5, 3.6 version now read the flags from the right place (since my
6aa29549e8
), but the default on new modifiers is still wrong.So I think we should:
_DNA_DEFAULT_LineartGpencilModifierData
(enable LRT_GPENCIL_MATCH_OUTPUT_VGROUP in.calculation_flags
, remove from.flags
)LRT_GPENCIL_MATCH_OUTPUT_VGROUP
(found in.flags
) to.calculation_flags
)This is your own code, no? Why not fix it like I outlined (this will at least keep the functionality intact until node-based lineart will see the light of day sometime in the future?)
Do you want me to cook up a patch?
Note @ChristophWerner :
This fixes the default value assignment but due to the old flag bits are in conflict with used bits in the new flag variables, versioning changes are not included. This means you need to manually turn on the "Match output" option in those files saved with older versions. :)
Ok. Understand. The "Match output" option works in 3.3.4 LTS for now.