Fixed ifc text annotation preview not showing during edit #3159

Error was:

```
Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\drawing\decoration.py", line 1899, in __call__
    decorator.decorate(context, obj)
  File "\scripts\addons\blenderbim\bim\module\drawing\decoration.py", line 1451, in decorate
    self.draw_text(context, obj)
  File "\scripts\addons\blenderbim\bim\module\drawing\decoration.py", line 540, in draw_text
    symbol = text_data["Symbol"]
KeyError: 'Symbol'
```
This commit is contained in:
Andrej730
2023-05-16 16:53:38 +05:00
parent 0ef6ea6bd4
commit 273cdc6ea8
@@ -535,7 +535,9 @@ class BaseDecorator:
pos = location_3d_to_region_2d(region, region3d, text_world_position)
props = obj.BIMTextProperties
text_data = props.get_text_edited_data() if props.is_editing else DecoratorData.get_ifc_text_data(obj)
text_data = DecoratorData.get_ifc_text_data(obj)
if props.is_editing:
text_data = text_data | props.get_text_edited_data()
literals_data = text_data["Literals"]
symbol = text_data["Symbol"]
text_scale = 1.0