Blender Git Loki

Git Commits -> Revision 00ce0c9

Revision 00ce0c9 by Bastien Montagne (master)
October 5, 2012, 12:59 (GMT)
Clean up in "add object" code:
* Get rid of ED_object_add_generic_invoke() and all invoke callbacks using it, it was doing nothing exec() callbacks would not do. In fact, its only action (setting part of common add ops properties, like loc, layers, etc.) was needed too by direct exec call, so it was done twice in case of using invoke()!
* Replace custom invoke code for metaballs by WM_menu_invoke helper (as already used by lamps).
* Add a new OBJECT_OT_empty_add op, to allow direct addition of empties of a given drawtype.
* And some general code cleanup (like trailing spaces, empty lines, ...).

Did quite a bunch of tests/verifications, but obviously could not tackle all possible scenarios... Anyway, if any, bugs should arize quite quickly (but I don�??t expect any! :p ).

Commit Details:

Full Hash: 00ce0c9aae04a461d96dc626bc6651a3ba0211cf
SVN Revision: 51082
Parent Commit: eb46c08
Lines Changed: +255, -271

7 Modified Paths:

/release/scripts/startup/bl_ui/space_info.py (+23, -28) (Diff)
/source/blender/editors/curve/editcurve.c (+28, -40) (Diff)
/source/blender/editors/include/ED_object.h (+0, -1) (Diff)
/source/blender/editors/mesh/editmesh_add.c (+51, -58) (Diff)
/source/blender/editors/object/object_add.c (+151, -144) (Diff)
/source/blender/editors/object/object_intern.h (+1, -0) (Diff)
/source/blender/editors/object/object_ops.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021