Skip to content

Commit

Permalink
Fix bug in full-colour function-based pigment.
Browse files Browse the repository at this point in the history
  • Loading branch information
c-lipka committed Nov 25, 2016
1 parent e692c16 commit 38a45ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/parser/parser_materials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ void Parser::Parse_Pattern (PATTERN_T *New, BlendMapTypeId TPat_Type)
END_CASE

CASE (USER_DEFINED_TOKEN)
if ((TPat_Type != kBlendMapType_Pigment) || (TPat_Type != kBlendMapType_Density))
if ((TPat_Type != kBlendMapType_Pigment) && (TPat_Type != kBlendMapType_Density))
Only_In("user_defined", "pigment or density");
New->Type = COLOUR_PATTERN;
New->pattern = PatternPtr(new ColourFunctionPattern());
Expand Down

0 comments on commit 38a45ef

Please sign in to comment.