Fix crashes in vector editors in rare cases
This commit is contained in:
@@ -69,7 +69,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding;
|
||||
@@ -158,7 +158,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding;
|
||||
@@ -247,7 +247,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding;
|
||||
|
||||
@@ -143,7 +143,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var xValue = XElement.ValueBox.Value;
|
||||
@@ -318,7 +318,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding || ZElement.IsSliding;
|
||||
@@ -418,7 +418,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding || ZElement.IsSliding;
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding || ZElement.IsSliding || WElement.IsSliding;
|
||||
@@ -200,7 +200,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding || ZElement.IsSliding || WElement.IsSliding;
|
||||
@@ -311,7 +311,7 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
|
||||
private void OnValueChanged()
|
||||
{
|
||||
if (IsSetBlocked)
|
||||
if (IsSetBlocked || Values == null)
|
||||
return;
|
||||
|
||||
var isSliding = XElement.IsSliding || YElement.IsSliding || ZElement.IsSliding || WElement.IsSliding;
|
||||
|
||||
Reference in New Issue
Block a user