Refactor engine to support double-precision vectors
This commit is contained in:
@@ -86,7 +86,7 @@ namespace FlaxEditor.Tools.Terrain
|
||||
// Chunk Properties
|
||||
_chunkProperties = new Panel(ScrollBars.None)
|
||||
{
|
||||
Location = new Vector2(_selectionInfoLabel.X, _selectionInfoLabel.Bottom + 4),
|
||||
Location = new Float2(_selectionInfoLabel.X, _selectionInfoLabel.Bottom + 4),
|
||||
Parent = panel,
|
||||
};
|
||||
var chunkOverrideMaterialLabel = new Label(0, 0, 90, 64)
|
||||
@@ -95,13 +95,13 @@ namespace FlaxEditor.Tools.Terrain
|
||||
Text = "Override Material",
|
||||
Parent = _chunkProperties,
|
||||
};
|
||||
_chunkOverrideMaterial = new AssetPicker(new ScriptType(typeof(MaterialBase)), new Vector2(chunkOverrideMaterialLabel.Right + 4, 0))
|
||||
_chunkOverrideMaterial = new AssetPicker(new ScriptType(typeof(MaterialBase)), new Float2(chunkOverrideMaterialLabel.Right + 4, 0))
|
||||
{
|
||||
Width = 300.0f,
|
||||
Parent = _chunkProperties,
|
||||
};
|
||||
_chunkOverrideMaterial.SelectedItemChanged += OnSelectedChunkOverrideMaterialChanged;
|
||||
_chunkProperties.Size = new Vector2(_chunkOverrideMaterial.Right + 4, _chunkOverrideMaterial.Bottom + 4);
|
||||
_chunkProperties.Size = new Float2(_chunkOverrideMaterial.Right + 4, _chunkOverrideMaterial.Bottom + 4);
|
||||
|
||||
// Delete patch
|
||||
_deletePatchButton = new Button(_selectionInfoLabel.X, _selectionInfoLabel.Bottom + 4)
|
||||
|
||||
Reference in New Issue
Block a user