Skip to content

Commit 05eb929

Browse files
authored
Merge pull request #782 from hx2A/fixbug
fix #781 - `PShape.getSpecular()`, `.getEmissive()`, and `.getShininess()`
2 parents 9b1cc10 + ad9d86d commit 05eb929

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/processing/opengl/PShapeOpenGL.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ public void setAmbient(int index, int ambient) {
24552455

24562456
@Override
24572457
public int getSpecular(int index) {
2458-
if (family == GROUP) {
2458+
if (family != GROUP) {
24592459
if (root.tessUpdate) {
24602460
return PGL.nativeToJavaARGB(tessGeo.polySpecular[firstPolyVertex + index]);
24612461
} else {
@@ -2528,7 +2528,7 @@ public void setSpecular(int index, int specular) {
25282528

25292529
@Override
25302530
public int getEmissive(int index) {
2531-
if (family == GROUP) {
2531+
if (family != GROUP) {
25322532
if (root.tessUpdate) {
25332533
return PGL.nativeToJavaARGB(tessGeo.polyEmissive[firstPolyVertex + index]);
25342534
} else {
@@ -2602,7 +2602,7 @@ public void setEmissive(int index, int emissive) {
26022602

26032603
@Override
26042604
public float getShininess(int index) {
2605-
if (family == GROUP) {
2605+
if (family != GROUP) {
26062606
if (root.tessUpdate) {
26072607
return tessGeo.polyShininess[firstPolyVertex + index];
26082608
} else {

0 commit comments

Comments
 (0)