Point light missing draw update after linking object data #84302

Closed
opened 2021-01-01 07:20:16 +01:00 by Vyacheslav Kobozev · 16 comments

System Information
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version:

  • 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: 0f45cab862
  • 2.83
  • 2.82
  • 2.81
    Worked: Never (in previous versions the radius didn't disappear from the viewport drawing, it just displayed the old one)

Short description of error
When I link object data from one point light to another it transfers wrong data (all to zero visually or no change) and updates only when I move point light.

Exact steps for others to reproduce the error

  • Create a point light.
  • Duplicate the point light.
  • Adjust the radius of one point light.
  • Link the Object Data of one point light to the other by selecting both and using {key Ctrl L} > Object Data.

2021-01-01_09-12-40.mp4

PL late.blend

**System Information** Operating system: Windows-7-6.1.7601-SP1 64 Bits Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71 **Blender Version** Broken: version: - 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `0f45cab862` - 2.83 - 2.82 - 2.81 Worked: Never (in previous versions the radius didn't disappear from the viewport drawing, it just displayed the old one) **Short description of error** When I link object data from one point light to another it transfers wrong data (all to zero visually or no change) and updates only when I move point light. **Exact steps for others to reproduce the error** - Create a point light. - Duplicate the point light. - Adjust the radius of one point light. - Link the *Object Data* of one point light to the other by selecting both and using {key Ctrl L} > *Object Data*. [2021-01-01_09-12-40.mp4](https://archive.blender.org/developer/F9545143/2021-01-01_09-12-40.mp4) [PL late.blend](https://archive.blender.org/developer/F9545151/PL_late.blend)

Added subscriber: @Vyach

Added subscriber: @Vyach
Robert Guetzkow changed title from Point light late/wrong uptate after linking object data to Point light missing draw update after linking object data 2021-01-01 10:11:38 +01:00

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

The make_links_data_exec tags the geometry for an update through DEG_id_tag_update(&ob_dst->id, ID_RECALC_GEOMETRY); when selecting Object Data (MAKE_LINKS_OBDATA), which is not enough to update for the cases demonstrated in the video.

The `make_links_data_exec` tags the geometry for an update through `DEG_id_tag_update(&ob_dst->id, ID_RECALC_GEOMETRY);` when selecting Object Data (`MAKE_LINKS_OBDATA`), which is not enough to update for the cases demonstrated in the video.

Adding ID_RECALC_TRANSFORM appears to fix the issue.

Adding `ID_RECALC_TRANSFORM` appears to fix the issue.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Doesn't seem like a UI issue to me. Either depsgraph or #data_assets_i_o I think. Apparently the depsgraph is part of the #nodes_physics module, so assigning that.

Doesn't seem like a UI issue to me. Either depsgraph or #data_assets_i_o I think. Apparently the depsgraph is part of the #nodes_physics module, so assigning that.

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Depsgraph is part of Core nowadays. @rjg if you got anywhere with your proposed fix, please submit as a patch. Letting the core module handle the classification here.

Depsgraph is part of Core nowadays. @rjg if you got anywhere with your proposed fix, please submit as a patch. Letting the core module handle the classification here.

Added subscribers: @Sergey, @dr.sybren, @mont29

Added subscribers: @Sergey, @dr.sybren, @mont29

Guess this is something for @dr.sybren or @Sergey, to me it looks a bit weird to have to add ID_RECALC_TRANSFORM when obdata changes? On the other hand, lights are not exactly geometry...

Guess this is something for @dr.sybren or @Sergey, to me it looks a bit weird to have to add `ID_RECALC_TRANSFORM` when obdata changes? On the other hand, lights are not exactly geometry...

It is one of those cases where we do not have a good existing recalc flag, and ID_RECALC_COPY_ON_WRITE is ok to be used. If the ID_RECALC_COPY_ON_WRITE can indeed be used here to fix the issue, use it instead of ID_RECALC_TRANSFORM.

It is one of those cases where we do not have a good existing recalc flag, and `ID_RECALC_COPY_ON_WRITE` is ok to be used. If the `ID_RECALC_COPY_ON_WRITE` can indeed be used here to fix the issue, use it instead of `ID_RECALC_TRANSFORM`.

@dfelinto I will test this again with the ID_RECALC_COPY_ON_WRITE flag and add a patch if this solves the issue.

@dfelinto I will test this again with the `ID_RECALC_COPY_ON_WRITE` flag and add a patch if this solves the issue.

I've tried to reproduce the issue again, but this appear to be working fine now in the following versions:

  • Current master (a74a267767706f57583ab1b3431f640570801784)
  • Blender 3.1.x
  • Blender 3.0.x

It does not work in:

  • Blender 2.93.9 and earlier

So the actual cause for the missing draw update appears to be fixed since 3.0.0 without changing the flag in make_links_data_exec. I do not know what change this was though, in case we want to backport this to 2.93 LTS.

Is anyone still able to reproduce this in current versions of Blender (excluding 2.93 LTS)?

I've tried to reproduce the issue again, but this appear to be working fine now in the following versions: - Current master (`a74a267767706f57583ab1b3431f640570801784`) - Blender 3.1.x - Blender 3.0.x It does not work in: - Blender 2.93.9 and earlier So the actual cause for the missing draw update appears to be fixed since 3.0.0 without changing the flag in `make_links_data_exec`. I do not know what change this was though, in case we want to backport this to 2.93 LTS. Is anyone still able to reproduce this in current versions of Blender (excluding 2.93 LTS)?

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Dalai Felinto self-assigned this 2022-05-10 15:35:29 +02:00

If it is working in master, let's close. It seems a too small of a bug to be ported to LTS as well.

If it is working in master, let's close. It seems a too small of a bug to be ported to LTS as well.
Sign in to join this conversation.
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
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#84302
No description provided.