Page MenuHome

Cleanup: remove BKE_animdata_driver_path_hack
ClosedPublic

Authored by Sybren A. Stüvel (sybren) on Dec 21 2021, 5:49 PM.

Details

Summary

The BKE_animdata_driver_path_hack() function has had almost no effect since rB51b796ff1528, and basically boils down to:

return base_path ? base_path : RNA_path_from_ID_to_property(ptr, prop);

Since base_path was NULL in the majority of cases, it's just been replaced by a direct call to RNA_path_from_ID_to_property(). The conditional now just appears in one case.

Asking review by @Bastien Montagne (mont29) because we just talked about this code and it might still be fresh on his mind ;-)

Diff Detail

Repository
rB Blender