Update scaling setters.
This commit is contained in:
@@ -100,11 +100,11 @@ namespace FlaxEditor.Surface
|
|||||||
public CreateCustomNodeFunc Create;
|
public CreateCustomNodeFunc Create;
|
||||||
|
|
||||||
private Float2 _size;
|
private Float2 _size;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default initial size of the node.
|
/// Default initial size of the node.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Float2 Size {
|
public Float2 Size
|
||||||
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _size;
|
return _size;
|
||||||
@@ -112,7 +112,6 @@ namespace FlaxEditor.Surface
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
_size = VisjectSurface.RoundToGrid(value, true);
|
_size = VisjectSurface.RoundToGrid(value, true);
|
||||||
Debug.Log(_size.ToString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user