From 5b449c1b6c9e8472e452f418da7cf49999919e90 Mon Sep 17 00:00:00 2001 From: Dan Allan Date: Tue, 17 Dec 2024 15:44:33 -0500 Subject: [PATCH] Make structure overridable. --- tiled/client/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tiled/client/base.py b/tiled/client/base.py index 01442f318..41fd4e4a2 100644 --- a/tiled/client/base.py +++ b/tiled/client/base.py @@ -273,6 +273,7 @@ def new_variation( self, structure_clients=UNCHANGED, include_data_sources=UNCHANGED, + structure=UNCHANGED, **kwargs, ): """ @@ -282,10 +283,12 @@ def new_variation( structure_clients = self.structure_clients if include_data_sources is UNCHANGED: include_data_sources = self._include_data_sources + if structure is UNCHANGED: + structure = self._structure return type(self)( self.context, item=self._item, - structure=self._structure, + structure=structure, structure_clients=structure_clients, include_data_sources=include_data_sources, **kwargs,