-
- Downloads
Cleanup: UI: Avoid overallocation while adding button decorators
This will likely reserve a larger vector more than actually needed. Reserve only the same count of decorators to be added, since they likely match the number of buttons that needs to be temporally retrieved. Decorators buttons are added along animatable property buttons in each `layout.prop` function call, when a property is a `XYZ` vector property, drawing this property adds 3 inputs buttons and for each inputs buttons this need to insert an aligned property decorator, since this decorators are added just after the buttons are added this likely just takes out temporally this last 3 elements and inserts them back with each corresponding decorator. Pull Request: https://projects.blender.org/blender/blender/pulls/136191
Loading
Please register or sign in to comment