WIP Fix #104501: CLear CD_FLAG_NOCOPY flag after use. Handle the case when it goes wrong more elegantly. #104600

Merged
Martijn Versteegh merged 3 commits from Baardaap/blender:crashoninset into main 2023-02-13 20:08:40 +01:00

This fixes a bug where CD_FLAG_NOCOPY was left in the flags after use. Causing some layers to not be copied in undo steps.

The second commit adds a general fix/preparation for when the layers become lazily allocated in BMesh in the future.

This fixes a bug where CD_FLAG_NOCOPY was left in the flags after use. Causing some layers to not be copied in undo steps. The second commit adds a general fix/preparation for when the layers become lazily allocated in BMesh in the future.
Martijn Versteegh requested review from Hans Goudey 2023-02-11 00:30:54 +01:00
Member
@blender-bot
Hans Goudey approved these changes 2023-02-11 00:55:02 +01:00
Hans Goudey left a comment
Member

Looks good, assuming the tests pass on the build I dtarted. (on my phone so I can't run them myself).

The commit title should be more of a summary, to fit into 72 characters and to be more accessible. Maybe something like Fix #104501: Reset temporary BMesh custom data layer flag or something.

Looks good, assuming the tests pass on the build I dtarted. (on my phone so I can't run them myself). The commit title should be more of a summary, to fit into 72 characters and to be more accessible. Maybe something like `Fix #104501: Reset temporary BMesh custom data layer flag` or something.
@ -1046,1 +1044,3 @@
int pin_offset = bm->ldata.layers[pin_layer_index].offset;
/* If ever the uv map associated bool layers become optional in BMesh as well (like in Mesh)
* this assert needs to be removed. For now it is a bug if they doin't exist. */
Member

Typo: doin't

Typo: `doin't`
Martijn Versteegh force-pushed crashoninset from b567382bb4 to 06a3b76f13 2023-02-11 02:10:22 +01:00 Compare
Author
Member

Well, I force-push updated it. Seems like it didn't break. But still probably not a good idea for a next time. It will screw up inline remarks I guess.

What do you think? Squash merge with the title you proposed. Or keep it as 2 commits. I slightly prefer to keep it as 2 commits as the two fixes are for different problems, though related.

Well, I force-push updated it. Seems like it didn't break. But still probably not a good idea for a next time. It *will* screw up inline remarks I guess. What do you think? Squash merge with the title you proposed. Or keep it as 2 commits. I slightly prefer to keep it as 2 commits as the two fixes are for different problems, though related.
Martijn Versteegh requested review from Hans Goudey 2023-02-11 02:14:15 +01:00
Author
Member

the tests pass over here.

the tests pass over here.
Hans Goudey approved these changes 2023-02-13 03:03:27 +01:00
Hans Goudey left a comment
Member

I slightly prefer to keep it as 2 commits as the two fixes are for different problems, though related.

Right, two commits makes sense. The second commit needs a proper title though. How about "BMesh: Add flexibility for future lazily created UV selection"?

>I slightly prefer to keep it as 2 commits as the two fixes are for different problems, though related. Right, two commits makes sense. The second commit needs a proper title though. How about "BMesh: Add flexibility for future lazily created UV selection"?
Brecht Van Lommel added this to the Modeling project 2023-02-13 09:21:11 +01:00
Martijn Versteegh force-pushed crashoninset from 06a3b76f13 to 7f99fca7f1 2023-02-13 19:14:31 +01:00 Compare
Martijn Versteegh added 1 commit 2023-02-13 20:03:50 +01:00
Martijn Versteegh merged commit 1e794d9a92 into main 2023-02-13 20:08:40 +01:00
Martijn Versteegh deleted branch crashoninset 2023-02-13 20:08:42 +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#104600
No description provided.