Object join doesn't respect parenting #76556

Closed
opened 2020-05-08 17:01:36 +02:00 by Ricardo de Sena · 19 comments

System Information
Operating system: Windows 10
Graphics card: NVidia GeForce Gt730

Blender Version
Blender 2.82A and Blender 2.83Beta 2020/05/08

Short description of error
When selecting two objects and doing the command Ctrl + Join they disappear.

Exact steps for others to reproduce the error

The error occurs when selecting the smallest and then the largest object and pressing {key Ctrl J}
But when selecting the big one and then the small one the error doesn't happen.
ErrorCtrl+Join.blend

**System Information** Operating system: Windows 10 Graphics card: NVidia GeForce Gt730 **Blender Version** Blender 2.82A and Blender 2.83Beta 2020/05/08 **Short description of error** When selecting two objects and doing the command Ctrl + Join they disappear. **Exact steps for others to reproduce the error** The error occurs when selecting the smallest and then the largest object and pressing {key Ctrl J} But when selecting the big one and then the small one the error doesn't happen. [ErrorCtrl+Join.blend](https://archive.blender.org/developer/F8520918/ErrorCtrl_Join.blend)

Added subscriber: @rsenas

Added subscriber: @rsenas
Ankit Meel changed title from Crash on Ctrl+Join two objects in mode object. to Objects disappear on Ctrl+Join based on order of selection 2020-05-08 18:28:38 +02:00
Member

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

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

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Member

@ankitm I don't believe this is a bug. The small object is being joined to a large object. The large object is the child of the small object and has a different position to the parent.
The objects doesn't disappear, they just shift to the location of the child object which is now "reset" because it no longer has a parent to reference it's location off of.

If you unparent the objects then join them, the issue does not occur.

@ankitm I don't believe this is a bug. The small object is being joined to a large object. The large object is the child of the small object and has a different position to the parent. The objects doesn't disappear, they just shift to the location of the child object which is now "reset" because it no longer has a parent to reference it's location off of. If you unparent the objects then join them, the issue does not occur.
Member

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

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

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

Changed status from 'Needs Triage' to: 'Archived'
Ankit Meel self-assigned this 2020-05-09 09:36:42 +02:00
Member

Right, I didn't check in outliner.

Right, I didn't check in outliner.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Archived' to: 'Confirmed'

Changed status from 'Archived' to: 'Confirmed'
Ankit Meel was unassigned by Brecht Van Lommel 2020-05-09 16:41:14 +02:00

The object transform including parenting should be applied to the vertex coordinates, so that the joined vertices remain in the same location.

The object transform including parenting should be applied to the vertex coordinates, so that the joined vertices remain in the same location.

Always learning and being more attentive. Thank you.

Always learning and being more attentive. Thank you.
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Hans Goudey self-assigned this 2020-05-12 21:30:57 +02:00
Member

Here's a simpler demonstration. The problem is a bit different with different object types.
simplescreenrecorder-2020-05-12_15.45.28.mp4

  • Mesh: Parent and child use the child transform without parenting.
  • Curve: Same
  • Gpencil: Parent stays in the same location, child uses its own transform.
  • Armature: Dependency cycle. This probably doesn't apply here.
    Join Parented Objects Test.blend
Here's a simpler demonstration. The problem is a bit different with different object types. [simplescreenrecorder-2020-05-12_15.45.28.mp4](https://archive.blender.org/developer/F8531367/simplescreenrecorder-2020-05-12_15.45.28.mp4) - **Mesh**: Parent and child use the child transform without parenting. - **Curve**: Same - **Gpencil**: Parent stays in the same location, child uses its own transform. - **Armature**: Dependency cycle. This probably doesn't apply here. [Join Parented Objects Test.blend](https://archive.blender.org/developer/F8531357/Join_Parented_Objects_Test.blend)
Hans Goudey changed title from Objects disappear on Ctrl+Join based on order of selection to Object join doesn't respect parent transform of child object 2020-05-12 21:37:46 +02:00
Hans Goudey changed title from Object join doesn't respect parent transform of child object to Object join doesn't respect parenting 2020-05-12 21:38:46 +02:00

Added subscriber: @sok0

Added subscriber: @sok0

Isn't this behavior to be expected due to the parent inverse matrix? The parent object has moved since it was parented to the child object (verified below) . As a result the child object moves back to its basis transform location when the parenting relationship is broken.

To avoid this quirk of the parent inverse matrix, there are two options:

  1. Apply all transforms to the parent with Ctrl+A. This will also reset the parent inverse matrix of child objects
  2. Clear Parent and Keep Transformation on the child with Alt+P.
    Either way, you then can join objects with the desired result, no need to change to the join operator.

footnote:

# move parent back to it's original location at time of parenting
bpy.data.objects['Slice.006'].matrix_basis = bpy.data.objects['Slice.004'].matrix_parent_inverse.inverted()
#undo the parenting operation
bpy.data.objects['Slice.004'].parent = None
Isn't this behavior to be expected due to the parent inverse matrix? The parent object has moved since it was parented to the child object (verified below) . As a result the child object moves back to its basis transform location when the parenting relationship is broken. To avoid this quirk of the parent inverse matrix, there are two options: 1. Apply all transforms to the parent with Ctrl+A. This will also reset the parent inverse matrix of child objects 2. Clear Parent and Keep Transformation on the child with Alt+P. Either way, you then can join objects with the desired result, no need to change to the join operator. footnote: ``` # move parent back to it's original location at time of parenting bpy.data.objects['Slice.006'].matrix_basis = bpy.data.objects['Slice.004'].matrix_parent_inverse.inverted() #undo the parenting operation bpy.data.objects['Slice.004'].parent = None ```

This issue was referenced by 5e96c43854

This issue was referenced by 5e96c438546932ca875aa35afb8c73f9a68d62a1
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

In #76556#930761, @sok0 wrote:
Either way, you then can join objects with the desired result, no need to change to the join operator.

The change is simple anyway, and avoids the need for applying the parent transform first.

> In #76556#930761, @sok0 wrote: > Either way, you then can join objects with the desired result, no need to change to the join operator. The change is simple anyway, and avoids the need for applying the parent transform first.
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
7 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#76556
No description provided.