Skip to content

Commit

Permalink
Fixed a Wing3d crash related to Area Light - by trying to edit its pr…
Browse files Browse the repository at this point in the history
…operty or saving the project Wings3d was crashing.

The bug was introduced when I tried to fix an issue related to unhiding adjacent faces with other material than default one (on mv/bugs1.5.pre1b - dgud@5ee5a9d)
  • Loading branch information
Micheus committed Jun 26, 2013
1 parent da41e51 commit 8738cb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wings_facemat.erl
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ hide_faces(#we{mat=L0,fs=Ftab}=We) ->
%% Update the material name mapping in the We for all faces
%% in the list Faces.
show_faces(_, #we{mat=M}=We) when is_atom(M) -> We;
show_faces(Faces, #we{mat=L0}=We) when is_list(Faces) ->
L = show_faces_1(Faces, L0, []),
We#we{mat=L};
show_faces(Faces, #we{mat=L0}=We) ->
L = show_faces_1(gb_sets:to_list(Faces), L0, []),
We#we{mat=L}.
Expand Down

0 comments on commit 8738cb8

Please sign in to comment.