Skip to content

Commit

Permalink
Merge pull request #3186 from manyfold3d/disable-convert-button-non-m…
Browse files Browse the repository at this point in the history
…anifold

Disable conversion button for non-manifold meshes
  • Loading branch information
Floppy authored Nov 18, 2024
2 parents e6d3fd9 + f6cffb8 commit a7a0ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/policies/model_file_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def create?
end

def convert?
create? && ["stl", "obj"].include?(@record.extension)
create? && @record.loadable? && !@record.problems.exists?(category: :non_manifold)
end

def update?
Expand Down

0 comments on commit a7a0ed8

Please sign in to comment.