|
Blender V4.3
|
Inherits blender::io::obj::OBJExportTest.
Public Member Functions | |
| void | compare_obj_export_to_golden (const std::string &blendfile, const std::string &golden_obj, const std::string &golden_mtl, OBJExportParams ¶ms) |
Public Member Functions inherited from blender::io::obj::OBJExportTest | |
| bool | load_file_and_depsgraph (const std::string &filepath, const eEvaluationMode eval_mode=DAG_EVAL_VIEWPORT) |
Additional Inherited Members | |
Static Public Member Functions inherited from BlendfileLoadingBaseTest | |
| static void | SetUpTestCase () |
| static void | TearDownTestCase () |
Protected Member Functions inherited from BlendfileLoadingBaseTest | |
| virtual void | TearDown () |
| bool | blendfile_load (const char *filepath) |
| void | blendfile_free () |
| virtual void | depsgraph_create (eEvaluationMode depsgraph_evaluation_mode) |
| virtual void | depsgraph_free () |
Protected Attributes inherited from BlendfileLoadingBaseTest | |
| struct BlendFileData * | bfile = nullptr |
| struct Depsgraph * | depsgraph = nullptr |
Definition at line 272 of file obj_exporter_tests.cc.
|
inline |
Export the given blend file with the given parameters and test to see if it matches a golden file (ignoring any difference in Blender version number).
| blendfile | input, relative to "tests" directory. |
| golden_obj | expected output, relative to "tests" directory. |
| params | the parameters to be used for export. |
Definition at line 281 of file obj_exporter_tests.cc.
References BlendfileLoadingBaseTest::bfile, BKE_tempdir_base(), BKE_tempdir_init(), BLI_delete(), BLI_path_basename(), BLI_path_split_dir_part(), BlendfileLoadingBaseTest::depsgraph, blender::io::obj::export_frame(), Main::filepath, blender::io::obj::OBJExportTest::load_file_and_depsgraph(), BlendFileData::main, params, printf, blender::io::obj::read_temp_file_in_string(), blender::io::obj::save_failing_test_output, SEP_STR, blender::io::obj::strings_equal_after_first_lines(), and STRNCPY.