private void UpdatePaintMeshVisibility() { switch(_toolsInfo._paintMeshVisiblity) { case HEU_ToolsInfo.PaintMeshVisibility.AUTO: { if (_selectedAttributesStore != null) { if (_isPainting) { _selectedAttributesStore.ShowPaintMesh(); } else { _selectedAttributesStore.HidePaintMesh(); } } break; } case HEU_ToolsInfo.PaintMeshVisibility.SHOW: { if (_selectedAttributesStore != null) { _selectedAttributesStore.ShowPaintMesh(); } break; } case HEU_ToolsInfo.PaintMeshVisibility.HIDE: { if (_selectedAttributesStore != null) { _selectedAttributesStore.HidePaintMesh(); } break; } default: { break; } } }
private void PaintingStarted(SerializedProperty isPaintingProperty) { if (isPaintingProperty != null && !isPaintingProperty.boolValue) { isPaintingProperty.boolValue = true; _GUIChanged = true; // Hide asset geometry in order to show the paint object _asset.HideAllGeometry(); if (_selectedAttributesStore != null) { _selectedAttributesStore.ShowPaintMesh(); } } }