check if dual brush is enabled
This commit is contained in:
@@ -193,7 +193,8 @@ std::vector<std::shared_ptr<Brush>> ABR::compute_brushes(const std::string& path
|
||||
}
|
||||
|
||||
// dual brush
|
||||
if (auto db = p->get<Descriptor>("dualBrush"))
|
||||
auto db = p->get<Descriptor>("dualBrush");
|
||||
if (db && db->value<Boolean>("useDualBrush"))
|
||||
{
|
||||
auto samp = db->get<Descriptor>("Brsh");
|
||||
if (samp->class_id != "sampledBrush" && samp->class_id != "computedBrush")
|
||||
@@ -223,7 +224,7 @@ std::vector<std::shared_ptr<Brush>> ABR::compute_brushes(const std::string& path
|
||||
if (db->value<Boolean>("useScatter"))
|
||||
{
|
||||
auto scatter = db->get<Descriptor>("scatterDynamics");
|
||||
b->m_dual_scatter = scatter->value<UnitFloat>("jitter");
|
||||
b->m_dual_scatter = scatter->value<UnitFloat>("jitter") * 0.001f;
|
||||
}
|
||||
|
||||
// brush sample
|
||||
|
||||
Reference in New Issue
Block a user