[Bf-blender-cvs] [933c6b7d8a3] blender-v2.93-release: Fix "Text to Object" creating invisible object
Campbell Barton
noreply at git.blender.org
Mon Sep 6 09:40:34 CEST 2021
Commit: 933c6b7d8a337c7d78246523e6eaefe1daf72790
Author: Campbell Barton
Date: Thu Aug 26 12:59:22 2021 +1000
Branches: blender-v2.93-release
https://developer.blender.org/rB933c6b7d8a337c7d78246523e6eaefe1daf72790
Fix "Text to Object" creating invisible object
Newly created objects would not become visible until
another action forced a depsgraph update.
===================================================================
M source/blender/editors/curve/editfont.c
===================================================================
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c
index 80771df3572..99ec90a1410 100644
--- a/source/blender/editors/curve/editfont.c
+++ b/source/blender/editors/curve/editfont.c
@@ -59,6 +59,7 @@
#include "ED_curve.h"
#include "ED_object.h"
+#include "ED_outliner.h"
#include "ED_screen.h"
#include "ED_view3d.h"
@@ -714,6 +715,7 @@ static void txt_add_object(bContext *C,
void ED_text_to_object(bContext *C, const Text *text, const bool split_lines)
{
+ Main *bmain = CTX_data_main(C);
RegionView3D *rv3d = CTX_wm_region_view3d(C);
const TextLine *line;
float offset[3];
@@ -752,6 +754,9 @@ void ED_text_to_object(bContext *C, const Text *text, const bool split_lines)
txt_add_object(C, text->lines.first, BLI_listbase_count(&text->lines), offset);
}
+
+ DEG_relations_tag_update(bmain);
+ ED_outliner_select_sync_from_object_tag(C);
}
/** \} */
More information about the Bf-blender-cvs
mailing list