|
Blender V4.3
|
Inherits BlendfileLoadingBaseTest.
Public Member Functions | |
| bool | load_file_and_depsgraph (const StringRefNull &filepath, const eEvaluationMode eval_mode=DAG_EVAL_VIEWPORT) |
| virtual void | SetUp () override |
| virtual void | TearDown () override |
| const pxr::UsdPrim | get_first_child_mesh (const pxr::UsdPrim prim) |
| const void | compare_blender_node_to_usd_prim (const bNode *bsdf_node, const pxr::UsdPrim &bsdf_prim) |
| const void | compare_blender_image_to_usd_image_shader (const bNode *image_node, const pxr::UsdPrim &image_prim) |
| const void | compare_blender_mesh_to_usd_prim (const Mesh *mesh, const pxr::UsdGeomMesh &mesh_prim) |
Protected Attributes | |
| bContext * | context = nullptr |
| Protected Attributes inherited from BlendfileLoadingBaseTest | |
| struct BlendFileData * | bfile = nullptr |
| struct Depsgraph * | depsgraph = nullptr |
Additional Inherited Members | |
| Static Public Member Functions inherited from BlendfileLoadingBaseTest | |
| static void | SetUpTestCase () |
| static void | TearDownTestCase () |
| Protected Member Functions inherited from BlendfileLoadingBaseTest | |
| bool | blendfile_load (const char *filepath) |
| void | blendfile_free () |
| virtual void | depsgraph_create (eEvaluationMode depsgraph_evaluation_mode) |
| virtual void | depsgraph_free () |
Definition at line 52 of file usd_export_test.cc.
|
inline |
Definition at line 155 of file usd_export_test.cc.
References BLI_path_cmp_normalized(), EXPECT_EQ(), bNode::id, and image().
|
inline |
Definition at line 181 of file usd_export_test.cc.
References Mesh::corners_num, EXPECT_EQ(), Mesh::faces_num, normals, and Mesh::verts_num.
|
inline |
Loop the sockets on the Blender bNode, and fail if any of their values do not match the equivalent Attribute values on the UsdPrim.
Definition at line 102 of file usd_export_test.cc.
References SOCK_FLOAT, SOCK_RGBA, SOCK_VECTOR, and blender::io::usd::token_for_input().
|
inline |
Definition at line 88 of file usd_export_test.cc.
|
inline |
Definition at line 57 of file usd_export_test.cc.
References BlendfileLoadingBaseTest::bfile, BlendfileLoadingBaseTest::blendfile_load(), blender::StringRefNull::c_str(), context, CTX_create(), CTX_data_main_set(), CTX_data_scene_set(), DAG_EVAL_VIEWPORT, and BlendfileLoadingBaseTest::depsgraph_create().
|
inlineoverridevirtual |
Definition at line 72 of file usd_export_test.cc.
|
inlineoverridevirtual |
Reimplemented from BlendfileLoadingBaseTest.
Definition at line 77 of file usd_export_test.cc.
References BLI_delete(), BLI_exists(), context, CTX_free(), blender::io::usd::output_filename, and BlendfileLoadingBaseTest::TearDown().
|
protected |
Definition at line 54 of file usd_export_test.cc.
Referenced by load_file_and_depsgraph(), and TearDown().