Add bl_use_materialx property #3

Merged
Bogdan Nagirniak merged 2 commits from add-bl_use_materialx into matx-export-material 2023-08-24 15:51:44 +02:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit 8c28838ea3 - Show all commits

View File

@ -1007,6 +1007,11 @@ static void rna_def_render_engine(BlenderRNA *brna)
RNA_def_property_ui_text(
prop, "Use Alembic Procedural", "Support loading Alembic data at render time");
prop = RNA_def_property(srna, "bl_use_materialx", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, nullptr, "type->flag", RE_USE_MATERIALX);
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
RNA_def_property_ui_text(prop, "Use Material", "Use MaterialX for exporting materials to Hydra");
RNA_define_verify_sdna(true);
}

View File

@ -55,6 +55,7 @@ enum RenderEngineTypeFlag {
RE_USE_CUSTOM_FREESTYLE = (1 << 8),
RE_USE_NO_IMAGE_SAVE = (1 << 9),
RE_USE_ALEMBIC_PROCEDURAL = (1 << 10),
RE_USE_MATERIALX = (1 << 11),
};
/** #RenderEngine.flag */