Fixing bug with changing text size #3159

Bug appeared after 046940f but it was there before - it was just kind of compensated by the other bug.
Because of that bug blender text size value was reupdated before saving it to pset therefore pset never received a new value.

Also added some refactor, planned to write some test to get this error covered.
This commit is contained in:
Andrej730
2023-05-16 17:05:12 +05:00
parent 87dba7c066
commit ae0ae76ee6
5 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -36,8 +36,8 @@ class TestDisableEditingText:
class TestEditText:
def test_run(self, ifc, drawing):
drawing.synchronise_ifc_and_text_attributes("obj").should_be_called()
drawing.update_text_value("obj").should_be_called()
drawing.update_text_size_pset("obj").should_be_called()
drawing.update_text_value("obj").should_be_called()
drawing.disable_editing_text("obj").should_be_called()
subject.edit_text(drawing, obj="obj")