use set as a suffix (matches operators)

- set_frame() --> frame_set()
 - set_context_pointer() --> context_pointer_set()

material adding works for curves and metaballs, new function to remove materials.

materials.link() didnt well fit how this is used elsewhere
 - order matters
 - it can be linked more than once.
 - remove(material), isnt that useful since you need to manage indicies.

... use list style functions instead. materials.append(mat) / materials.pop(index)
This commit is contained in:
2010-09-03 07:25:37 +00:00
parent 870469ec0e
commit d0c54d3d0e
24 changed files with 148 additions and 71 deletions

View File

@@ -142,7 +142,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel, bpy.types.Panel):
if ob.name in group.objects:
col = layout.column(align=True)
col.set_context_pointer("group", group)
col.context_pointer_set("group", group)
row = col.box().row()
row.prop(group, "name", text="")