Operator Copy/Paste

you can copy operator strings from buttons or the reporting interface and run them in the console.

- Ctrl+C over an operator button copies its python string to the clipboard.
- Paste in the console (1 line only for now).
- operators run from python no longer require all arguments.
This commit is contained in:
2009-07-30 01:52:00 +00:00
parent 24a269a07c
commit 39ea55fff1
7 changed files with 74 additions and 17 deletions

View File

@@ -95,7 +95,7 @@ static PyObject *pyop_call( PyObject * self, PyObject * args)
RNA_pointer_create(NULL, ot->srna, NULL, &ptr);
if(kw && PyDict_Size(kw))
error_val= pyrna_pydict_to_props(&ptr, kw, "Converting py args to operator properties: ");
error_val= pyrna_pydict_to_props(&ptr, kw, 0, "Converting py args to operator properties: ");
if (error_val==0) {