Skip to content

Commit

Permalink
moved Aardvark.Data.Opc QTree to old Aardvark.SceneGraph.Opc namespac…
Browse files Browse the repository at this point in the history
…e to prevent deserialization issues in legacy data. This seems controversial but a good tradeoff, trust me.
  • Loading branch information
haraldsteinlechner committed Oct 3, 2024
1 parent e931446 commit 11aa174
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Aardvark.Data.Opc/PatchFileInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,18 @@ module PatchFileInfo =
let doc = Prinziple.readXmlDoc path
ofXDoc doc patchName true

namespace Aardvark.SceneGraph.Opc

// in the old namespace to enable deserialization in (pickler) caches without hurdles.
[<RequireQualifiedAccess>]
type QTree<'T> =
| Node of 'T * QTree<'T>[]
| Leaf of 'T

namespace Aardvark.Data.Opc

open Aardvark.SceneGraph.Opc

[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module QTree =
let rec map (f : 'T -> 'U) (tree : QTree<'T>) =
Expand Down

0 comments on commit 11aa174

Please sign in to comment.