blender.git
7 years agoCamera tracking integration
Sergey Sharybin [Sun, 30 Oct 2011 22:44:31 +0000 (22:44 +0000)]
Camera tracking integration
===========================

Fixed compilation error caused by some changes related on sensor height.

7 years agoCamera tracking integration
Sergey Sharybin [Sun, 30 Oct 2011 22:13:52 +0000 (22:13 +0000)]
Camera tracking integration
===========================

Update rest of places to reflect sensor height and fov mode.

7 years agoCamera tracking integration
Sergey Sharybin [Sun, 30 Oct 2011 14:11:16 +0000 (14:11 +0000)]
Camera tracking integration
===========================

Camera sensor size changes:
- Now blender camera has got vertical sensor size property
  and setting to control how FOV is getting calculated
  (depending on aspect ratio, using horizontal sensor size or
  vertical only).
- Made changes in game engine and uv project modifier as well
- Presets should be updated (don't have settings by hand right now
  and the internet in debalie is really fails this year)

7 years agoImprove the KLT tracking behaviour and UI
Keir Mierle [Sun, 30 Oct 2011 12:42:56 +0000 (12:42 +0000)]
Improve the KLT tracking behaviour and UI

- Remove the overly-conservative use of libmv's re-track tracker. The re-track
  tracker would take a normal tracker such as TRKLT or KLT or pyramid KLT, and
  track from frame 1 to 2, then back from the position found in 2 back to 1.
  Then, when the reverse-track doesn't match the original track with high
  precision, the track is considered "failed". This is a good approach for
  fully automatic reconstruction, but is too conservative for supervised
  tracking.

  The retrack-tracker will return when fully automatic tracking is added.

- Always solve for (dx, dy) in the TRKLT loop even if the linear system is
  ill-conditioned. The client (Blender in this case) can still use the solved
  position, even though it is less reliable.

- Expose the pyramid level setting to the tracking UI when in KLT tracking
  mode. While it was tempting to hide this detail from the user, in reality it
  does more harm than good, since the way tracking fails depends on the pyramid
  level. For now, exposing the pyramid details is a good compromise.

- Move the settings for the tracking algorithm, including search window,
  tracking algorithm, pyramid levels, etc, into the track object instead of a
  global movie clip object.

7 years agoCamera tracking integration
Sergey Sharybin [Sat, 29 Oct 2011 11:34:26 +0000 (11:34 +0000)]
Camera tracking integration
===========================

- Fixed jump when sliding movie clip with lock to selection enabled and nothing selected.
- Reset offset from locked position when adding new marker.

7 years agoCamera tracking integration
Sergey Sharybin [Sat, 29 Oct 2011 10:36:43 +0000 (10:36 +0000)]
Camera tracking integration
===========================

Fixed crash when trying to track from frame where there's no
keyframed markers to use for keyframed tracking
(i.e. when you've tracked forwards, then backwards and the forwards again).

7 years agoCamera tracing integration
Sergey Sharybin [Sat, 29 Oct 2011 09:46:53 +0000 (09:46 +0000)]
Camera tracing integration
==========================

Fix for SAD tracking sliding marker.

7 years agoCamera tracking integration
Sergey Sharybin [Sat, 29 Oct 2011 07:14:31 +0000 (07:14 +0000)]
Camera tracking integration
===========================

DeBalie commit (main changes only):

- Code cleanup
- Selectable tracking graph curves and curve knots
- Graph curve and curve knots can be deleted now
- Fixed wrong write when linking libraries
  (error is caused by hardcoded cound of linkable ID blocks)
- Fixed for KLT tracker when using keyframe adjustment

7 years agoCamera tracking integration
Sergey Sharybin [Thu, 27 Oct 2011 13:41:28 +0000 (13:41 +0000)]
Camera tracking integration
===========================

Fix for totally unworkable KLT tracker caused by recent codereview commit.
Float buffer for libmv should be calculated in exactly such way.

7 years agoCamera tracking integration
Sergey Sharybin [Wed, 26 Oct 2011 09:54:10 +0000 (09:54 +0000)]
Camera tracking integration
===========================

Other fixes for issues pointed by Brecht.

7 years agoCamera tracking integration
Sergey Sharybin [Tue, 25 Oct 2011 19:06:53 +0000 (19:06 +0000)]
Camera tracking integration
===========================

More fixes for reports from codereview.

7 years agoCamera tracking integration
Sergey Sharybin [Mon, 24 Oct 2011 16:41:28 +0000 (16:41 +0000)]
Camera tracking integration
===========================

Fixed issues pointed by Campbell in codereview.

7 years agoCamera tracking integration
Sergey Sharybin [Mon, 24 Oct 2011 15:25:02 +0000 (15:25 +0000)]
Camera tracking integration
===========================

- Fix compilation error when blenderplayer is enabled
- Fix for scene buttons error caused by property rename

7 years agoCamera tracking integration
Sergey Sharybin [Mon, 24 Oct 2011 15:24:53 +0000 (15:24 +0000)]
Camera tracking integration
===========================

Remove $Id$

7 years agoMerging trunk up to revision 41245.
Sergey Sharybin [Mon, 24 Oct 2011 14:52:04 +0000 (14:52 +0000)]
Merging trunk up to revision 41245.

7 years agofix [#28961] FCurves.range() returns wrong values for one-point curves (sic!)
Campbell Barton [Mon, 24 Oct 2011 12:26:14 +0000 (12:26 +0000)]
fix [#28961] FCurves.range() returns wrong values for one-point curves (sic!)
also fix for case where verts were treated as found but were infact not because none were selected.

7 years agoFix #28949: can't render video to Flash
Sergey Sharybin [Mon, 24 Oct 2011 10:26:37 +0000 (10:26 +0000)]
Fix #28949: can't render video to Flash

Several issues were discovered when was looking into this bug:

- MPEG file format didn't set needed codec settings such as frame
  rate and so, Was caused by not very correct fix fix #21351.
- "Expert" codec settings stored in idprops was affected on
  formats which don't actually need them causing some conflicts
  in codec settings.
- Flash codec doesn't support b-frames.

Now C presets shouldn't affect on each other and flash coded wouldn't
use b-frames even when using h264 format. Should work fine for files
created from scratch. If existing files fails to render, try to
switch file format to something else and then back to needed value.

7 years agofix for error utf8 printing input.
Campbell Barton [Mon, 24 Oct 2011 10:11:47 +0000 (10:11 +0000)]
fix for error utf8 printing input.

7 years agofix for crash when entering in non unicode ascii chars.
Campbell Barton [Mon, 24 Oct 2011 06:57:53 +0000 (06:57 +0000)]
fix for crash when entering in non unicode ascii chars.

now allow these but only for filepaths.

7 years agoadded function BKE_library_filepath_set which sync's the libraries absolute path...
Campbell Barton [Mon, 24 Oct 2011 04:52:43 +0000 (04:52 +0000)]
added function BKE_library_filepath_set which sync's the libraries absolute path when setting to a relative value, before this you could never be sure if a libraries absolute path was valid or not because the user might have changed the relative library path in the outliner, now setting from the outliner and py/rna syncs the absolute path.

7 years agoAnother set of UI messages fixes and tweaks! No functional changes.
Bastien Montagne [Sun, 23 Oct 2011 19:54:06 +0000 (19:54 +0000)]
Another set of UI messages fixes and tweaks! No functional changes.

7 years agoFix for commit 41227 (Some opening comment tags (/*) were lost!).
Bastien Montagne [Sun, 23 Oct 2011 19:39:20 +0000 (19:39 +0000)]
Fix for commit 41227 (Some opening comment tags (/*) were lost!).

7 years agoRemove some more $Id$ that still were left after r41227 and r41228.
Guillermo S. Romero [Sun, 23 Oct 2011 19:01:59 +0000 (19:01 +0000)]
Remove some more $Id$ that still were left after r41227 and r41228.

7 years agoRemove the svn:keywords property.
Guillermo S. Romero [Sun, 23 Oct 2011 18:38:16 +0000 (18:38 +0000)]
Remove the svn:keywords property.

7 years agoremove $Id: tags after discussion on the mailign list: http://markmail.org/message...
Campbell Barton [Sun, 23 Oct 2011 17:52:20 +0000 (17:52 +0000)]
remove $Id: tags after discussion on the mailign list: markmail.org/message/fp7ozcywxum3ar7n

7 years agoTypo fixes for the typo fixes. :D
Thomas Dinges [Sun, 23 Oct 2011 15:43:12 +0000 (15:43 +0000)]
Typo fixes for the typo fixes. :D

7 years agofix some typo's
Campbell Barton [Sun, 23 Oct 2011 15:27:36 +0000 (15:27 +0000)]
fix some typo's

7 years ago- fix for error with utf8 textinput for buttons
Campbell Barton [Sun, 23 Oct 2011 13:52:51 +0000 (13:52 +0000)]
- fix for error with utf8 textinput for buttons
- ensure input is valid utf8 from ghost and NULL then complain if its not.
- added function to get utf8 size BLI_str_utf8_size()

7 years agoCode refactoring: split main 3d view drawing function into object drawing and
Brecht Van Lommel [Sun, 23 Oct 2011 13:00:41 +0000 (13:00 +0000)]
Code refactoring: split main 3d view drawing function into object drawing and
info overlay drawing functions.

7 years agoRNA: fix collection iterator issue in c++ api with msvc.
Brecht Van Lommel [Sun, 23 Oct 2011 12:58:19 +0000 (12:58 +0000)]
RNA: fix collection iterator issue in c++ api with msvc.

7 years agocommitting 'a' to merge into the tag
Campbell Barton [Sun, 23 Oct 2011 12:21:41 +0000 (12:21 +0000)]
committing 'a' to merge into the tag

7 years agominor formatting edits (80 char width)
Campbell Barton [Sun, 23 Oct 2011 12:17:24 +0000 (12:17 +0000)]
minor formatting edits (80 char width)

7 years agoset pythons 'sys.stdout' encoding to utf-8 and use surrogateescape error handler.
Campbell Barton [Sun, 23 Oct 2011 07:51:21 +0000 (07:51 +0000)]
set pythons 'sys.stdout' encoding to utf-8 and use surrogateescape error handler.

without this printing a unicode string may raise an error which is a real pain especially since script authors often forget this and print the path of a file for example on export which can make a script fail outright when writing to paths with certain encodings.

7 years agorna access to event.unicode so scripts can get unicode text input.
Campbell Barton [Sun, 23 Oct 2011 07:03:57 +0000 (07:03 +0000)]
rna access to event.unicode so scripts can get unicode text input.

7 years agopy/rna api crash fix: getting event.ascii would crash blender (strange nobody noticed...
Campbell Barton [Sun, 23 Oct 2011 06:56:39 +0000 (06:56 +0000)]
py/rna api crash fix: getting event.ascii would crash blender (strange nobody noticed this, seems its been there for over a year???).

7 years agoBLI_make_file_string wasn't guaranteed to initialize the resulting path, some parts...
Campbell Barton [Sun, 23 Oct 2011 05:56:55 +0000 (05:56 +0000)]
BLI_make_file_string wasn't guaranteed to initialize the resulting path, some parts of the code accounted for this but most not, always initialize the string to "".

7 years agouse defines for keying set names to avoid confusing them with text and having some...
Campbell Barton [Sun, 23 Oct 2011 05:08:02 +0000 (05:08 +0000)]
use defines for keying set names to avoid confusing them with text and having some incorrect names (as fixed in last commit)

7 years agofix for incorrect keying set names 'Scale' vs 'Scaling', where 'Scale' was hard coded...
Campbell Barton [Sun, 23 Oct 2011 04:48:13 +0000 (04:48 +0000)]
fix for incorrect keying set names 'Scale' vs 'Scaling', where 'Scale' was hard coded in auto keyframe when 'Only Insert Needed' option was enabled and would always fail to return a keying set.

- to be included in 2.60a.

7 years agoContext menu 'Edit Source' operator no longer needs to be enabled as a build option...
Campbell Barton [Sun, 23 Oct 2011 04:13:56 +0000 (04:13 +0000)]
Context menu 'Edit Source' operator no longer needs to be enabled as a build option, improved this so the python file:line lookups are only done when the operator runs (previously this was done for every button, every draw when the build option was enabled).

Perhaps this should be hidden when not running with --debug, easy to change.

7 years agofix for own mistake r41192
Campbell Barton [Sun, 23 Oct 2011 01:06:38 +0000 (01:06 +0000)]
fix for own mistake r41192

7 years agorename user interface operator properties from 'op' to 'props'
Campbell Barton [Sun, 23 Oct 2011 00:53:50 +0000 (00:53 +0000)]
rename user interface operator properties from 'op' to 'props'

7 years agoFix for an unhandled exception. Campbell: please include in 2.60a.
Joerg Mueller [Sat, 22 Oct 2011 18:08:26 +0000 (18:08 +0000)]
Fix for an unhandled exception. Campbell: please include in 2.60a.

7 years agoRender API: add update_progress() function to update progress bar progress from
Brecht Van Lommel [Sat, 22 Oct 2011 17:01:54 +0000 (17:01 +0000)]
Render API: add update_progress() function to update progress bar progress from
external render engines.

Also refactoring to move some render engine registration stuff out of RNA and
into render module.

7 years agoCode refactoring: move external engine functions into own file.
Brecht Van Lommel [Sat, 22 Oct 2011 16:24:28 +0000 (16:24 +0000)]
Code refactoring: move external engine functions into own file.

7 years ago* Re-commit splash screen with Alpha header.
Thomas Dinges [Sat, 22 Oct 2011 16:01:19 +0000 (16:01 +0000)]
* Re-commit splash screen with Alpha header.

7 years agoCode cleanup: file operations merged into single header, some function names
Brecht Van Lommel [Sat, 22 Oct 2011 15:35:49 +0000 (15:35 +0000)]
Code cleanup: file operations merged into single header, some function names
made less cryptic and changed to indicate if they work on files or directories.

7 years agoCamera tracking integration
Sergey Sharybin [Sat, 22 Oct 2011 15:20:56 +0000 (15:20 +0000)]
Camera tracking integration
===========================

Bunch of fixes for issues pointed on codereview page by Brecht and Campbell.

7 years agoCamera tracking integration
Sergey Sharybin [Sat, 22 Oct 2011 15:19:16 +0000 (15:19 +0000)]
Camera tracking integration
===========================

Fix compilation error.

7 years agoMerging r41176 through r41192 from trunk into soc-2011-tomato
Sergey Sharybin [Sat, 22 Oct 2011 15:15:42 +0000 (15:15 +0000)]
Merging r41176 through r41192 from trunk into soc-2011-tomato

7 years ago- use defines for wmKeyMapItem & wmEvent alt/shift/ctrl/oskey
Campbell Barton [Sat, 22 Oct 2011 11:34:01 +0000 (11:34 +0000)]
- use defines for wmKeyMapItem & wmEvent alt/shift/ctrl/oskey
- clear utf8_buf on key up & complain if its set (should never happen)

7 years agopy api - added PyC_UnicodeFromByteAndSize() to match PyUnicode_FromStringAndSize()
Campbell Barton [Sat, 22 Oct 2011 10:49:35 +0000 (10:49 +0000)]
py api - added PyC_UnicodeFromByteAndSize() to match PyUnicode_FromStringAndSize()
also made RNA_property_string_get_alloc() return the length of the new string to avoid having to run strlen on it after.

7 years agoutf8 OSX - cleanup
Dalai Felinto [Sat, 22 Oct 2011 09:28:10 +0000 (09:28 +0000)]
utf8 OSX - cleanup

I still think utf8_buf can be 5 (4 bytes + '\0'), but even 6 may not be enough to what is coming next (NFC - precomposedStringWithCanonicalMapping)
incorporating ascii as a subset of utf8. I don't think we need to re-encode it.
U+0000 ~ U+00FF - latin1 set

7 years agoFix for alt-tab in Windows.
Alexander Kuznetsov [Sat, 22 Oct 2011 04:36:58 +0000 (04:36 +0000)]
Fix for alt-tab in Windows.
utf8_buf can be not null terminated, plus not init as in this case. (I need to investigate more)

7 years agoBLI_utildefine minor edits
Campbell Barton [Sat, 22 Oct 2011 03:39:13 +0000 (03:39 +0000)]
BLI_utildefine minor edits
- removed AVG2, was only used once.
- remove unused LONGCOPY define.
- removed BLI_STRUCT_OFFSET, was only used once, replce with offsetof
- formatting edits, split some macros over multiple lines.

7 years agoFix for text object on windows.
Alexander Kuznetsov [Sat, 22 Oct 2011 03:14:19 +0000 (03:14 +0000)]
Fix for text object on windows.
No utf8 when keyup

7 years agoheader cleanup and typo's
Campbell Barton [Sat, 22 Oct 2011 01:53:35 +0000 (01:53 +0000)]
header cleanup and typo's

7 years agoCode cleanup: remove BLI_exist, now there is only BLI_exists. One function just
Brecht Van Lommel [Fri, 21 Oct 2011 22:33:41 +0000 (22:33 +0000)]
Code cleanup: remove BLI_exist, now there is only BLI_exists. One function just
called the other, they did the same thing.

7 years agoutf8 OSX - disabling utf8 at KeyUp, otherwise TextObject doesn't work.
Dalai Felinto [Fri, 21 Oct 2011 19:09:14 +0000 (19:09 +0000)]
utf8 OSX - disabling utf8 at KeyUp, otherwise TextObject doesn't work.
This bug is also present in Windows, so I believe the real bug is in Linux (and in the text object input).

Also Cmd+C and Cmd+v doesn't work for utf8 yet.

7 years agoUTF8 input support for Windows.
Alexander Kuznetsov [Fri, 21 Oct 2011 17:40:35 +0000 (17:40 +0000)]
UTF8 input support for Windows.

ToDo:
* add support for dead keys
* other input methods (for hieroglyphs)

7 years agoCode cleanup: don't use btempdir/bprogdir/bprogname globals anymore, but wrap
Brecht Van Lommel [Fri, 21 Oct 2011 17:37:38 +0000 (17:37 +0000)]
Code cleanup: don't use btempdir/bprogdir/bprogname globals anymore, but wrap
in BLI_ functions.

7 years agoCode cleanup: remove some unused code in header.
Brecht Van Lommel [Fri, 21 Oct 2011 17:10:59 +0000 (17:10 +0000)]
Code cleanup: remove some unused code in header.

7 years agoFix compilation error with MSVC caused by recent commit.
Sergey Sharybin [Fri, 21 Oct 2011 11:33:18 +0000 (11:33 +0000)]
Fix compilation error with MSVC caused by recent commit.

7 years agoCamera tracking integration
Sergey Sharybin [Fri, 21 Oct 2011 09:18:07 +0000 (09:18 +0000)]
Camera tracking integration
===========================

Fix for UV Project modifier: use sensor size from projector's camera
rather than from scene's camera.

7 years agoMerging r41158 through r41175 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 21 Oct 2011 09:15:22 +0000 (09:15 +0000)]
Merging r41158 through r41175 from trunk into soc-2011-tomato

7 years agofix [#28967] Attempting to add a new pose to the Pose Library causes Blender 2.60...
Campbell Barton [Fri, 21 Oct 2011 09:04:40 +0000 (09:04 +0000)]
fix [#28967] Attempting to add a new pose to the Pose Library causes Blender 2.60 RC2 to crash.

7 years agosvn merge -r41171:41170 . --- fix coming next
Campbell Barton [Fri, 21 Oct 2011 08:31:28 +0000 (08:31 +0000)]
svn merge -r41171:41170 .  --- fix coming next

7 years agomisc cleanup
Campbell Barton [Fri, 21 Oct 2011 08:16:15 +0000 (08:16 +0000)]
misc cleanup
- remove redundant casts
- replace strcmp's with "" to just check first char.
- added WM_event_print(), debug mode only to print events since the structs values are not that meaningful.
- added warnings if locale/font dirs cant be found.

7 years agodisabling utf8 for OSX. It's not working 100% and it's breaking other things
Dalai Felinto [Fri, 21 Oct 2011 06:45:08 +0000 (06:45 +0000)]
disabling utf8 for OSX. It's not working 100% and it's breaking other things

7 years agoBugfix [#28967] Attempting to add a new pose to the Pose Library
Joshua Leung [Fri, 21 Oct 2011 06:36:01 +0000 (06:36 +0000)]
Bugfix [#28967] Attempting to add a new pose to the Pose Library
causes Blender 2.60 RC2 to crash

This commit just rolls back part of r.40868, which was causing crashes
when trying to treat id-property-groups as bpy.type.Property to access
a special "rna_type" attribute added as part of said commit.

The underlying Py-API voodoo here is far too evil (along with the
myriad of ways of creating custom props) to work out an API fix for,
but at least we don't get anymore crashes now. In tests here, this
check even seems redundant!

7 years agoremove scons files for unsupported/obscure unix variants, these configs are not maint...
Campbell Barton [Fri, 21 Oct 2011 04:26:48 +0000 (04:26 +0000)]
remove scons files for unsupported/obscure unix variants, these configs are not maintained (aix defined FREE_WINDOWS for example and nobody noticed), and CMake builds on OpenBSD/NetBSD with no manual configuration.

7 years agocleanup scons build flags, many duplicates because because of confusion between CFLAG...
Campbell Barton [Fri, 21 Oct 2011 04:23:26 +0000 (04:23 +0000)]
cleanup scons build flags, many duplicates because because of confusion between CFLAGS/CPPFLAGS/CCFLAGS/CXXFLAGS, devs would set multiple to be on the safe side.
- defines go in CPPFLAGS
- C & C++ flags go in CCFLAGS
- CFLAGS / CXXFLAGS are C OR C++ only.

also commented intended ghost unicode/ascii usage.

7 years ago- remove release/bin/.blender/.bfont.ttf, we have ./release/datafiles/bfont.ttf alrea...
Campbell Barton [Fri, 21 Oct 2011 03:16:01 +0000 (03:16 +0000)]
- remove release/bin/.blender/.bfont.ttf, we have ./release/datafiles/bfont.ttf already, and its not used anymore.
- removed scons WITH_BF_FREETYPE

7 years agomove fonts/ and locale/ dirs into release/datafiles, since blender wasn't finding...
Campbell Barton [Fri, 21 Oct 2011 03:00:28 +0000 (03:00 +0000)]
move fonts/ and locale/ dirs into release/datafiles, since blender wasn't finding them in their current location and so to test international characters you had to 'make install'.

updated scons/cmake/translation-scripts.

7 years ago- add convenience functions BLI_split_dir_part / BLI_split_file_part, which just...
Campbell Barton [Fri, 21 Oct 2011 02:13:36 +0000 (02:13 +0000)]
- add convenience functions BLI_split_dir_part / BLI_split_file_part, which just call BLI_split_dirfile().
- add a fixed value for bprogdir (the dir of bprogname), since it was being used for resource lookups.

7 years agoFix copyright assignment.
Guillermo S. Romero [Fri, 21 Oct 2011 01:46:03 +0000 (01:46 +0000)]
Fix copyright assignment.

7 years agoreplace BLF's blf_utf8_next() with BLI_str_utf8_as_unicode_step(),
Campbell Barton [Fri, 21 Oct 2011 01:33:06 +0000 (01:33 +0000)]
replace BLF's blf_utf8_next() with BLI_str_utf8_as_unicode_step(),
also fixed some spelling errors.

7 years ago- minor edits to font drawing/utf8, was needlessly casting int/unsigned int.
Campbell Barton [Fri, 21 Oct 2011 00:48:02 +0000 (00:48 +0000)]
- minor edits to font drawing/utf8, was needlessly casting int/unsigned int.
- also ifdef'd out more smoke function when the modifiers disabled.

7 years agoreplace own unicode functions with versions from glib which support more unicode...
Campbell Barton [Fri, 21 Oct 2011 00:01:22 +0000 (00:01 +0000)]
replace own unicode functions with versions from glib which support more unicode characters.
added BLI_str_utf8_as_unicode(), BLI_str_utf8_from_unicode()

7 years agoCamera tracking integration
Sergey Sharybin [Thu, 20 Oct 2011 20:57:29 +0000 (20:57 +0000)]
Camera tracking integration
===========================

Fix for export f-curves operator.

7 years agoTomato Branch:
Thomas Dinges [Thu, 20 Oct 2011 20:47:08 +0000 (20:47 +0000)]
Tomato Branch:
* Build fixes for windows.

7 years agoCleaning i18n code.
Bastien Montagne [Thu, 20 Oct 2011 20:38:26 +0000 (20:38 +0000)]
Cleaning i18n code.

Previous state:
Right now, there are "memories" of the "old" (less than a month!) translation way:
* A few remaining calls to BLF_gettext() (only UI_translate_do_iface and UI_translate_do_tooltip should be used).
* The _() macro still also calls BLF_gettext()!

New state:
Here are the changes made by the patch:
* Removing the no more needed _() macro.
* Removing most N_() and _() calls, only keeping the few needed ones (i.e. strings that are in no other way findable by xgettext and/or update_msg script).
* Defining in UI_interface.h IFACE_() and TIP_() macros (resp. for UI_translate_do_iface and UI_translate_do_tooltip).
* Replacing all calls to BLF_gettext by relevant IFACE_ or TIP_ one.
* Replacing all calls to UI_translate_do_iface by IFACE_.
* Replacing all calls to UI_translate_do_tooltip by TIP_.

All this somewhat clarifies and simplifies the code.
On the bf-translations scripts side, this only implies adding IFACE_ and TIP_ as detection markers for xgettext.
It also allows to reduce POTFILES.in quite notably (only 20 files remaining in it).

Please also have a look at those pages:
* Coder POV: http://wiki.blender.org/index.php/Dev:2.5/Source/Interface/Internationalization
* Translator POV: http://wiki.blender.org/index.php/Dev:2.5/Doc/How_to/Translate_Blender

7 years agoMerging r41140 through r41157 from trunk into soc-2011-tomato
Sergey Sharybin [Thu, 20 Oct 2011 20:24:04 +0000 (20:24 +0000)]
Merging r41140 through r41157 from trunk into soc-2011-tomato

7 years agoSVN maintenance.
Guillermo S. Romero [Thu, 20 Oct 2011 17:55:50 +0000 (17:55 +0000)]
SVN maintenance.

7 years agoVersion cycle:
Thomas Dinges [Thu, 20 Oct 2011 15:04:48 +0000 (15:04 +0000)]
Version cycle:
* Bcon1, alpha.

7 years agoUI tweak: user texture datablock chooser for fields and warp modifier,
Brecht Van Lommel [Thu, 20 Oct 2011 14:58:53 +0000 (14:58 +0000)]
UI tweak: user texture datablock chooser for fields and warp modifier,
more consistent with other places.

7 years agoFix missing node editor update when assigning/removing materials on objects.
Brecht Van Lommel [Thu, 20 Oct 2011 14:55:02 +0000 (14:55 +0000)]
Fix missing node editor update when assigning/removing materials on objects.

7 years agoFix missing updates when changing smoke flow settings.
Brecht Van Lommel [Thu, 20 Oct 2011 14:54:22 +0000 (14:54 +0000)]
Fix missing updates when changing smoke flow settings.

7 years agoBLI_ghash.h was including BLI_blenlib.h, remove from ghash header and include in...
Campbell Barton [Thu, 20 Oct 2011 13:50:24 +0000 (13:50 +0000)]
BLI_ghash.h was including BLI_blenlib.h, remove from ghash header and include in each file

7 years agoreverting 41124, maybe better solution is to enforce linear space in generated float...
Antony Riakiotakis [Thu, 20 Oct 2011 12:15:39 +0000 (12:15 +0000)]
reverting 41124, maybe better solution is to enforce linear space in generated float images

7 years agofixes for unicode input, should work for operator textinput now.
Campbell Barton [Thu, 20 Oct 2011 11:18:57 +0000 (11:18 +0000)]
fixes for unicode input, should work for operator textinput now.

7 years agounicode text input for 3d text.
Campbell Barton [Thu, 20 Oct 2011 10:47:38 +0000 (10:47 +0000)]
unicode text input for 3d text.

7 years agoFix for #28980, could enter infinite loop during node socket verification if dynamic...
Lukas Toenne [Thu, 20 Oct 2011 10:36:02 +0000 (10:36 +0000)]
Fix for #28980, could enter infinite loop during node socket verification if dynamic sockets are present.

Note: in this particular bug report the sockets have some faulty flag settings (none of them should be flagged as SOCK_DYNAMIC), needs more info.

7 years agoOSX: dalai's patch for utf8 support, todo: uppercase chars not working yet
Jens Verwiebe [Thu, 20 Oct 2011 10:35:54 +0000 (10:35 +0000)]
OSX: dalai's patch for utf8 support, todo: uppercase chars not working yet

7 years agoMinor: fix [#28899] Frequently used modelling modifiers moved further out of reach...
Bastien Montagne [Thu, 20 Oct 2011 09:53:02 +0000 (09:53 +0000)]
Minor: fix [#28899] Frequently used modelling modifiers moved further out of reach by new Vertex Weight modifiers.

7 years agoCamera tracking integration
Sergey Sharybin [Thu, 20 Oct 2011 09:52:13 +0000 (09:52 +0000)]
Camera tracking integration
===========================

Naming refactor: avoid using acquire from movie clip related functions.
This stuff doesn't need releasing, all locks happens in getters,
so using get instead of acquire makes more sense here.

7 years agoMerging r41120 through from trunk r41139 into soc-2011-tomato
Sergey Sharybin [Thu, 20 Oct 2011 09:49:39 +0000 (09:49 +0000)]
Merging r41120 through from trunk r41139 into soc-2011-tomato

7 years ago- add BLI_string_utf8.h for unicode functions.
Campbell Barton [Thu, 20 Oct 2011 09:47:05 +0000 (09:47 +0000)]
- add BLI_string_utf8.h for unicode functions.
- move font.c unicode functions into string_utf8.c and rename to fit with other BLI_string funcs.

7 years agoFix #28938: Black frames when composite output node even with disabled nodes
Sergey Sharybin [Thu, 20 Oct 2011 08:32:26 +0000 (08:32 +0000)]
Fix #28938: Black frames when composite output node even with disabled nodes

7 years agoFix #28937: Text Editor Selection (Scroll Bar)
Sergey Sharybin [Thu, 20 Oct 2011 08:19:51 +0000 (08:19 +0000)]
Fix #28937: Text Editor Selection (Scroll Bar)

Do not start selection if mouse cursor.x >= scrollbar.x

7 years agofix [#28902] Rendering and visibility icons in modifier panel move between clicks
Campbell Barton [Thu, 20 Oct 2011 08:12:39 +0000 (08:12 +0000)]
fix [#28902] Rendering and visibility icons in modifier panel move between clicks