Page MenuHome

Group objects disappear after appending
Closed, ResolvedPublic

Description

System Information
Windows 7 64, GTX 980

Blender Version
Broken: 2.6 (unsure), 2.70 - b4d8fb5 (2.73 release), a1f4821

Short description of error
Group objects who are used as a Custom Bone Shape 2 or more times
will disappear after appending their group to a new file, regardless of any other usage.

Exact steps for others to reproduce the error

Steps:

  • Add a Cube.
  • Add an Armature.
    • Create 2 Bones.
    • Use Cube as Custom Bone Shape for both Bones.
  • Assign all objects to a Group.
  • Open a new file and append this Group

Problem: Cube (object) isnt appended correctly and dont show up in your new file - only mesh data is appended.

All objects that have used Cube for any purpose (mirror-target/constraints/etc) will now refer to a hidden object.
And of course Cubes individual settings like constraints or modifiers are lost as well.

Event Timeline

Karja Krähwald (karja) raised the priority of this task from to 90.
Karja Krähwald (karja) updated the task description. (Show Details)
Karja Krähwald (karja) edited a custom field.

Problem seems to be this conditional when creating bases for appended objects in give_base_to_objects:

				...
				else if (idcode==ID_GR) {
					if (ob->id.us == 1 && is_link == false && ob->id.lib == lib) {
						if ((ob->flag & OB_FROMGROUP) && object_in_any_scene(mainvar, ob)==0) {
							do_it = true;
						}
					}
				}
				...

When there is only one bone shape the ob->id.us == 1 part is true and the Suzanne object gets a base, but with 2 bone shapes it fails and no other condition succeeds to give it a base.

Looks like it could be changed to: ob->id.us >= 1. would be a reasonable fix.

Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.Jan 22 2015, 2:24 PM