Commit Graph

34397 Commits

Author SHA1 Message Date
Sergey Sharybin
fd134927dd Merging r42800 through r42895 from trunk into soc-2011-tomato 2011-12-27 10:11:07 +00:00
Sergey Sharybin
a0e62e77d7 Update build files to use new OpenAL libraries 2011-12-27 09:37:19 +00:00
Campbell Barton
397d7d949f remove unneeded casts from 'unsigned int' to 'int' 2011-12-27 03:54:23 +00:00
Thomas Dinges
8d92e14088 * Fixing compile after recent i18 commits. 2011-12-27 01:35:39 +00:00
Nicholas Bishop
ebf5cfb5ce Fix own error in r42881, didn't add rectangle padding correctly. 2011-12-26 23:36:44 +00:00
Martin Poirier
8cc96408df [#29144] Snapping control points: can't choose which one to delete
Reported by Pep Ribal
You can now select which snap point to remove (with Alt-A) by moving the cursor over them.
Display colors are also used to indicate which snap points are active, selected or just there.
2011-12-26 20:23:07 +00:00
Nicholas Bishop
5f3b1a9767 Factor out some generic parts of the sculpting PBVH redraw planes code.
One function converts bounding boxes to screen space, the other
converts a screen-space rectangle to 3D clipping planes.

Also const-ified some parameters in the ED_view3d API.
2011-12-26 20:19:55 +00:00
Nicholas Bishop
50cc053690 Add a glClear() in GHOST/X11 between creating the GLX context and
displaying the window.

This fixes a brief flash of random data on Blender startup on my
system (Ubuntu 11.10, ATI Mobility Radeon HD 5650, Gallium drivers.)

Code review link:
http://codereview.appspot.com/5505071/
2011-12-26 19:12:13 +00:00
Martin Poirier
d8ab99c147 [#29611] Crash when scale one vertex with snap.
Reported by Andrey Penyaz
Scale snap defaults to 1 when snapping is impossible (distance to center of transformation is zero).
2011-12-26 19:03:32 +00:00
Sergey Sharybin
70329296d4 Another fix for #29494: Problem loading translations at Blender's startup
Reset only LANG variable to it's default value when setting locale to
short/long name failed and set LANGUAGE to value calculated from LANG
or value in user preferences (depending on if Default language is set)
so correct language ill be used for messages even if locale files aren't
generated.

Also disabled i18n prints in non-debug run so console wouldn't be polluted
by messages which aren't really informative for user now and might confuse.
2011-12-26 14:52:36 +00:00
Sergey Sharybin
7bc43f3693 Added WITH_BF_LIBMV to command line options 2011-12-26 14:52:21 +00:00
Campbell Barton
e17fd46c71 formatting edits only to use more consisted style 2011-12-26 12:26:11 +00:00
Campbell Barton
f48fb385ea formatting edits & minor corrections 2011-12-26 00:42:35 +00:00
Campbell Barton
65104d49e0 patch from debian from Kevin 'kiniou' Roy
added __GNU__ and __GLIBC__ to conditional defined in order to compile on KFreeBSD
2011-12-26 00:13:03 +00:00
Campbell Barton
986e62f3b6 fix for a bug in mathutils when a vector was accessing a matrix and the matrix size increased, future access too the vector would write past the allocated bounds. now raise an exception. 2011-12-26 00:05:41 +00:00
Campbell Barton
02d72b5c07 include BLO_sys_types in customdata header rather than stdint directly. 2011-12-25 21:27:23 +00:00
Thomas Dinges
a06358570e Cycles Test App:
* Added some new integrator parameters to the xml reading. 
* Added ability to specify window width/height, if not set it uses film/camera width/height. 
* Added back the xml exporter script from cycles branch, with modifications to hock up into the UI. To use it, copy the script into 2.61/scripts/startup.

Note: This is intended for developers for now, but the standalone Cycles app has potential to be used as benchmark for example.
2011-12-25 13:34:18 +00:00
Campbell Barton
67effc8aef use docstrings for mathutils getset's, also some formatting edits, no functional changes. 2011-12-25 11:36:26 +00:00
Campbell Barton
f3ac865cc0 picky formatting of mathutils 2011-12-24 13:26:30 +00:00
Antony Riakiotakis
84c8fde2ae Re-enable CYCLES and OpenEXR since they work for MInGW. IMPORTANT: Only use the latest MinGW to compile blender. 2011-12-24 11:56:13 +00:00
Jens Verwiebe
856208dba2 OSX/gcc-4.6, fix for typedef uin64_t 2011-12-24 08:03:43 +00:00
Campbell Barton
2cb8b12778 update bpy_extras.view3d_utils for matrix changes
AFAIK all trunk scripts are now updated for changes to matrix row/col.
2011-12-24 07:11:40 +00:00
Campbell Barton
2a80368005 mathtils, convenience attributes added 'row' and 'col', this makes the row/col swap a lot easier to deal with, since
now you can still use column access

previously...
  mat[2] = 1, 2, 3

needed to be converted into...
  mat[0][2] = 1
  mat[1][2] = 2
  mat[2][2] = 3

but with column access you can do...
  mat.col[2] = 1, 2, 3


Having 'row' attribute is a bit redundant since direct indexing on a matrix uses row but included for completeness.
2011-12-24 07:03:19 +00:00
Campbell Barton
28a5549ecf fix for error with matrix access and negative indices with recent row/col swap. 2011-12-24 06:13:58 +00:00
Campbell Barton
b42497b460 mathutils get/set function rename + minor changes to matrix functions (no functional changes) 2011-12-24 04:58:01 +00:00
Campbell Barton
eb3beca8d4 replace u_int64_t with cc99's uint64_t as suggested by Nicholas Bishop. 2011-12-24 03:03:42 +00:00
Campbell Barton
33bd38ebc7 minor edits to cycles c/python module
- rename 'bcycles' --> '_cycles', since this is the python convention when a py module uses a C module internally.
- use macros for returning None
- make with_osl an attribute rather then a function.
- changes methods METH_VARARGS --> METH_O when single args are used.
2011-12-24 02:47:13 +00:00
Campbell Barton
b21a0f4fa1 formatting edits 120 line length 2011-12-24 02:37:42 +00:00
Campbell Barton
27074062ab Formatting edits <120 length lines 2011-12-24 02:32:08 +00:00
Thomas Dinges
9bb0303221 Bugfix for [#29684] Output video presets messed up
* This was caused ny the ImageType refactor.
* Problem persisted with Quicktime too, could not test that, but should fix presets there too.
2011-12-23 22:07:34 +00:00
Campbell Barton
ddcf56366d change customdata mask from an 'unsigned int' to an 'u_int64_t', since BMesh branch has run out of bits 2011-12-23 20:30:23 +00:00
Campbell Barton
5df049f390 fix [#29683] OpenEXR Output Appears to be broken
own error with moving image settings.
2011-12-23 20:26:37 +00:00
Brecht Van Lommel
217a7d1829 UI: small further tweak to last region expand/collapse fix, when moving the
operator redo panel up now it no longer hides the region, just stops it at
max size.
2011-12-23 13:53:21 +00:00
Brecht Van Lommel
0f283e5393 Fix test key conflict operator error, due to missing scripts window. 2011-12-23 13:53:09 +00:00
Bastien Montagne
46d23ae767 Moving back sr locales to sr_RS (else, with recent changes (42830), loading sr was no more working). My mistake, using only sr wasn't useful here (unlike spanish, we only have one version of serbian, in cyrilic and latin forms...)! 2011-12-23 13:36:07 +00:00
Sergey Sharybin
5627e1b33f Fix #29652: operator tab can not be maximised
Clamp region's size on expand to max allowed size, so it wouldn't
be automatically hidden just after expand.
2011-12-23 12:56:48 +00:00
Campbell Barton
da3dd4de20 give errors when using unsupported configurations with mingw` 2011-12-23 07:37:51 +00:00
Mitchell Stokes
ac498a6b64 Cleaning up the GPU_extensions_init/exit() code a bit to keep the Blenderplayer from crashing on exit and restart. 2011-12-23 07:10:01 +00:00
Campbell Barton
b59d8c6ba3 fix for own mistake [#29031] Importing BGL Can Crash the BGE and Blender
was adding the Buffer type to the module without increffing
2011-12-23 05:42:06 +00:00
Campbell Barton
27b47892a0 add DNA support for int64_t. nothing uses this currently. 2011-12-23 04:40:07 +00:00
Campbell Barton
3cce96320e recent matrix row/col swap broke matrix assignment in the BGE, fix provided by Andrew Hale 2011-12-23 00:51:54 +00:00
Campbell Barton
cb61a71ff6 DNA genfile - de-duplicate some checks and replace magic type numbers with an enum 2011-12-22 23:18:43 +00:00
Thomas Dinges
e68f0ff3c0 Another Fix after Cucumber Merge:
* Cycles did not displayed the Scene panels anymore, due to addition of COMPAT_ENGINE to them.
2011-12-22 22:34:23 +00:00
Campbell Barton
3c480e85e3 update the api changelog 2.60 --> 2.61 2011-12-22 21:44:52 +00:00
Brecht Van Lommel
4d7c44717a Code cleanup: fix some clang static checker warnings. 2011-12-22 20:29:44 +00:00
Sergey Sharybin
3563f677f8 Fix #29494: Problem loading translations at Blender's startup
Problem was caused by trying to set locale to short named "es" locale
which failed. It's not really obvious which full locale name should
be used here (there are plenty of dialects), so rather than keeping
locale stuff on state when both of locale and utf-8 locale names
failed, restore default settings (restore environment variables and
use default locale for gettext).

This will resolve cases when spanish language is native on the system,
but it will fail in cases when somebody will want to have spanish
interface in non-spanish system. This might be worked around by setting
LANG and LANGUAGE environment variables to es_<dialect>.UTF-8 and it
should work fine,
2011-12-22 19:09:21 +00:00
Sergey Sharybin
39fd8fa400 Translation context for RNA properties
This commit implements a way to define context of property which is used by
localization stuff and which is needed to resolve translation context when
some word wit the same english spelling is used in different meanings
(like Manual in meaning of tutorial, and Manual in meaning of something is
setting up by hand).

To define property's context there's a function RNA_def_property_translation_context.
If property doesn't have context, regular BLF_gettext function is used to get
translation of property name, otherwise BLF_pgettext is used for this.

Hence, for correct translation, messages in .po files should be marked
by "msgctxt" context, otherwise property with context declared wouldn't
be translated at all. Toolchain scripts from bf-translation project
would be updated soon.

If context for some values of enumerator property, property itself should
be moved to other context and all items from this enum would be moved to
this context automatically (it's impossible to move one few items to
another context).

P.S. Think context like "BRUSH" or "MODIFIER" are preferable than "NOUN" and "VERB"
     because in some cases the same english noun used in different areas better be
	 translated differently to make translation more native.
2011-12-22 18:25:59 +00:00
Sergey Sharybin
e06a0ba2bb Fix/workaround for russian ui crash on exit
Crash was caused by data segment corruption near "string" in view3d_modeselect_pup().
Enlarged size of this static buffer, so it's now enough to store translated modeselect string.

It's not actually fixes because in some other language this modeline might be much longer
and it'll lead to corruptions again.
2011-12-22 16:00:34 +00:00
Bastien Montagne
4045b46676 Some small perf tweaks to weightvg proximity: do not use indices in case all vertices are affected... 2011-12-22 14:04:25 +00:00
Campbell Barton
24400eab28 update axis conversion for recent matrix changes 2011-12-22 11:06:41 +00:00