Extensible Architecture Refactoring #75724

Open
opened 2020-04-14 13:45:34 +02:00 by Brecht Van Lommel · 12 comments

The goal of these tasks is to make core Blender data structures more extensible and object-oriented.

See the proposal in the developer wiki for details.

Datablocks
Extend IDTypeInfo usage and functionality to abstract ID handling in more areas.

.blend I/O

  • Decentralize .blend file I/O code, with a well documented API (#76372).
  • Automate lib linking and expand using lib query?

RNA

  • Add mechanism to register RNA at runtime
  • Use it for important case including:
    • Nodes
      ...
  • Use for all data structures (long term)

DNA
We still need to work out design for how to register DNA at runtime, this is more of a long term goal.

UI

  • Modifiers, shader effects move from Python to callback on modifier typeinfo (modifier-panels-ui branch)
  • Nodes UI move from drawnode.c to callback on node typeinfo
    • Geometry / Function nodes
    • Shader nodes
    • Compositor nodes

Dependency Graph
We still need to work out design for how to decentralize depsgraph building, this is more of a long term goal.

The goal of these tasks is to make core Blender data structures more extensible and object-oriented. See the [proposal in the developer wiki ](https://wiki.blender.org/wiki/Source/Architecture/Extensibility) for details. **Datablocks** Extend `IDTypeInfo` usage and functionality to abstract ID handling in more areas. - [x] `lib_query.c` for relations to other datablocks (#74960) - [x] `BKE_bpath` module ([D13381: Refactor BKE_bpath module.](https://archive.blender.org/developer/D13381), e5e8db73df). - [ ] Find other cases where hardcoded ID type tests are spread throughout the code **.blend I/O** - [x] Decentralize .blend file I/O code, with a well documented API (#76372). - [x] Automate lib linking and expand using lib query? **RNA** - [ ] Add mechanism to register RNA at runtime - [ ] Use it for important case including: - [ ] Nodes [ ] ... - [ ] Use for all data structures (long term) **DNA** We still need to work out design for how to register DNA at runtime, this is more of a long term goal. **UI** - [x] Modifiers, shader effects move from Python to callback on modifier typeinfo (`modifier-panels-ui` branch) - [x] Nodes UI move from `drawnode.c` to callback on node typeinfo - [x] Geometry / Function nodes - [x] Shader nodes - [x] Compositor nodes **Dependency Graph** We still need to work out design for how to decentralize depsgraph building, this is more of a long term goal.
Author
Owner

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

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

Added subscriber: @brecht

Added subscriber: @brecht
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke

Added subscriber: @mont29

Added subscriber: @mont29

Added subscriber: @Pipeliner

Added subscriber: @Pipeliner
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Contributor

Added subscriber: @KenzieMac130

Added subscriber: @KenzieMac130

This issue was referenced by 65a6caafce

This issue was referenced by 65a6caafce9f1cde7e128786daa90342c192900c

This issue was referenced by cfa48c84d0

This issue was referenced by cfa48c84d06ca8197f86b6d3ceef8a2c7c311a82

Added subscriber: @Garek

Added subscriber: @Garek
Philipp Oeser removed the
Interest
Core
label 2023-02-09 14:43: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
10 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#75724
No description provided.