Add color sliders to sketch3d

This commit is contained in:
elushaX 2024-03-20 20:00:52 -07:00 committed by Ilya Shurupov
parent 689bee9afc
commit 6d8c64ac33
5 changed files with 127 additions and 5 deletions

View file

@ -315,10 +315,6 @@ void Project::sample(halnf pressure, halnf cameraRatio, Vec2F relativeCameraPos)
if (idx) {
auto brush = mBrushes.getSlotVal(idx);
if (brush->mType == "pencil") {
((tp::PencilBrush*) brush)->mCol = RGBA(1.f);
}
brush->sample(this, relativeCameraPos, pressure);
}
}