Skip to content

Commit 38a45ef

Browse files
committed
Fix bug in full-colour function-based pigment.
1 parent e692c16 commit 38a45ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/parser/parser_materials.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ void Parser::Parse_Pattern (PATTERN_T *New, BlendMapTypeId TPat_Type)
10231023
END_CASE
10241024

10251025
CASE (USER_DEFINED_TOKEN)
1026-
if ((TPat_Type != kBlendMapType_Pigment) || (TPat_Type != kBlendMapType_Density))
1026+
if ((TPat_Type != kBlendMapType_Pigment) && (TPat_Type != kBlendMapType_Density))
10271027
Only_In("user_defined", "pigment or density");
10281028
New->Type = COLOUR_PATTERN;
10291029
New->pattern = PatternPtr(new ColourFunctionPattern());

0 commit comments

Comments
 (0)