functions to make a string representation of a property & assignment.

This commit is contained in:
2012-12-18 14:11:19 +00:00
parent 2a657345c7
commit 957604f895
2 changed files with 48 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ struct wmOperatorType;
struct wmOperator;
struct rcti;
struct PointerRNA;
struct PropertyRNA;
struct EnumPropertyItem;
struct MenuType;
struct wmDropBox;
@@ -257,6 +258,8 @@ int WM_operator_last_properties_store(struct wmOperator *op);
/* operator as a python command (resultuing string must be freed) */
char *WM_operator_pystring(struct bContext *C, struct wmOperatorType *ot, struct PointerRNA *opptr, int all_args);
char *WM_prop_pystring(struct PointerRNA *ptr, struct PropertyRNA *prop, int index);
char *WM_prop_pystring_assign(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, int index);
void WM_operator_bl_idname(char *to, const char *from);
void WM_operator_py_idname(char *to, const char *from);