Socket.enabled does not call update methods #89109
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#89109
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-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.09
Blender Version
Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash:
84da05a8b8
Short description of error
Socket.enabled = False
make the socket to be sort of hidden with connected link. I assume that the logic here is close tolink.is_muted = True
. But unlike changes ofis_muted
attribute changes ofenabled
attribute does no trigger calling update method of a tree. And it does not change theis_linked
status of the socket from opposite side.So I think there are two bugs here.
enabled
attribute is changed the update method of a tree should be called. This will indicate that topology of the tree was changed.is_linked
status as False because disabled sockets should not produce or receive any data (according to how I understand the purpose of this functionality).Exact steps for others to reproduce the error
untitled (2).blend
Added subscriber: @randum
Added subscribers: @HooglyBoogly, @JacquesLucke, @lichtwerk
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
I would agree here.
Going briefly over usages of
SOCK_UNAVAIL
this really seems to alter the tree (and just firing theNC_NODE | ND_DISPLAY
notifier is not enough).We could add something like the following to get the tree update to be called:
P2209: #89109 snippet
On the
is_linked
issue, I would tend to agree here as well (just seems to make more sense).Not sure these two would be classified as bugs, maybe @JacquesLucke or @HooglyBoogly can comment?
Added subscriber: @brecht
Modifying
is_linked
would be a Python API breaking change. I don't think it should be changed, the link still exists and is in thentree.links
list. If that link should be used for evaluation or not is another matter.@brecht What about muted links? They also still exist and are in the
tree.links
but sockets connected to such links haveis_linked
status as False.{F10201836, size=full}
Ok, if muting does it already it's fine for it to be affected by this as well.