Преглед изворни кода

Skin: fix joints sometimes out of sync because of culling

trethaller пре 4 година
родитељ
комит
7f9cad8e35
1 измењених фајлова са 1 додато и 0 уклоњено
  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 {