Blender Git Loki
Git Commits -> Revision 038e674
Revision 038e674 by Dalai Felinto (master) June 17, 2010, 08:42 (GMT) |
Logics ops: add s/c/a can now be called with an object parameter (e.g. bpy.ops.logic.controller_add_exec(name="name", object="non_active_object") If no parameter is passed it uses the active object. To do: make logic_window set "active object" in context before calling add s/c/a operator So far I tried this before uiItemMenuEnumO(row, "LOGIC_OT_controller_add", "type", "Add Controller", 0); : +RNA_pointer_create((ID *)ob, &RNA_Object, ob, &ob_ptr); +uiLayoutSetContextPointer(row, "object", &ob_ptr); Not working though :) (not committed either). to be investigated. |
Commit Details:
Full Hash: 038e674cddc4d526fe6ab09b1ce94cb5c18c2952
SVN Revision: 29518
Parent Commit: 3d562dd
Lines Changed: +47, -46
1 Modified Path:
/source/blender/editors/space_logic/logic_ops.c (+47, -46) (Diff)