Cleanup: Unused variable warning in release build

This commit is contained in:
Hans Goudey
2024-04-25 15:28:11 -04:00
parent fdaf7a5db1
commit e3e52ccc00

View File

@@ -139,8 +139,7 @@ void GrabOperation::on_stroke_begin(const bContext &C, const InputSample &start_
PointWeights &data = this->drawing_data[i];
const bke::greasepencil::Layer &layer = *grease_pencil.layers()[info.layer_index];
const int drawing_index = layer.drawing_index_at(info.frame_number);
BLI_assert(drawing_index >= 0);
BLI_assert(layer.drawing_index_at(info.frame_number) >= 0);
BLI_assert(grease_pencil.get_drawing_at(layer, info.frame_number) == &info.drawing);
ed::greasepencil::DrawingPlacement placement(scene, region, view3d, ob_eval, layer);