protected override bool DrawWizardGUI()
{
EditorGUI.BeginChangeCheck();
bool allowSceneObjects = !EditorUtility.IsPersistent(base.m_Terrain.terrainData);
this.m_Tree = (GameObject) EditorGUILayout.ObjectField("Tree Prefab", this.m_Tree, typeof(GameObject), allowSceneObjects, new GUILayoutOption[0]);
if (!TerrainEditorUtility.IsLODTreePrototype(this.m_Tree))
{
this.m_BendFactor = EditorGUILayout.FloatField("Bend Factor", this.m_BendFactor, new GUILayoutOption[0]);
}
bool flag2 = EditorGUI.EndChangeCheck();
if (flag2)
{
this.m_IsValidTree = IsValidTree(this.m_Tree, this.m_PrototypeIndex, base.m_Terrain);
}
return flag2;
}