Fix #90732: crash on alt+LMB to change custom properties in some cases #112910

Closed
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:90732_b into blender-v4.0-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

This crashed when alt-editing a custom property that existed e.g. on one
bone but not on another.

To check validity there are two mechanisms:

  • remove non-valid in UI_context_copy_to_selected_list()
  • check in UI_context_copy_to_selected_check()

This PR takes the first route [similar to filtering out different
sequences that dont share common properties], custom properties on real
IDs (such as objects or scenes) were not affected [since they kind of go
the second route and provide a path for
UI_context_copy_to_selected_check() which then gets validated there].

Found the first route more readable though.

This crashed when alt-editing a custom property that existed e.g. on one bone but not on another. To check validity there are two mechanisms: - remove non-valid in UI_context_copy_to_selected_list() - check in UI_context_copy_to_selected_check() This PR takes the first route [similar to filtering out different sequences that dont share common properties], custom properties on real IDs (such as objects or scenes) were not affected [since they kind of go the second route and provide a path for UI_context_copy_to_selected_check() which then gets validated there]. Found the first route more readable though.
Philipp Oeser added 1 commit 2023-09-26 16:22:08 +02:00
071f467660 Fix #90732: crash on alt+LMB to change custom properties in some cases
This crashed when alt-editing a custom property that existed e.g. on one
bone but not on another.

To check validity there are two mechanisms:
- remove non-valid in UI_context_copy_to_selected_list()
- check in UI_context_copy_to_selected_check()

This PR takes the first route [similar to filtering out different
sequences that dont share common properties], custom properties on real
IDs (such as objects or scenes) were not affected [since they kind of go
the second route and provide a path for
UI_context_copy_to_selected_check() which then gets validated there].

Found the first route more readable though.
Philipp Oeser added this to the User Interface project 2023-09-26 16:22:20 +02:00
Philipp Oeser requested review from Campbell Barton 2023-09-26 16:22:26 +02:00
Philipp Oeser added the
Interest
Animation & Rigging
label 2023-09-26 16:22:31 +02:00
Philipp Oeser changed title from Fix #90732: crash on alt+LMB to change custom properties in some cases to Fix #90732: crash on alt+LMB to change custom properties in some cases 2023-09-28 12:01:05 +02:00
lichtwerk changed target branch from main to blender-v4.0-release 2023-09-28 12:01:07 +02:00

Committed an alternate fix 78fc3039a8, this solves the issue in UI_context_copy_to_selected_list(..) so items are excluded from the list. Also type-checks the id-property to ensure they''re compatible.

Committed an alternate fix 78fc3039a8aef9a124a7a95c2ffd19b68768b0bc, this solves the issue in UI_context_copy_to_selected_list(..) so items are excluded from the list. Also type-checks the id-property to ensure they''re compatible.
Campbell Barton closed this pull request 2023-09-29 07:05:39 +02:00

Pull request closed

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#112910
No description provided.