Explorar o código

Skin: fix joints sometimes out of sync because of culling

trethaller %!s(int64=4) %!d(string=hai) anos
pai
achega
7f9cad8e35
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      h3d/scene/Skin.hx

+ 1 - 0
h3d/scene/Skin.hx

@@ -246,6 +246,7 @@ class Skin extends MultiMaterial {
 	}
 
 	override function emit( ctx : RenderContext ) {
+		syncJoints(); // In case sync was not called because of culling (eg fixedPosition)
 		if( splitPalette == null )
 			super.emit(ctx);
 		else {