Appending breaks parent relations and groups #48907

Closed
opened 2016-07-20 15:53:42 +02:00 by Nils Söderman · 9 comments

System Information
Windows 10, 64-bit.
NVIDIA GeForce GT 540M 1GB

Blender Version
Broken: 2.77.1, f2fa737, Date: 2016-07-20 01:25 (Running the latest Win64bit build from https://builder.blender.org/download/)
Worked: (optional)

Short description of error
When appending something seems to go wrong with groups and parent relationships.
The parent relationship and groups shows accurate it 3D view, but does not act like they should. Childs does not follow parents in movement, rotation, scale, and shows as singular objects in the outliner.
In properties > object, even though the objects in a group it's not not displayed to be part of any group in the UI, and causes some problems with python (see below).

Exact steps for others to reproduce the error

I attached a blend, contains 2 cubes with a parent relationship, and they're in a group called "Group":BlenderBug - Appending.blend

Open up Blender and import the group "Group" from the blend file.
Try to move the parent cube, child cube does not follow.
They are separate objects in outliner (cube.001 is not placed under cube), and doesn't display as part of any group.
https://i.gyazo.com/57dc8eb3b9d55ce3897974b6ad1f0849.png

Also, I assume this code doesn't work because of the problems above, but running:

import bpy
for obj in bpy.data.groups["Group"].objects:
    bpy.data.objects.remove(obj, do_unlink=True)

This should remove/delete those 2 cubes, but for some reason it doesn't if you run it after the group has been appended (works fine in original blend file).

**System Information** Windows 10, 64-bit. NVIDIA GeForce GT 540M 1GB **Blender Version** Broken: 2.77.1, f2fa737, Date: 2016-07-20 01:25 (Running the latest Win64bit build from https://builder.blender.org/download/) Worked: (optional) **Short description of error** When appending something seems to go wrong with groups and parent relationships. The parent relationship and groups shows accurate it 3D view, but does not act like they should. Childs does not follow parents in movement, rotation, scale, and shows as singular objects in the outliner. In properties > object, even though the objects in a group it's not not displayed to be part of any group in the UI, and causes some problems with python (see below). **Exact steps for others to reproduce the error** I attached a blend, contains 2 cubes with a parent relationship, and they're in a group called "Group":[BlenderBug - Appending.blend](https://archive.blender.org/developer/F325359/BlenderBug_-_Appending.blend) Open up Blender and import the group "Group" from the blend file. Try to move the parent cube, child cube does not follow. They are separate objects in outliner (cube.001 is not placed under cube), and doesn't display as part of any group. https://i.gyazo.com/57dc8eb3b9d55ce3897974b6ad1f0849.png Also, I assume this code doesn't work because of the problems above, but running: ``` import bpy for obj in bpy.data.groups["Group"].objects: bpy.data.objects.remove(obj, do_unlink=True) ``` This should remove/delete those 2 cubes, but for some reason it doesn't if you run it after the group has been appended (works fine in original blend file).
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @NilsSoderman

Added subscriber: @NilsSoderman

Added subscriber: @mont29

Added subscriber: @mont29
Bastien Montagne self-assigned this 2016-07-20 17:53:41 +02:00

Issue confirmed. Know what's happening, but not (yet) how to fix it, this is a bit of a hairy issue actually (long story made short, if parent object is made local before child one, then pointer to parent object of the child is not remapped to localized parent).

There is actually more to that, since id_make_local does not support groups (same for a few other datablock types), this has to be fixed too - arg :(

Issue confirmed. Know what's happening, but not (yet) how to fix it, this is a bit of a hairy issue actually (long story made short, if parent object is made local before child one, then pointer to parent object of the child is not remapped to localized parent). There is actually more to that, since id_make_local does not support groups (same for a few other datablock types), this has to be fixed too - arg :(

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Solved by d8d4bef6cc (and following) commits.

Solved by d8d4bef6cc (and following) commits.

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

This task is still mentioned in library.c. Is that reference still valid?

This task is still mentioned [in library.c](https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/library.c;5a0f397eaa6b5c05a6d312617eeebd96e977fa80$1697). Is that reference still valid?

yes it is

yes it is
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
3 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#48907
No description provided.