Refactor PostProcessEffect to support C++ scripting
This commit is contained in:
@@ -20,21 +20,18 @@ namespace FlaxEditor.Tools.Foliage
|
||||
public EditFoliageGizmoMode GizmoMode;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool CanRender
|
||||
public override bool CanRender()
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!HasDataReady)
|
||||
return false;
|
||||
if (!HasDataReady)
|
||||
return false;
|
||||
|
||||
var foliage = GizmoMode.SelectedFoliage;
|
||||
if (!foliage)
|
||||
return false;
|
||||
var instanceIndex = GizmoMode.SelectedInstanceIndex;
|
||||
if (instanceIndex < 0 || instanceIndex >= foliage.InstancesCount)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
var foliage = GizmoMode.SelectedFoliage;
|
||||
if (!foliage)
|
||||
return false;
|
||||
var instanceIndex = GizmoMode.SelectedInstanceIndex;
|
||||
if (instanceIndex < 0 || instanceIndex >= foliage.InstancesCount)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user