mirror of
				https://github.com/maxartz15/VertexAnimation.git
				synced 2025-11-04 10:25:44 +01:00 
			
		
		
		
	Refresh preview.
Refresh animation library preview.
This commit is contained in:
		@@ -31,6 +31,11 @@ namespace TAO.VertexAnimation.Editor
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		private void InfoGUI()
 | 
							private void InfoGUI()
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
 | 
								if (GUILayout.Button("Refresh Preview"))
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									library.OnValidate();
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			using (new EditorGUI.DisabledScope(disabled: true))
 | 
								using (new EditorGUI.DisabledScope(disabled: true))
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				EditorGUILayout.PropertyField(serializedObject.FindProperty("loadedAnimationsPreview"));
 | 
									EditorGUILayout.PropertyField(serializedObject.FindProperty("loadedAnimationsPreview"));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,7 +38,7 @@ namespace TAO.VertexAnimation
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		private void OnValidate()
 | 
							public void OnValidate()
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			Dictionary<string, VA_Animation> usedNames = new Dictionary<string, VA_Animation>();
 | 
								Dictionary<string, VA_Animation> usedNames = new Dictionary<string, VA_Animation>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user