Currently when you try to convert a Text-object to Grease pencil from the Object-menu or via the operator in some other way, the Text-object is only converted to a Curve.
This patch converts that curve to a Grease pencil-object and deletes the curve.
Details
Details
- Reviewers
Antonio Vazquez (antoniov) - Group Reviewers
Grease Pencil - Commits
- rB41820e8a8e70: GPencil: Add "Convert Text to Gpencil"
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
I have tested and crash... to make it works, it is required to delete the line ED_object_base_free_and_unlink(bmain, scene, newob); (2917 & 2918)
Could you update the patch?
| source/blender/editors/object/object_add.c | ||
|---|---|---|
| 2918 | You must not delete the object here. | |
Comment Actions
Ok, I suspected that but had no crash so I thought it was ok. No sorry I don't think I can update it. I have absolutely no idea how to get rid of that curve if it's not deletable in there (when keep_original is enabled).
Comment Actions
The curve is deleted below automatically...try without that line and you will see in the outliner (Data API mode) that curve has gone after conversion.
Comment Actions
these lines do the job:
/* Remove curves and meshes converted to Grease Pencil object. */
if (gpencilConverted) {
FOREACH_SCENE_OBJECT_BEGIN (scene, ob_delete) {
if (ELEM(ob_delete->type, OB_CURVE, OB_MESH)) {
if (ob_delete->flag & OB_DONE) {
ED_object_base_free_and_unlink(bmain, scene, ob_delete);
}
}
}
FOREACH_SCENE_OBJECT_END;
}Comment Actions
You need to enable keep_original to see the problem.
Maybe if (keep_original) before the delete line fixes it. (edit: no it doesn't)