Merge from 2.5 r20991 through r21037
[blender.git] / release / ui / buttons_objects.py
index 48ab0d2d755e0fadd07c6e0487a285ec69cfd8be..3138f447ad2f078f7e47c94a81d428e5d4c2b36c 100644 (file)
@@ -35,7 +35,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
                # layout.itemO("OBJECT_OT_add_group");
 
                for group in bpy.data.groups:
-                       if ob in group.objects:
+                       if ob.name in group.objects:
                                col = layout.column(align=True)
 
                                row = col.box().row()