Fix errors in Editor when editing particle emitter if effect that uses it is selected

This commit is contained in:
Wojtek Figat
2022-07-24 11:55:00 +02:00
parent 74e3d1ad8f
commit 2dfd676c5e
3 changed files with 32 additions and 11 deletions

View File

@@ -241,7 +241,7 @@ namespace FlaxEngine.GUI
/// Opens the group.
/// </summary>
/// <param name="animate">Enable/disable animation feature.</param>
public void Open(bool animate = true)
public void Open(bool animate = false)
{
// Check if state will change
if (_isClosed)
@@ -265,7 +265,7 @@ namespace FlaxEngine.GUI
/// Closes the group.
/// </summary>
/// <param name="animate">Enable/disable animation feature.</param>
public void Close(bool animate = true)
public void Close(bool animate = false)
{
// Check if state will change
if (!_isClosed)
@@ -291,9 +291,9 @@ namespace FlaxEngine.GUI
public void Toggle()
{
if (_isClosed)
Open();
Open(true);
else
Close();
Close(true);
}
/// <inheritdoc />