Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send2UE - Added validate_unreal_plugins Property #74

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/addons/send2ue/core/validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def validate_required_unreal_plugins(self):
"""
Checks whether the required unreal plugins are enabled.
"""
if self.properties.import_grooms and self.hair_objects:
if self.properties.validate_unreal_plugins and self.properties.import_grooms and self.hair_objects:
# A dictionary of plugins where the key is the plugin name and value is the plugin label.
groom_plugins = {
'HairStrands': 'Groom',
Expand Down
5 changes: 5 additions & 0 deletions src/addons/send2ue/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,11 @@ class Send2UeSceneProperties(property_class):
default=True,
description="This checks that a mesh with an armature modifier has vertex groups"
)
validate_unreal_plugins: bpy.props.BoolProperty(
name="Check Unreal has required plugins",
default=True,
description="Disable only if you know Groom plugin is enabled but still get an error"
)

return Send2UeSceneProperties

Expand Down
3 changes: 2 additions & 1 deletion src/addons/send2ue/resources/setting_templates/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,6 @@
"validate_project_settings": true,
"validate_scene_scale": true,
"validate_textures": false,
"validate_time_units": "off"
"validate_time_units": "off",
"validate_unreal_plugins": true
}
1 change: 1 addition & 0 deletions src/addons/send2ue/ui/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def draw_validations_tab(self, layout):
self.draw_property(properties, layout, 'validate_project_settings')
self.draw_property(properties, layout, 'validate_object_names')
self.draw_property(properties, layout, 'validate_meshes_for_vertex_groups')
self.draw_property(properties, layout, 'validate_unreal_plugins')

def draw_extensions(self, layout):
"""
Expand Down
Loading