use props all over for operator properties vars

This commit is contained in:
Campbell Barton
2012-01-01 13:09:58 +00:00
parent 9b45d8acad
commit a49e80c48a
6 changed files with 46 additions and 46 deletions

View File

@@ -181,9 +181,9 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel):
col = split.column()
col.prop(group, "dupli_offset", text="")
prop = col.operator("wm.context_set_value", text="From Cursor")
prop.data_path = "object.users_group[%d].dupli_offset" % index
prop.value = value
props = col.operator("wm.context_set_value", text="From Cursor")
props.data_path = "object.users_group[%d].dupli_offset" % index
props.value = value
index += 1