update color at picking and cleanup code from some warnings
This commit is contained in:
@@ -92,7 +92,7 @@ bool ABR::section_patt()
|
||||
int nc = std::min((int)vm->channels.size(), 3);
|
||||
if (nc != image_mode)
|
||||
{
|
||||
LOG("PATT: image_mode (%d) and number of channels (%d) not matching\n",
|
||||
LOG("PATT: image_mode (%d) and number of channels (%ld) not matching\n",
|
||||
image_mode, vm->channels.size());
|
||||
}
|
||||
if (auto img = vm->image(true, false))
|
||||
@@ -271,7 +271,7 @@ std::vector<std::shared_ptr<Brush>> ABR::compute_brushes(const std::string& path
|
||||
std::string blend_mode = p->value<Enum>("textureBlendMode");
|
||||
auto bm_it = std::find(modes.begin(), modes.end(), blend_mode);
|
||||
if (bm_it != modes.end())
|
||||
b->m_pattern_blend_mode = std::distance(modes.begin(), bm_it);
|
||||
b->m_pattern_blend_mode = (int)std::distance(modes.begin(), bm_it);
|
||||
|
||||
b->m_pattern_enabled = p->value<Boolean>("useTexture");
|
||||
}
|
||||
@@ -342,7 +342,7 @@ std::vector<std::shared_ptr<Brush>> ABR::compute_brushes(const std::string& path
|
||||
std::string blend_mode = db->value<Enum>("BlnM");
|
||||
auto bm_it = std::find(modes.begin(), modes.end(), blend_mode);
|
||||
if (bm_it != modes.end())
|
||||
b->m_dual_blend_mode = std::distance(modes.begin(), bm_it);
|
||||
b->m_dual_blend_mode = (int)std::distance(modes.begin(), bm_it);
|
||||
|
||||
b->m_dual_enabled = db->value<Boolean>("useDualBrush");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user