Campbell Barton
bbe13e7823
* register operators like other classes
...
* operators now return sets (converted into flags)
* can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
2009-12-24 19:50:43 +00:00
Campbell Barton
9f965ba62b
pep8 warnings, remove unused imports
2009-12-13 22:48:11 +00:00
Campbell Barton
7fc4ab2aab
add pep8 headers so these scripts spit out errors when running pep8.
...
made some changes but mostly these scripts will give pep8 warnings.
2009-12-13 14:38:30 +00:00
Campbell Barton
8b897879cd
pep8 cleanup in ui and op dirs, added popup to select pattern
2009-11-28 23:37:56 +00:00
Campbell Barton
caab05ec8c
rna UI api rename...
...
note: this aims to follow pep8 however I chose to use 'prop/props' rather then 'property/properties' because it would make function names too long.
itemR() --> prop()
items_enumR() --> props_enum()
item_menu_enumR() --> prop_menu_enum()
item_pointerR() --> prop_pointer()
itemO() --> operator()
item_enumO() --> operator_enum()
items_enumO() --> operator_enums()
item_menu_enumO() --> operator_menu_enum()
item_booleanO() --> operator_boolean()
item_intO() --> operator_int()
item_floatO() --> operator_float()
item_stringO() --> operator_string()
itemL() --> label()
itemM() --> menu()
itemS() --> separator()
batch script used http://www.pasteall.org/9345
2009-11-23 00:27:30 +00:00
Campbell Barton
e61c90e416
operators were copying the properties from the rna operator into the class instance.
...
however this meant the invoke function could not modify properties for exec to use (unless it called exec directly after)
since the popup for eg would re-instance the python class each time.
now use the operator properties directly through rna without an automatic copy.
now an operator attribute is accessed like this...
self.path --> self.properties.path
2009-11-19 17:12:08 +00:00
Campbell Barton
0750a8dc5c
simple fix, still worked on my PC somehow
2009-11-09 09:16:16 +00:00
Campbell Barton
be4ceb5fdf
Select interior faces, access from the mesh select menu
...
new mesh functions, remove duplicates in uvproject and mesh_skin
- face.edge_keys()
- edge.key()
- mesh.edge_face_count()
- mesh.edge_face_count_dict()
2009-11-05 12:37:49 +00:00
Campbell Barton
4033aba579
new operator directory, move some scripts from io
2009-11-04 14:40:35 +00:00