Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/text.c
| Show First 20 Lines • Show All 517 Lines • ▼ Show 20 Lines | Text *BKE_text_load_ex(Main *bmain, const char *file, const char *relpath, const bool is_internal) | ||||
| text_from_buf(ta, buffer, buffer_len); | text_from_buf(ta, buffer, buffer_len); | ||||
| MEM_freeN(buffer); | MEM_freeN(buffer); | ||||
| return ta; | return ta; | ||||
| } | } | ||||
| /** Load a text file. | /** | ||||
| * Load a text file. | |||||
| * | * | ||||
| * \note Text data-blocks have no user by default, only the 'real user' flag. | * \note Text data-blocks have no user by default, only the 'real user' flag. | ||||
| */ | */ | ||||
| Text *BKE_text_load(Main *bmain, const char *file, const char *relpath) | Text *BKE_text_load(Main *bmain, const char *file, const char *relpath) | ||||
| { | { | ||||
| return BKE_text_load_ex(bmain, file, relpath, false); | return BKE_text_load_ex(bmain, file, relpath, false); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,967 Lines • Show Last 20 Lines | |||||