Campbell Barton
effea8c29b
svn merge ^/trunk/blender -r40511:40587
2011-09-27 03:12:31 +00:00
Campbell Barton
58587a3881
replace strncpy with BLI_strncpy, in some cases strncpy was being misused since it doesnt ensure \0 termination.
...
also dont call CTX_data_scene() twice when checking for function arguments.
2011-09-26 18:51:10 +00:00
Campbell Barton
9494340dae
svn merge ^/trunk/blender -r40432:40491
2011-09-23 13:04:01 +00:00
Campbell Barton
161c3861bc
svn merge ^/trunk/blender -r40395:40405
2011-09-23 10:58:20 +00:00
Campbell Barton
460cde345b
svn merge ^/trunk/blender -r40394:40395
2011-09-23 10:43:25 +00:00
Campbell Barton
0bc5fef976
correct fix for armature selection, also remove international define from generic python C funcs.
2011-09-22 02:33:58 +00:00
Campbell Barton
14475d07cd
svn merge -r40295:40367 ^/trunk/blender
2011-09-21 17:15:54 +00:00
Campbell Barton
280684c35d
remove blf.gettext, add blf.unload(font)
2011-09-21 16:06:47 +00:00
Campbell Barton
f5bb22d088
have blf.gettext even when internationalization is disabled (just passes through).
2011-09-20 15:11:17 +00:00
Sergey Sharybin
bba54a051a
i18n: fake_gettext is no longer needed for python
2011-09-20 08:38:16 +00:00
Sergey Sharybin
6d125e159d
i18n: code clean-up
...
- Move all translation-related declarations to BLF_translation.h
- Reverted some changes to match trunk svn rev40365
2011-09-20 07:39:25 +00:00
Campbell Barton
0e421f429a
modify the python gettext function to pass through the original string when no translation is done, this means the cached info such as byte representation and hash will be kept.
2011-09-20 02:25:57 +00:00
Sergey Sharybin
8dbc7a3ba3
Merging r40345 through r40365 from trunk into soc-2011-garlic
2011-09-19 15:47:05 +00:00
Campbell Barton
9478167493
remove Buffer.list, deprecated before 2.59 release.
2011-09-19 11:55:45 +00:00
Campbell Barton
1ff373ef5b
svn merge -r40166:40279 ^/trunk/blender
2011-09-17 04:59:14 +00:00
Sergey Sharybin
0eda51f2ea
Fixing issues with i18n stuff:
...
- Make gettext stuff draw-time. so switching between languages
can happens without restart now.
- Added option to translate visible interface (menus, buttons, labels)
and tooltips. Now it's possible to have english UI and localized tooltips.
- Clean-up sources, do not use gettext stuff for things which can be
collected with RNA.
- Fix issues with windows 64bit and ru_RU locale on my desktop
(it was codepage issue).
- Added operator "Get Messages" which generates new text block with
with all strings collected from RNA.
- Changed script for updating blender.pot so now it appends
messages collected from rna to automatically gathered messages.
To update .pot you have to re-generate messages.txt using "Get Messages"
operator and then run update_pot script.
- Clean up old translation stuff which wasn't used and most probably
wouldn't be used.
- Return back "International Fonts" option, so if it's disabled, no
gettext lookups happens on draw.
- Merged read_homefile function back. No need in splitting it.
TODO:
- Custom fonts and font size.
Current font isn't nice at least for russian locale, it's
difficult to read it.
- Put references to messages.txt so gettext can merge translation when
name/description of some property changes.
2011-09-15 13:20:18 +00:00
Sergey Sharybin
30293dc2ca
svn merge -r39834:40222 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-15 13:02:37 +00:00
Campbell Barton
264c63ef03
New C/Py api utility function PyC_Err_Format_Prefix() which raises an error with the existing error as a suffix.
...
Use this to raise errors when assigning a string property fails even though the value to assign *is* a string.
Before:
TypeError: bpy_struct: item.attr= val: Object.name expected a string type, not str
After:
TypeError: bpy_struct: item.attr= val: Object.name error assigning string, UnicodeEncodeError('utf-8' codec can't encode character '\udce9' in position 23: surrogates not allowed)
2011-09-15 10:43:55 +00:00
Campbell Barton
61b6fcd804
svn merge -r39991:40034 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-08 08:29:49 +00:00
Campbell Barton
5a900be4d6
attempt to have a threadsafe version of PyC_ExceptionBuffer didnt work with UI script errors, reverting r39886.
2011-09-08 02:14:24 +00:00
Campbell Barton
a167ee1262
svn merge -r39951:39986 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-07 00:46:11 +00:00
Campbell Barton
9161d3ce4b
use Py_ssize_t rather than int when dealing with list sizes (original patch from Fedora but applied changes elsewhere too), also replace PyList_Size with PyList_GET_SIZE where typechecking is already done.
2011-09-06 23:46:20 +00:00
Campbell Barton
58227c1016
svn merge -r39878:39890 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-03 12:57:33 +00:00
Campbell Barton
8cc307b4f2
PyC_ExceptionBuffer is now threadsafe, used for converting exceptions into reports.
2011-09-03 06:46:31 +00:00
Campbell Barton
8e232af37c
svn merge -r39831:39877 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-03 02:49:21 +00:00
Xiao Xiangquan
981f7fcd0d
merge with trunk r39834
2011-09-01 15:08:32 +00:00
Campbell Barton
00143a3d55
spaces -> tabs (configure you're editors right!)
2011-09-01 01:48:50 +00:00
Xiao Xiangquan
5b91a783cf
fix for windows locale setting
2011-08-31 07:31:02 +00:00
Campbell Barton
fd4575b2e3
svn merge -r39493:39664 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-24 02:29:45 +00:00
Campbell Barton
f8ec017900
floats were being promoted to doubles in quite a few cases (using gcc's -Wdouble-promotion), went over render module and use float constants, gives small but consistent speedup - approx 3%.
2011-08-20 17:39:13 +00:00
Xiao Xiangquan
3a8c7be9e4
code clear, insert blf_gettext.c to blf.c
2011-08-12 13:43:21 +00:00
Xiao Xiangquan
287b24926f
merge with trunk r38787
2011-07-29 17:42:53 +00:00
Campbell Barton
fc95382a97
svn merge -r38400:38500 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 03:55:23 +00:00
Campbell Barton
ac2dd40991
svn merge -r38300:38400 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-26 03:14:16 +00:00
Campbell Barton
794f3291fe
svn merge -r38200:38300 https://svn.blender.org/svnroot/bf-blender/trunk/blender , source/blender/gpu/intern/gpu_buffers.c updated from trunk and re-made edits to use getTessFace* functions.
2011-07-26 03:00:55 +00:00
Campbell Barton
cadfac5a0f
svn merge -r38000:38200 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 17:51:30 +00:00
Campbell Barton
6199276053
svn merge -r37800:37900 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-25 14:54:29 +00:00
Campbell Barton
a7815053ef
svn merge -r37600:37700 https://svn.blender.org/svnroot/bf-blender/trunk/blender
...
manually merged source/blender/editors/uvedit/uvedit_unwrap_ops.c
2011-07-25 12:59:54 +00:00
Campbell Barton
b709b52f46
svn merge -r37500:37600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-24 13:21:54 +00:00
Campbell Barton
35ce13562d
script to report deprecated functions of text and their age in days.
2011-07-18 09:49:26 +00:00
Campbell Barton
7f850ff25d
'bgl' python module.
...
- add back slicing for buffers, (was previously in 2.4x but not working in py3):
buf = bgl.Buffer(...)
ls = buf[:]
- fix for crash with negative index access not being clamped.
- improve repr() function for multi dimensional buffers.
- add back 'list' attribute, but print deprecation warning.
2011-07-17 12:30:23 +00:00
Campbell Barton
5792bd7cc7
cmake: cleanup include paths, some duplicates and going up some unneeded dirs.
2011-07-17 09:11:13 +00:00
Campbell Barton
3a6158a8bf
move mathutils into its own lib.
2011-07-15 04:01:47 +00:00
Xiao Xiangquan
fa46278e34
merge from trunk 38379
2011-07-14 17:29:53 +00:00
Campbell Barton
b028cba0e4
many mathutils exception types were wrong, went over all exceptions in mathutils and double checked the're correct.
2011-07-14 09:54:03 +00:00
Nathan Letwory
f70f167237
Shuffle code so it compiles with MSVC too. (Array of unknown size otherwise).
2011-07-14 08:20:19 +00:00
Campbell Barton
4da4943b5c
formatting changes for python mathutils module.
2011-07-14 01:25:05 +00:00
Campbell Barton
0a46f9a737
rename bgl.Buffer attribute list to a method, to_list() as used for IDProps, also made repr function nicer.
2011-07-13 23:45:47 +00:00
Campbell Barton
aef6f15b49
minor changes to bgl.Buffer py class
...
- use getset rather then getattr
- remove verbose Buffer docstring, better use sphinx docs for this
- replace bge.Buffer with the Buffer class and add a __new__ function to the class so it can be called.
- improve error messages
2011-07-13 23:24:21 +00:00
Campbell Barton
d5984b2d50
fix [ #27683 ] Blender hangs when baking a particle system when a driver is present
2011-07-09 17:41:39 +00:00