@@ -536,7 +536,7 @@ namespace FlaxEditor.CustomEditors
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void ClearReferenceValueAll()
|
public void ClearReferenceValueAll()
|
||||||
{
|
{
|
||||||
Values.ClearReferenceValue();
|
Values?.ClearReferenceValue();
|
||||||
|
|
||||||
for (int i = 0; i < ChildrenEditors.Count; i++)
|
for (int i = 0; i < ChildrenEditors.Count; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
|
|||||||
//Presenter.BuildLayoutOnUpdate();
|
//Presenter.BuildLayoutOnUpdate();
|
||||||
|
|
||||||
// Better way is to just update the reference value using the new default instance of the prefab, created after changes apply
|
// Better way is to just update the reference value using the new default instance of the prefab, created after changes apply
|
||||||
if (prefab && !prefab.WaitForLoaded())
|
if (Values != null && prefab && !prefab.WaitForLoaded())
|
||||||
{
|
{
|
||||||
var actor = (Actor)Values[0];
|
var actor = (Actor)Values[0];
|
||||||
var prefabObjectId = actor.PrefabObjectID;
|
var prefabObjectId = actor.PrefabObjectID;
|
||||||
|
|||||||
Reference in New Issue
Block a user