From b82e8177164b27e6c076249a93ed38f0e1e7e2bd Mon Sep 17 00:00:00 2001 From: Chris Mackey Date: Fri, 17 Nov 2023 09:35:06 -0800 Subject: [PATCH] fix(extensionutil): Ensure that ShadeMesh extension properties are added --- honeybee/dictutil.py | 2 +- honeybee/extensionutil.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/honeybee/dictutil.py b/honeybee/dictutil.py index f3009a27..e2f01645 100644 --- a/honeybee/dictutil.py +++ b/honeybee/dictutil.py @@ -23,7 +23,7 @@ def dict_to_object(honeybee_dict, raise_exception=True): Args: honeybee_dict: A dictionary of any Honeybee object. Note that this should be a non-abridged dictionary to be valid. - raise_exception: Boolean to note whether an excpetion should be raised + raise_exception: Boolean to note whether an exception should be raised if the object is not identified as a part of honeybee. Default: True. diff --git a/honeybee/extensionutil.py b/honeybee/extensionutil.py index 5f25d962..1f075b8b 100644 --- a/honeybee/extensionutil.py +++ b/honeybee/extensionutil.py @@ -24,7 +24,7 @@ def model_extension_dicts(data, extension_key, room_ext_dicts, face_ext_dicts, align with the serialized model.faces. - shade_ext_dicts: A list of Shade extension property dictionaries that - align with the serialized model.shades. + align with the serialized model.shades plus the model.shade_meshes. - aperture_ext_dicts: A list of Aperture extension property dictionaries that align with the serialized model.apertures. @@ -52,6 +52,8 @@ def model_extension_dicts(data, extension_key, room_ext_dicts, face_ext_dicts, shade_ext_dicts) if 'orphaned_shades' in data and data['orphaned_shades'] is not None: shade_extension_dicts(data['orphaned_shades'], extension_key, shade_ext_dicts) + if 'shade_meshes' in data and data['shade_meshes'] is not None: + shade_extension_dicts(data['shade_meshes'], extension_key, shade_ext_dicts) return room_ext_dicts, face_ext_dicts, shade_ext_dicts, \ aperture_ext_dicts, door_ext_dicts