mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
goblins eyes fix
This commit is contained in:
parent
cd976fcf9c
commit
43a33599e8
@ -166,6 +166,12 @@
|
|||||||
this.state.apply (this.skeleton);
|
this.state.apply (this.skeleton);
|
||||||
this.skeleton.updateWorldTransform ();
|
this.skeleton.updateWorldTransform ();
|
||||||
|
|
||||||
|
this.traverse (function (object) {
|
||||||
|
if (object instanceof THREE.Mesh) {
|
||||||
|
object.visible = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var Z = 0;
|
var Z = 0;
|
||||||
var drawOrder = this.skeleton.drawOrder;
|
var drawOrder = this.skeleton.drawOrder;
|
||||||
for (var i = 0, n = drawOrder.length; i < n; i++) {
|
for (var i = 0, n = drawOrder.length; i < n; i++) {
|
||||||
@ -200,6 +206,8 @@
|
|||||||
|
|
||||||
if (mesh) {
|
if (mesh) {
|
||||||
geometry = mesh.geometry;
|
geometry = mesh.geometry;
|
||||||
|
|
||||||
|
mesh.visible = true;
|
||||||
} else {
|
} else {
|
||||||
geometry = new THREE.PlaneGeometry (
|
geometry = new THREE.PlaneGeometry (
|
||||||
attachment.regionOriginalWidth,
|
attachment.regionOriginalWidth,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user