Fix: Send more appropriate notification at end of USD/Alembic import #115883

Merged
Jesse Yurkovich merged 2 commits from deadpin/blender:ionotifications into main 2023-12-07 10:46:12 +01:00

A recent change[1] caused the NC_SCENE | ND_FRAME combination to no
longer perform a full Outliner rebuild. However, both Alembic and USD
importers were using this combination. The end result was that the
outliner would not show any of the newly imported objects/collections
until a rebuild was forced some other way (like going into Edit mode on
an object).

Change to use a more appropriate notification that corresponds to the
concept of new IDs being added to the scene instead: NC_ID | NA_ADDED

[1] b549260aa4

A recent change[1] caused the `NC_SCENE | ND_FRAME` combination to no longer perform a full Outliner rebuild. However, both Alembic and USD importers were using this combination. The end result was that the outliner would not show any of the newly imported objects/collections until a rebuild was forced some other way (like going into Edit mode on an object). Change to use a more appropriate notification that corresponds to the concept of new IDs being added to the scene instead: `NC_ID | NA_ADDED` [1] b549260aa4d2bcb026f042942f15f4d7e5f752c1
Jesse Yurkovich added 1 commit 2023-12-07 10:04:30 +01:00
Jesse Yurkovich added 1 commit 2023-12-07 10:18:42 +01:00
Bastien Montagne approved these changes 2023-12-07 10:37:40 +01:00
Bastien Montagne left a comment
Owner

LGTM

LGTM

Don't forget to add a note in the commit message, about removing the WM_main_add_notifier call from starjob callback :)

Don't forget to add a note in the commit message, about removing the `WM_main_add_notifier` call from `starjob` callback :)
Jesse Yurkovich merged commit 2f0633f5fa into main 2023-12-07 10:46:12 +01:00
Jesse Yurkovich deleted branch ionotifications 2023-12-07 10:46:18 +01:00
Sign in to join this conversation.
No reviewers
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
2 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#115883
No description provided.