From 5db9bfc2ffa2e8df9388433e4da7bdfce434d2c5 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 25 Dec 2011 17:16:29 +0100 Subject: Added test case for color override diff --git a/testdata/scad/features/color-tests.scad b/testdata/scad/features/color-tests.scad index 3ef2540..3fc98c8 100644 --- a/testdata/scad/features/color-tests.scad +++ b/testdata/scad/features/color-tests.scad @@ -13,3 +13,4 @@ translate([12,0,0]) color([0,0,1],0.5) object(); translate([24,0,0]) color(c="Green",alpha=0.2) object(); translate([-12,12,0]) color() object(); translate([-12,0,0]) color(alpha=0.5) object(); +translate([24,-12,0]) color([1,0,0]) color([0,0,1]) object(); diff --git a/tests/regression/cgalpngtest/color-tests-expected.png b/tests/regression/cgalpngtest/color-tests-expected.png index 207fc5b..c7385d2 100644 Binary files a/tests/regression/cgalpngtest/color-tests-expected.png and b/tests/regression/cgalpngtest/color-tests-expected.png differ diff --git a/tests/regression/dumptest/color-tests-expected.txt b/tests/regression/dumptest/color-tests-expected.txt index 1224e2d..95fe012 100644 --- a/tests/regression/dumptest/color-tests-expected.txt +++ b/tests/regression/dumptest/color-tests-expected.txt @@ -52,4 +52,13 @@ } } } + multmatrix([[1, 0, 0, 24], [0, 1, 0, -12], [0, 0, 1, 0], [0, 0, 0, 1]]) { + color([1, 0, 0, 1]) { + color([0, 0, 1, 1]) { + group() { + cube(size = [10, 10, 10], center = false); + } + } + } + } -- cgit v0.10.1