forked from blender/blender
BLEN-356: Automatically configure PXR_MTLX_STDLIB_SEARCH_PATHS #9
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BogdanNagirniak/blender#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "blen-356-pxr_mtlx_stdlib_search_paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
No response
@ -477,6 +477,7 @@ int main(int argc,
#ifdef WITH_USD
USD_ensure_plugin_path_registered();
USD_setup_usd_mtlx_environment();
do we need
#ifdef WITH_MATERIALX
?It's not a requirement but it makes sense to wrap it into an #ifdef. Because if there is no mtlx there is also no usdMtlx
@ -32,4 +35,43 @@ void ensure_usd_plugin_path_registered()
#endif
}
void setup_usd_mtlx_environment()
Move this to https://projects.blender.org/BogdanNagirniak/blender/src/branch/hydra-render/source/blender/render/hydra/python.cc#L27
@ -35,0 +67,4 @@
else {
size_t env_var_len = strlen(env_var);
size_t combined_len = stdlib_path_len + 1 + env_var_len + 1;
char *combined = (char *)malloc(sizeof(char) * combined_len);
Use more c++ approach, for example std::string
e2bf52a80e
to4f8a0f4935