diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-06-17 12:42:15 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-06-17 12:42:15 +0400 |
commit | 038e674cddc4d526fe6ab09b1ce94cb5c18c2952 (patch) | |
tree | 15e4333f708c9149df41bc1350972f24f8e903cc /source/blender/editors/space_sequencer | |
parent | 3d562ddaa9d7f07b505a0a25516f06dde6fadcec (diff) |
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.
Diffstat (limited to 'source/blender/editors/space_sequencer')
0 files changed, 0 insertions, 0 deletions