Page Menu
Home
Search
Configure Global Search
Log In
Files
F12685
better_split.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Lorenzo Tozzi (oni_niubbo)
Nov 13 2013, 2:36 PM
Size
748 B
Subscribers
None
better_split.diff
View Options
diff --git a/blender/source/blender/blenkernel/intern/unit.c b/blender/source/blender/blenkernel/intern/unit.c
index 133f858..78337c2 100644
--- a/blender/source/blender/blenkernel/intern/unit.c
+++ b/blender/source/blender/blenkernel/intern/unit.c
@@ -31,6 +31,8 @@
#include "BLI_winstuff.h"
+#include "BKE_utildefines.h"
+
#define TEMP_STR_SIZE 256
#define SEP_CHR '#'
@@ -256,8 +258,9 @@ void bUnit_AsString(char *str, int len_max, double value, int prec, int system,
if(usys==NULL || usys->units[0].name==NULL)
usys= &buDummyCollecton;
-
- if(split) {
+
+ /* split output makes sense only for length, mass and time */
+ if(split && ELEM3(type, 1, 4, 6)) {
int i;
bUnitDef *unit_a, *unit_b;
double value_a, value_b;
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
60/90/558183c43e085a8c1351825dc395
Event Timeline
Log In to Comment