Missing view layer updates handling collections in python #101272

Closed
opened 2022-09-22 14:25:20 +02:00 by paul geraskin · 10 comments
Member

System Information
Operating system: Windows 11
Graphics card: NVidia

Blender Version
Broken: Blender 3.4.0 Alpha
Worked: Blender 2.93-3.2

Caused by 68589a31eb

Short description of error
The code in the Blend file worked well in Blender 2.93-3.2 but it's broken in Blender 3.4.
There is a fix to update a viewLayer but probably this is a bug?

My Blend file (Tested in Blender 3.4): tmp_1.blend

image.png

Exact steps for others to reproduce the error

  • Open my blend file in Blender 3.4
  • Run Pyhon code.
**System Information** Operating system: Windows 11 Graphics card: NVidia **Blender Version** Broken: Blender 3.4.0 Alpha Worked: Blender 2.93-3.2 Caused by 68589a31eb **Short description of error** The code in the Blend file worked well in Blender 2.93-3.2 but it's broken in Blender 3.4. There is a fix to update a viewLayer but probably this is a bug? My Blend file (Tested in Blender 3.4): [tmp_1.blend](https://archive.blender.org/developer/F13553804/tmp_1.blend) ![image.png](https://archive.blender.org/developer/F13553798/image.png) **Exact steps for others to reproduce the error** - Open my blend file in Blender 3.4 - Run Pyhon code.
Author
Member

Added subscriber: @PaulGeraskin

Added subscriber: @PaulGeraskin

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

Probably caused by 68589a31eb

To fix it, maybe we could add a BKE_view_layer_synced_ensure as done in e00f76c6a8

Although a regression, I'm not sure it has high priority. The workaround seems valid.

Probably caused by 68589a31eb To fix it, maybe we could add a `BKE_view_layer_synced_ensure` as done in e00f76c6a8 Although a regression, I'm not sure it has high priority. The workaround seems valid.
Member

Added subscribers: @monique, @mont29, @lichtwerk

Added subscribers: @monique, @mont29, @lichtwerk
Member
CC @monique CC @mont29
Philipp Oeser changed title from Python error in Blender 3.4 to Missing view layer updates handling collections in python 2022-09-23 08:19:34 +02:00
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

I pushed a branch temp-#101272 with a potential fix, still WIP.

I pushed a branch `temp-#101272` with a potential fix, still WIP.
Jeroen Bakker self-assigned this 2022-09-25 18:52:34 +02:00

This issue was referenced by 4a60c4746d

This issue was referenced by 4a60c4746ddf3ebd3bc236ddb678aae5a7fdad6a
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Bastien Montagne added this to the Core project 2023-02-09 15:43:11 +01:00
Bastien Montagne removed this from the Core project 2023-02-09 18:20:14 +01:00
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
5 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#101272
No description provided.