瀏覽代碼

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 {