diff options
author | Matheus Santos <MatheusSantos> | 2022-04-07 07:32:21 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-07 08:17:04 +0300 |
commit | f49a736ff4023231483c7e535ca2a7f2869d641d (patch) | |
tree | 506407e67e86034329fed5c71c49435a29ec2b31 /tests/python/CMakeLists.txt | |
parent | 7cd6bda206800218da47ee35c53066a71d25ef22 (diff) |
Text Editor: Get/Set region text API
Add the ability to get/set the selected text.
**Calling the new methods:**
- `bpy.data.texts["Text"].region_as_string()`
- `bpy.data.texts["Text"].region_from_string("Replacement")`
Diffstat (limited to 'tests/python/CMakeLists.txt')
-rw-r--r-- | tests/python/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index fabac659555..a0b2e6207bf 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -116,6 +116,11 @@ add_blender_test( --python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_prop_array.py ) +add_blender_test( + script_pyapi_text + --python ${CMAKE_CURRENT_LIST_DIR}/bl_pyapi_text.py +) + # ------------------------------------------------------------------------------ # DATA MANAGEMENT TESTS |