Driver on grease pencil modifier does not update for redraw #57483
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
11 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#57483
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?
If add a driver that handle a property in a grease pencil modifier, the grease pencil datablock (GPD) must be tagged as dirty (DEG_id_tag_update(&gpd->id, OB_RECALC_OB | OB_RECALC_DATA)).
The problem is the property change in the modifier, but as the driver did not tagged the datablock as dirty, the drawing cache is not updated and the image in viewport does not change (only change if change the current frame number that force a redraw).
Here is the test file.
TEST_DRIVER_SIMPLE.blend
Added subscriber: @antoniov
#62514 was marked as duplicate of this issue
Added subscribers: @dfelinto, @Sergey
@antoniov : depsgraph is the one responsible for those tags. You need to build a relation between the driver and the grease pencil object.
Later (tomorrow) I can nspect the depsgraph to see what is going on. If you want to try in the meantime, enable the dependency graph addon, and dump the depsgraph as image.
For the records, you will need to install graphviz and gnuplot for that:
https://graphviz.gitlab.io/_pages/Download/windows/graphviz-2.38.msi
https://sourceforge.net/projects/gnuplot/files/gnuplot/
As well as making sure their respective bin directory is in the %PATH%.
I simplified your file a bit:
driver.blend
It produces the following depsgraph:
Added subscriber: @lichtwerk
Hm, was also looking into this, but havent found the issue (yet)
I've verified that a relation
bone --> stroke modifier
gets added in DepsgraphRelationBuilder::build_driver_variablesBut we are missing a
BKE_object_eval_uber_data
on the grasepencil.I've also verified that this is called in DepsgraphNodeBuilder::build_object_data_geometry , so that should make
BKE_object_eval_uber_data()
the exit for greasepencil as well?Guess I have to read some more.
Also noticed that DepsgraphNodeBuilder::build_gpencil() and DepsgraphRelationBuilder::build_gpencil() are apperently unused? (build_animdata() is called from elsewhere anyways...)
Did I say I have to read some more ;)?
@lichtwerk Do you have any update about this?
Added subscriber: @BerbankGreen
Driver evaluation must tag grease pencil datablock for redrawto Driver on grease pencil modifier does not update for redrawAdded subscriber: @joewc
Hello my friends!
Same problem with blender 2.8
System Information
Operating system: Windows 7 sp1
Graphics card: NVIDIA [GeForce GTX 675M] driver: nvidia v: 391.35
Device-1: Intel Core Processor Integrated Graphics driver: i7 3720QM
Device-2: 16gb RAM
Blender crash Version
blender-2.80-cc5bdf029324-win64.zip download 17/03/2019
Short description of error
Drivers link as empty to modifiers (time offset - mode: fixed frame) no realtime keyframe updates.
The old building version works fine: blender-2.80-790cb7799dcf-win64.zip - download 19/02/2019.
Thank you for yours hard work and sorry for my bad english.
@Sergey Can you help us here?
@antoniov, will check next week.
P.S. Probably better to assign to me, so it's not lost in the stream of incoming mail, and can always be accessed from assigned tasks.
Added subscribers: @heini, @AnnaIv, @brecht
Added subscriber: @SamuelTelles
Hi, people.
Having the same problem with the "time offset" modifier, but I can tell you this was working very nicely on "blender-2.80-860a9f979d60-win64". It's pretty useful to develop complex rigs with GP. Attaching my blend file.. just in case.
test driver time offset.blend
Added subscriber: @NoahJamesBradleySmith-2
driver.blend Same problem here. Attached my blend file in case anyone wants a look at it.
@lichtwerk Maybe this bug must be set as High to be fixed before release. What do you think?
@Sergey: do you have time to check this [agree this could be raised to High prio]?
This issue was referenced by
fc8547b889
Changed status from 'Open' to: 'Resolved'
Holy...!! :D