equal
deleted
inserted
replaced
568 float sc; |
568 float sc; |
569 if (std::from_chars(scale.data(), scale.data() + scale.size(), sc).ec |
569 if (std::from_chars(scale.data(), scale.data() + scale.size(), sc).ec |
570 == std::errc{}) tex->setScale(sc); |
570 == std::errc{}) tex->setScale(sc); |
571 else std::cerr << "Invalid texture scale value - expecting float\n"; |
571 else std::cerr << "Invalid texture scale value - expecting float\n"; |
572 // tex->setScale(std::stof(scale)); // locale-dependent (. vs ,) |
572 // tex->setScale(std::stof(scale)); // locale-dependent (. vs ,) |
|
573 } else { |
|
574 tex->setScale(1.); |
573 } |
575 } |
574 } |
576 } |
575 |
577 |
576 void Shark::Impl::loadTextures() { |
578 void Shark::Impl::loadTextures() { |
577 // Load default texture if there is no configured: |
579 // Load default texture if there is no configured: |