Use actual text position instead of local pos rendering drawings text decorations

E.g. it's important if text is part of parametric array and it's local position may be constant, but it's constrainet by parent's position.
This commit is contained in:
Andrej730
2025-04-29 19:26:39 +05:00
parent 3fbde8db28
commit 34cafc761a
@@ -590,7 +590,7 @@ class BaseDecorator:
"""if `text_world_position` is not provided, the object's location will be used"""
if not text_world_position:
text_world_position = obj.location
text_world_position = obj.matrix_world.translation
region = context.region
region3d = context.region_data