abr opacity jitter value, longer presets popup
This commit is contained in:
19
src/abr.cpp
19
src/abr.cpp
@@ -164,7 +164,7 @@ std::vector<std::shared_ptr<Brush>> ABR::compute_brushes(const std::string& path
|
||||
// Shape dynamics
|
||||
if (p->value<Boolean>("useTipDynamics"))
|
||||
{
|
||||
// other properties 'brushProjection', 'minimumRoundness', 'roundnessDynamics', 'tiltScale'
|
||||
// other properties 'brushProjection', 'minimumRoundness', 'tiltScale'
|
||||
|
||||
if (auto jitter_size = p->get<Descriptor>("szVr"))
|
||||
{
|
||||
@@ -205,15 +205,14 @@ std::vector<std::shared_ptr<Brush>> ABR::compute_brushes(const std::string& path
|
||||
// Transfer settings
|
||||
if (p->value<Boolean>("usePaintDynamics"))
|
||||
{
|
||||
// TODO: implement this when opacity is per-sample
|
||||
//auto jitter_opacity = p->get<Descriptor>("opVr");
|
||||
//if (jitter_opacity)
|
||||
//{
|
||||
// b->m_jitter_opacity = jitter_opacity->value<UnitFloat>("jitter") * 0.01f;
|
||||
// // TODO: jitter_opacity->value<UnitFloat>("Mnm ") * 0.01f; // minimum size
|
||||
// if (jitter_opacity->value<Integer>("bVTy") == 2)
|
||||
// b->m_tip_opacity_pressure;
|
||||
//}
|
||||
auto jitter_opacity = p->get<Descriptor>("opVr");
|
||||
if (jitter_opacity)
|
||||
{
|
||||
b->m_jitter_opacity = jitter_opacity->value<UnitFloat>("jitter") * 0.01f;
|
||||
// TODO: jitter_opacity->value<UnitFloat>("Mnm ") * 0.01f; // minimum size
|
||||
if (jitter_opacity->value<Integer>("bVTy") == 2)
|
||||
b->m_tip_opacity_pressure = true;
|
||||
}
|
||||
|
||||
auto jitter_flow = p->get<Descriptor>("prVr");
|
||||
if (jitter_flow)
|
||||
|
||||
Reference in New Issue
Block a user