Skip to content

Commit 8f92dcd

Browse files
changed migrationhandler to support property name change, also added setting of dirty flag - else serialization stomps over our code change
1 parent 91b44e5 commit 8f92dcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/MixedRealityToolkit.SDK/Experimental/Features/Utilities/Migration/BoundsControlMigrationHandler.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,11 @@ private void MigrateAppBar(BoundingBox boundingBox, BoundsControl boundsControl)
288288
for (int i = 0; i < appBars.Length; ++i)
289289
{
290290
AppBar appBar = appBars[i];
291-
if (appBar.BoundingBox == boundingBox)
291+
if (appBar.Target == boundingBox)
292292
{
293293
Undo.RecordObject(appBar, "BoundsControl migration: changed target of app bar.");
294-
appBar.BoundingBox = boundsControl;
294+
appBar.Target = boundsControl;
295+
EditorUtility.SetDirty(appBar);
295296
}
296297
}
297298
}

0 commit comments

Comments
 (0)