Inconsistent behavior with armature deformation of objects disabled by driver #80977
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#80977
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: Linux-5.4.0-47-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.100
system-info.txt
Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-09-18 22:24, hash:
7b9e47a35e
(tested with factory settings)(Current 2.83 LTS is also broken.)
Short description of error
A mesh object deformed by an armature modifier does not appear to be disabled correctly if disabled by a driver, even if the driver is a trivial driver with no dependencies (eg. a scripted expression of "True" or "1" with no variables). While the mesh object will be made invisible in the viewport, Blender seems to calculate the object's deformation anyway when the armature is posed or transformed, resulting in massive viewport performance degradation if the hidden mesh is complex.
This seems like a bug to me, because disabling the object manually works as expected: as soon as the mesh vanishes, I can pose the armature without framerate issues.
Disabling the armature modifier on the complex object does not resolve performance issues (although this appears to be the case regardless of visibility). Deleting the armature modifier does, however. I assume there's something funky with the depsgraph, but I'm not familiar enough to know how to approach this.
(My use case here is being able to hide elements of a linked/proxied character without those elements incurring heavy performance penalties; as of now I'm unable to feasibly use complex characters without having to append them, resulting in massive file bloat. EDIT: I did manage to find a workaround. If processing the modifier stack is unavoidable, then a Mask modifier can be placed at the top of the stack so that the Armature, etc. modifiers have no work to do as an alternative. This does require creation of another vertex group containing all vertices, though, which is a little messy.)
Exact steps for others to reproduce the error
Open attached .blend
Either perform some transformation on the armature object or attempt to transform the bone in pose mode. Notice viewport performance tanks, despite ComplexObject being hidden via driver with constant value 1 (i.e. no obvious dependencies on ANY datablock), seemingly implying deformation is still being computed while the mesh's object is disabled. (Subdiv level on the complex object is tuned for my underpowered computer, so may need more subdivision levels to be apparent on a modern workstation).
{F8900863, size=full}
Delete the driver on ComplexObject's visibility.
{F8900865, size=full}
{F8900867, size=full}
Added subscriber: @jabblerty
Added subscriber: @StephenSwaney
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
There are some
known issues
with modifiers updating even though they are disabled by driver.I don't know if it is related since in this case it is the visibility of the object with a modifier that is disabled.
So I am confirming it as a different bug for now.
Closed as duplicate of #76257
Added subscriber: @dr.sybren
From what I can see, this describes the same issue as #76257 (Disabled objects still get evaluated if there is a driver on their hide_viewport property.).