Skip to content

Commit

Permalink
Cleanup: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainzman committed Jan 30, 2025
1 parent 8e13b2b commit 8a2336b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions source/blender/editors/interface/interface_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2348,9 +2348,6 @@ static int drop_color_invoke(bContext *C, wmOperator *op, const wmEvent *event)
but = ui_region_find_active_but(region);

if (but && but->type == UI_BTYPE_COLOR && but->rnaprop) {
const int color_len = RNA_property_array_length(&but->rnapoin, but->rnaprop);
BLI_assert(color_len <= 4);

if (!has_alpha) {
color[3] = 1.0f;
}
Expand Down

0 comments on commit 8a2336b

Please sign in to comment.