mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 15:35:55 +08:00
Fix for test
This commit is contained in:
parent
ea84072f55
commit
5a60f5f6a8
@ -499,15 +499,16 @@ TEST_CASE("UndoRedo TextConfiguration serialization", "[Emboss]")
|
||||
TextConfiguration tc;
|
||||
tc.text = "Dovede-li se člověk zasmát sám sobě, nevyjde ze smíchu po celý život.";
|
||||
EmbossStyle& es = tc.style;
|
||||
es.name = "Seneca";
|
||||
es.path = "Simply the best";
|
||||
es.type = EmbossStyle::Type::file_path;
|
||||
FontProp &fp = es.prop;
|
||||
fp.angle = 100.;
|
||||
fp.distance = 10.;
|
||||
fp.char_gap = 1;
|
||||
fp.use_surface = true;
|
||||
tc.fix_3mf_tr = Transform3d::Identity();
|
||||
es.name = "Seneca";
|
||||
es.path = "Simply the best";
|
||||
es.type = EmbossStyle::Type::file_path;
|
||||
FontProp &fp = es.prop;
|
||||
fp.char_gap = 3;
|
||||
fp.line_gap = 7;
|
||||
fp.boldness = 2.3f;
|
||||
fp.skew = 4.5f;
|
||||
fp.collection_number = 13;
|
||||
fp.size_in_mm= 6.7f;
|
||||
|
||||
std::stringstream ss; // any stream can be used
|
||||
{
|
||||
@ -522,7 +523,6 @@ TEST_CASE("UndoRedo TextConfiguration serialization", "[Emboss]")
|
||||
}
|
||||
CHECK(tc.style == tc_loaded.style);
|
||||
CHECK(tc.text == tc_loaded.text);
|
||||
CHECK(tc.fix_3mf_tr.has_value() == tc_loaded.fix_3mf_tr.has_value());
|
||||
}
|
||||
|
||||
#include "libslic3r/EmbossShape.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user