Campbell Barton
c27926896f
spaces -> tabs (whitespace only changes)
2011-10-06 22:04:01 +00:00
Campbell Barton
9d13224e1a
fix [ #28807 ] Drivers breaking by undo
2011-10-05 07:28:59 +00:00
Campbell Barton
f7737153e6
filter RNA classes for translation (removes over 1300 lines from messages.txt)
...
- omit operators tagged as INTERNAL
- omit classes for internal use: Event, Context, Property, Function, Window.
2011-10-05 03:39:22 +00:00
Campbell Barton
3b8de8db31
rename rna OperatorTypeMacro --> OperatorMacro, since operators types are just called Operator
2011-10-05 00:19:33 +00:00
Campbell Barton
acac22f3f2
enable cmake building makesdna with ghash
2011-10-02 12:34:41 +00:00
Campbell Barton
a1d647e92c
remove some redundant checks and compiler warnings.
2011-10-02 12:21:24 +00:00
Campbell Barton
9a88524f68
support for object data material assignment in python
...
eg:
bpy.context.object.data.materials[0] = bpy.data.materials["SomeMaterial"]
2011-10-01 17:54:33 +00:00
Campbell Barton
975c4e7177
fix for msvc, I thought this was only needed for mingw.
2011-10-01 15:54:36 +00:00
Campbell Barton
7b398f271e
fix for mingw
2011-10-01 15:02:55 +00:00
Campbell Barton
265c113820
fix for crash generating messages.txt, I wasn't getting this crash because I had 'WITH_PYTHON_SAFETY' enabled which was using different iterators (which dont crash), now there on by default.
...
made headless and no-python configurations work again and added --factory-startup to doc building command.
2011-09-30 07:47:45 +00:00
Campbell Barton
bfbfe16570
take 2 at fixing the crash...
2011-09-29 09:29:46 +00:00
Campbell Barton
e5078f196f
Attempt to fix error reported by yafaray devs from my commit r40660
2011-09-29 09:19:15 +00:00
Campbell Barton
b88776ba5a
fix for crash with demo mode addon, modal operator loading a blend file would free all window data which was then accessed, causing a crash.
2011-09-28 15:42:55 +00:00
Campbell Barton
5e3110af05
add support for a 4th item for rna property enums in python so the numeric value can be passed, this is so you can animate the enum and keep the values even if you add items in the middle of the enum. - request from ZanQdo.
2011-09-28 09:18:20 +00:00
Campbell Barton
018fa1540e
whitespace edits, make formatting for functions consustent at least within the file.
2011-09-28 05:53:40 +00:00
Campbell Barton
aaae90af33
fix [ #28751 ] Item in Enum propertie is grayed out
...
was infact a very old bug where an empty title took the following word for the title, eg: "%t|First Item|Second Item"
the first item would be evaluated as a title.
2011-09-27 16:23:40 +00:00
Campbell Barton
768806adc0
bpy.app.handlers.frame_change_pre/post handlers.
2011-09-27 10:43:45 +00:00
Campbell Barton
928e2784c6
py api
...
- use Py_ssize_t when dealing with python sequence sizes
- dont call PySequence_Size(py_b) in a loop (its slow).
- use faster sequence/float parsing in aud.Factory.filter
2011-09-27 05:28:06 +00:00
Campbell Barton
d98bcb8a77
fix for py/rna api bug:
...
PyC_UnicodeAsByte(), used for getting python strings as bytes wasnt clearning utf-8 conversion errors.
this would raise an error when getting an operators filepath.
2011-09-27 04:07:48 +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
573ed73be8
change define INTERNATIONAL --> WITH_INTERNATIONAL
...
also rename backface_culling --> use_backface_culling (which is used elsewhere in rna)
2011-09-26 10:35:47 +00:00
Tamito Kajiyama
c0c488d0b2
Merged changes in the trunk up to revision 40520.
2011-09-24 21:39:11 +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
Sergey Sharybin
ad1d1bd818
Added misses INTERNATIONAL definition in scons rules.
2011-09-21 18:05:01 +00:00
Campbell Barton
280684c35d
remove blf.gettext, add blf.unload(font)
2011-09-21 16:06:47 +00:00
Campbell Barton
943a026c60
py/rna string subtypes for strings which should be automatically translated:
...
layout.prop("blah", text="Translate Me!")
2011-09-21 13:53:35 +00:00
Tamito Kajiyama
9c42afb1c0
Merged changes in the trunk up to revision 40413.
...
Conflicts resolved:
source/blender/makesrna/intern/rna_scene.c
2011-09-20 21:22:15 +00:00
Brecht Van Lommel
a2c6db0b44
Cycles: svn merge -r40358:40411 ^/trunk/blender
2011-09-20 18:48:28 +00:00
Campbell Barton
8cf8fd7326
- translation scripts now run with py3.x
...
- added convenience make target 'make translations'
- some MEM_malloc strings were not unique enough, expanded them.
2011-09-20 17:07:33 +00:00
Guillermo S. Romero
73bb1be1b7
SVN maintenance.
2011-09-20 15:30:18 +00:00
Campbell Barton
da88486c0b
2011-09-20 15:17:24 +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
f0aac81466
Improved Internationalization and Localization
...
==============================================
Commiting GSoC project by Xiangquan Xiao trunk.
Applied as separated patch, because svn merge produces to much false
conflicts and worked really slow.
Details for usage would be published on code.blender.org soon.
Thanks to Xiao for implementation of project, Campbell to code review,
Dalai and Gez for pointing to nice font and everybody else who took
part in improving i18n support.
2011-09-20 13:41:43 +00:00
Campbell Barton
1657cbe61a
fix [ #28672 ] Blender segfault after exiting a game that was opened with
...
autoplay on (Blender, not blenderplayer)
blender now stops the sound system and free's its self on Pythons
sys.exit().
2011-09-20 12:22:19 +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
05683f8e52
edits to argument parsing for Euler.rotate_axis, also corrected some exception messages and minor style edits.
2011-09-19 15:13:16 +00:00
Sergey Sharybin
706a2c80f0
i18n: code cleanup and fixing unneeded translation (when partial translation is used only)
2011-09-19 15:10:38 +00:00
Campbell Barton
0f5d3a3ddb
add back mathutils Matrix() * Vector(), this is row_vector multiplication.
...
some minor changes to exception messages.
2011-09-19 14:29:21 +00:00
Brecht Van Lommel
153e4cad4b
Cycles: svn merge -r40266:40358 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-09-19 14:20:15 +00:00
Campbell Barton
9d3b1f708f
Move function out of mathutils to: BLI_math_rotation --- single_axis_angle_to_mat3(mat3, axis, angle), copied out from mathutils, axis arg is a char 'X/Y/Z' rather then a vector like axis_angle_to_mat3().
2011-09-19 13:08:01 +00:00
Campbell Barton
9478167493
remove Buffer.list, deprecated before 2.59 release.
2011-09-19 11:55:45 +00:00
Sergey Sharybin
1c0bdad835
svn merge -r40222:40344 ^/trunk/blender
2011-09-19 10:48:15 +00:00
Tamito Kajiyama
70821c6b24
Merged changes in the trunk up to revision 40299.
2011-09-17 18:54:16 +00:00
Brecht Van Lommel
f4a9215d7c
Cycles: svn merge -r39870:r40266 https://svn.blender.org/svnroot/bf-blender/trunk/blender
...
Merging the node changes required a lot of conflict resolution, fixed the
issues I could find but if you want stability you might want to wait a bit
before updating.
2011-09-17 13:28:40 +00:00
Campbell Barton
2222f536f8
use replace 0 with NULL for pointers, set some functions static
...
also fixed own errors in recent static check commit.
2011-09-16 08:20:21 +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