GDK SceneComposer :
- The colorAll option for highlightAxisMarker will now highlight only all quads (without axis)
This commit is contained in:
parent
0d95422d53
commit
fc8cebe17d
@ -57,7 +57,7 @@ public abstract class SceneEditTool {
|
|||||||
protected Node axisMarker;
|
protected Node axisMarker;
|
||||||
protected Material redMat, blueMat, greenMat, yellowMat, cyanMat, magentaMat, orangeMat;
|
protected Material redMat, blueMat, greenMat, yellowMat, cyanMat, magentaMat, orangeMat;
|
||||||
protected Geometry quadXY, quadXZ, quadYZ;
|
protected Geometry quadXY, quadXZ, quadYZ;
|
||||||
|
|
||||||
protected enum AxisMarkerPickType {
|
protected enum AxisMarkerPickType {
|
||||||
|
|
||||||
axisOnly, planeOnly, axisAndPlane
|
axisOnly, planeOnly, axisAndPlane
|
||||||
@ -371,16 +371,17 @@ public abstract class SceneEditTool {
|
|||||||
axisMarker.getChild("arrowY").setMaterial(orangeMat);
|
axisMarker.getChild("arrowY").setMaterial(orangeMat);
|
||||||
} else if (picked == ARROW_Z) {
|
} else if (picked == ARROW_Z) {
|
||||||
axisMarker.getChild("arrowZ").setMaterial(orangeMat);
|
axisMarker.getChild("arrowZ").setMaterial(orangeMat);
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (picked == QUAD_XY || colorAll) {
|
if (picked == QUAD_XY || colorAll) {
|
||||||
axisMarker.getChild("quadXY").setMaterial(orangeMat);
|
axisMarker.getChild("quadXY").setMaterial(orangeMat);
|
||||||
}
|
}
|
||||||
if (picked == QUAD_XZ || colorAll) {
|
if (picked == QUAD_XZ || colorAll) {
|
||||||
axisMarker.getChild("quadXZ").setMaterial(orangeMat);
|
axisMarker.getChild("quadXZ").setMaterial(orangeMat);
|
||||||
}
|
}
|
||||||
if (picked == QUAD_YZ || colorAll) {
|
if (picked == QUAD_YZ || colorAll) {
|
||||||
axisMarker.getChild("quadYZ").setMaterial(orangeMat);
|
axisMarker.getChild("quadYZ").setMaterial(orangeMat);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user