mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user