Maniphest T36189

Erased linked group is impossible to link again
Closed, Resolved

Assigned To
None
Authored By
Carlos Mazon (carlos-mazon)
Jul 17 2013, 7:32 PM
Tags
  • BF Blender
Subscribers
Brecht Van Lommel (brecht)
Carlos Mazon (carlos-mazon)
Lukas Tönne (lukastoenne)
stinky wizzleteet (wizzleteet)

Description

--- Operating System, Graphics card ---
Windows 7 64b

--- Blender version with error, and version that worked ---
2.67 (it didn't worked in

--- Short description of error ---
When erasing a linked group it's not possible to link it again. Using again the link command (or append) does nothing

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
Link a group, erase it with "x", try to link it again (tried with the shortcut Ctr+Alt+o and with the File menu). Notting happens.

Event Timeline

Carlos Mazon (carlos-mazon) edited a custom field.Jul 17 2013, 7:32 PM
stinky wizzleteet (wizzleteet) attached 1 file(s): F23028: link-source.blend.Jul 18 2013, 12:53 PM
stinky wizzleteet (wizzleteet) attached 1 file(s): F23029: link-target-empty.blend.
stinky wizzleteet (wizzleteet) attached 1 file(s): F23031: link-target-linked-then-deleted.blend.
stinky wizzleteet (wizzleteet) attached 1 file(s): F23033: link-target-linked.blend.

I came here to report this very bug.

Attached files can illustrate this issue:
link-target-empty.blend will allow to import "Group" from link-source.blend
link-target-then deleted.blend will not allow this.

Been using R2.68 rc up to build r58250.
ubuntu 13.04 64 bits.

Lukas Tönne (lukastoenne) added a comment.Aug 9 2013, 12:13 PM

It's not *really* a bug, although a bit confusing behavior:

1) When first linking the group a new Empty object will be created to make an initial instance of that group in the scene (readfile.c, give_base_to_groups).

2) Deleting the object will do just that: it deletes the group instance Empty object, but NOT the group itself (user counting for groups is a bit peculiar, the group will not have 0 users after deleting the last instance and will persist after reload. i don't fully understand it yet)

3) When re-linking the group it will be found existing in the library already and not be replaced. No new object will be created for the group either, since it is tagged as existing.

So the easiest thing to do is just to create a new group instance, you don't need to relink from the file. If you want to delete the group explicitly you can do that in the outliner by switching to "Groups" and hit "Unlink Group".

Brecht Van Lommel (brecht) added a comment.Sep 3 2013, 7:24 PM

I think it's ok that the group is kept after removing the object, however to me it seems like a bug that the group is not being instanced when linking again.

Fix for that now in svn revision 59773.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Sep 3 2013, 7:24 PM
Carlos Mazon (carlos-mazon) added a comment.Sep 6 2013, 11:06 AM

Hi all,

Thanks for you explanation.

Personally, I think it will be better if whenever you erase a group and refresh the scene, this would disappear (the same way it happens with the materials). I usually find quite useful to work with the groups tab in the Outliner (for hiding/showing objects), and it's a bit confusing when you have groups names that are not in the scene anymore. Also, other times I just want to erase a group because I spelled the name incorrectly.

I found that when you change the name Datablock in a linked group, this disappears in the main file. I think it would be better if linked Groups content would be "refreshed" every time you open the main file, no matter how many objects have you added or changed name.

Also, Blender doesn't remembers when you have Restrict/Allow Visibility in the Outliner from a linked Group. This is a bit annoying, as sometimes you link some group you don't want to render or see, and you have to click on the icons every time you open it. I have reported that as a bug here: http://bit.ly/1dXSmzE

Kind regards

Brecht Van Lommel (brecht) added a comment.Sep 6 2013, 2:13 PM

I don't disagree with the points you make, but this is the current design, and changing the design of groups and linking is outside the scope of this bug tracker.

Lukas Tönne (lukastoenne) edited this Maniphest Task.Mar 13 2014, 9:05 AM
Lukas Tönne (lukastoenne) edited this Maniphest Task.Mar 13 2014, 9:08 AM