PyAPI: add intern strings

Avoid string conversion on each use.
This commit is contained in:
2017-06-21 12:43:19 +10:00
parent d9bb08f111
commit 5b51dcacbc
4 changed files with 43 additions and 36 deletions

View File

@@ -1842,7 +1842,7 @@ static int pyrna_py_to_prop(
(BPy_StructRNA_Check(value)) &&
(RNA_struct_is_a(((BPy_StructRNA *)value)->ptr.type, &RNA_Operator)))
{
value = PyObject_GetAttrString(value, "properties");
value = PyObject_GetAttr(value, bpy_intern_str_properties);
value_new = value;
}