Instead of manually checking the pinned object, use the existing ED_object_active_context function. This requires adding const to the context in that function.
56 KiB
56 KiB
Instead of manually checking the pinned object, use the existing ED_object_active_context function. This requires adding const to the context in that function.