Cleanup: Better use references than copy by value for PointerRNA now.

While copying this used to be very cheap, this will soon be less
trivial.

Note that there are many more places where this type of cleanup will be
needed.
This commit is contained in:
Bastien Montagne
2024-10-29 16:10:35 +01:00
parent 94f71785e7
commit 97f92a19b3

View File

@@ -375,7 +375,7 @@ PyObject *pyrna_struct_keyframe_insert(BPy_StructRNA *self, PyObject *args, PyOb
* not have any effect.
*/
PointerRNA ptr = self->ptr;
PointerRNA &ptr = self->ptr;
PropertyRNA *prop = nullptr;
const char *prop_name;