Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-08-13 13:56:27 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-08-13 16:37:11 +0300
commit03bf84db86bc023cfad501b1b4764cecb6435422 (patch)
tree6745f3914466f745d104e937d46a94b5ef7fe9e5 /source/blender/makesdna/DNA_object_force_types.h
parent6f9cbbc8ec4f42131f46d3d25e7608112bcb7eab (diff)
Fix T66373: Strange translation text behaviour.
i18n code does not work from threads on some plaforms, so it is disabled in Blender when called from non-main thread. Means that we have to go to a slightly different approach, with dirty tag and generating string on request for UI. Note: Also had to update the `info` string size, to fit with expensive asiatic scripts in utf-8... Using mem for that kind of runtime data is not really nice, but for now it will have to do.
Diffstat (limited to 'source/blender/makesdna/DNA_object_force_types.h')
-rw-r--r--source/blender/makesdna/DNA_object_force_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_object_force_types.h b/source/blender/makesdna/DNA_object_force_types.h
index 2207e08558d..34a1b6d3e0b 100644
--- a/source/blender/makesdna/DNA_object_force_types.h
+++ b/source/blender/makesdna/DNA_object_force_types.h
@@ -271,7 +271,7 @@ typedef struct PointCache {
char name[64];
char prev_name[64];
- char info[64];
+ char info[128];
/** File path, 1024 = FILE_MAX. */
char path[1024];
@@ -497,6 +497,8 @@ typedef struct SoftBody {
#define PTCACHE_FAKE_SMOKE (1 << 12)
#define PTCACHE_IGNORE_CLEAR (1 << 13)
+#define PTCACHE_FLAG_INFO_DIRTY (1 << 14)
+
/* PTCACHE_OUTDATED + PTCACHE_FRAMES_SKIPPED */
#define PTCACHE_REDO_NEEDED 258