reset texture scale back to 1:1, if xattr is missing v_0 v0.1
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue, 02 Jan 2024 17:49:23 +0100
branchv_0
changeset 31 22827574296e
parent 30 e15d04d98fca
child 32 74111f4e67cd
reset texture scale back to 1:1, if xattr is missing
Shark.cpp
--- a/Shark.cpp	Sat Dec 30 01:18:32 2023 +0100
+++ b/Shark.cpp	Tue Jan 02 17:49:23 2024 +0100
@@ -570,6 +570,8 @@
 				== std::errc{}) tex->setScale(sc);
 		else std::cerr << "Invalid texture scale value - expecting float\n";
 		// tex->setScale(std::stof(scale)); // locale-dependent (. vs ,)
+	} else {
+		tex->setScale(1.);
 	}
 }