public NPVoxFrame(NPVoxAnimation animation) { this.animation = animation; output = (NPVoxMeshOutput)animation.MeshFactory.Clone(); output.hideFlags = HideFlags.HideInHierarchy; // Debug.Log("invalidating"); #if UNITY_EDITOR AssetDatabase.AddObjectToAsset(output, AssetDatabase.GetAssetPath(animation)); preOutput = (NPVoxModelForwarder)NPVoxModelForwarder.CreateInstance <NPVoxModelForwarder>(); NPipelineUtils.CreateAttachedPipe(AssetDatabase.GetAssetPath(animation), preOutput); preOutput.Input = null; #endif output.Input = preOutput; output.Invalidate(); preOutput.Invalidate(); }
public void InvalidateFromStep(int num) // 0 = source, 1 = transform 1 etc ... { // Debug.Log("invalidatefromstep : " + num + " l: " + transformers.Length); for (int i = num; i <= transformers.Length; i++) { if (i == 0) { if (Source != null) { Source.Invalidate(); } } else { Transformers[i - 1].Invalidate(); } } preOutput.Invalidate(); output.Invalidate(); }