Files
test/source
Dalai Felinto 038e674cdd 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.
2010-06-17 08:42:15 +00:00
..
2010-06-06 13:32:58 +00:00
2010-01-03 20:35:13 +00:00
2010-02-12 13:34:04 +00:00
2010-06-12 23:09:01 +00:00
2010-02-12 13:34:04 +00:00
2010-02-12 13:34:04 +00:00