Creating the same UI panels in different Blender areas with no code duplication

To create several identical UI panels with the same set of fields and buttons in different areas in Blender, the easiest way is to copy the panel code and replace the parameters that determine in which area the panel will be shown.

The main disadvantage of this method is code duplication, which can make difficulties in the future – when editing panels, changes must be made to each copy of the code, instead of changing it at once for all panels.

Increasing selection speed in Blender

Blender since version 2.80 has experienced a significant slowdown in objects selection in the viewport. This becomes visible when we quickly click in turn on several objects. The selection lag is sometimes so long that some of the clicked objects will not be selected. The cursor has already moved to the next object, and the selection of the current one still did not happen.

The selection delay occurs because by default Blender has the “Box Select” mode enabled in the T-toolbar.