WIP: Brush Assets: Add initial support for the new 'brush asset' usage. #111659
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#111659
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "mont29:tmp-brush-assets"
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?
This commit mainly adds the low-level logic to link and create a runtime
override for brushes.
The biggest changes are in
setup_app_data
(post-loading of .blendfile), to add support to move over some data from old bmain to newly
loaded bmain. The logic is complex, and different depending on whether
it is an undo (aka memfile read) step, or an actual .blend file reading:
not handled. However, since memfile reading code already ported over
linked IDs, these do not need to be swapped.
reused, as long as they do not conflict (name/lib) with brushes from
the new bmain. Their dependencies are also re-used if needed.
Only exception: local assets from old bmain are never re-used.
There is also a new step added to the 'open file' process, which checks
if the to-be-opened file is a library of the currently opened one, and
if so, if there are local tweaked overrides of assets from the new file.
The option to save these tweaks in draft is currently an empty mockup,
but the rest is functional.
Brush now has a new
AssetWeakReference
pointer to keep track of thelast active brush asset, and restore it on fileread in case there is
currently no active brush asset for the given paint/sculpt mode.
Some parts of this commits are mockups/place-holders that are not
expected to be committed as-is, if at all:
brush-asset-project
branch), very much WIP still.panels return false initially (tool has no data-block ref).
Very unclear what's hapening here.
NOTE: This branch is based on the
brush-asset-project
branch.Ref. #101908.
@blender-bot package
Package build started. Download here when ready.
@dfelinto @JulianEisel @JulienKaspar FYI, current status of Brush Asset branch rebased on current main.
51c7e1b06b
to7132788d6a
@blender-bot package
Package build started. Download here when ready.
@blender-bot package
Package build started. Download here when ready.
7132788d6a
toab0cf3e4a3
ab0cf3e4a3
tobd9fcd6d0b
bd9fcd6d0b
to4477485f87
4477485f87
toaedeb2dd3a
aedeb2dd3a
toe3ef163816
e3ef163816
tofe9e7eab13
fe9e7eab13
tob3964b1b0d
b3964b1b0d
to30e81d1100
30e81d1100
toeb505ad1c7
Pull request closed