10 years agocorrect define
Campbell Barton [Wed, 28 Dec 2011 15:07:00 +0000 (15:07 +0000)]
correct define

10 years agosvn merge ^/trunk/blender -r42931:42935
Campbell Barton [Wed, 28 Dec 2011 14:28:56 +0000 (14:28 +0000)]
svn merge ^/trunk/blender -r42931:42935

10 years agoWIP bmesh trunk sync, excuse the noise
Campbell Barton [Wed, 28 Dec 2011 14:26:59 +0000 (14:26 +0000)]
WIP bmesh trunk sync, excuse the noise

10 years agosyncing with trunk, remove unused function
Campbell Barton [Wed, 28 Dec 2011 14:22:46 +0000 (14:22 +0000)]
syncing with trunk, remove unused function

10 years agomore changes from bmesh into trunk (mesh mpoly strict member)
Campbell Barton [Wed, 28 Dec 2011 14:21:51 +0000 (14:21 +0000)]
more changes from bmesh into trunk (mesh mpoly strict member)

10 years agosvn merge ^/trunk/blender -r42927:42931
Campbell Barton [Wed, 28 Dec 2011 14:05:02 +0000 (14:05 +0000)]
svn merge ^/trunk/blender -r42927:42931

10 years agoWIP loading bmesh in trunk, some conversion functions for this purpose.
Campbell Barton [Wed, 28 Dec 2011 13:50:33 +0000 (13:50 +0000)]
WIP loading bmesh in trunk, some conversion functions for this purpose.

10 years agomerge bleshes BLI_array header lib into trunk.
Campbell Barton [Wed, 28 Dec 2011 13:40:14 +0000 (13:40 +0000)]
merge bleshes BLI_array header lib into trunk.

10 years agosvn merge ^/trunk/blender -r42920:42927
Campbell Barton [Wed, 28 Dec 2011 13:33:35 +0000 (13:33 +0000)]
svn merge ^/trunk/blender -r42920:42927

10 years agoCode refactoring: add unified image buffer functions for doing float => byte,
Brecht Van Lommel [Wed, 28 Dec 2011 13:29:33 +0000 (13:29 +0000)]
Code refactoring: add unified image buffer functions for doing float => byte,
byte => float, float => float, byte => byte conversions with profile, dither
and predivide. Previously code for this was spread out too much.

There should be no functional changes, this is so the predivide/table/dither
patches can work correctly.

10 years agominor edits
Campbell Barton [Wed, 28 Dec 2011 13:24:49 +0000 (13:24 +0000)]
minor edits

10 years agoenable USE_BMESH_FORWARD_COMPAT and merge in some customdata functions
Campbell Barton [Wed, 28 Dec 2011 13:23:59 +0000 (13:23 +0000)]
enable USE_BMESH_FORWARD_COMPAT and merge in some customdata functions

10 years agoinitial merge of bmesh customdata layer code into trunk, ifdef'd out for now with...
Campbell Barton [Wed, 28 Dec 2011 13:15:17 +0000 (13:15 +0000)]
initial merge of bmesh customdata layer code into trunk, ifdef'd out for now with USE_BMESH_FORWARD_COMPAT.

10 years agosync customdata layers up with trunk. existing bmesh files will crash on load but...
Campbell Barton [Wed, 28 Dec 2011 13:11:46 +0000 (13:11 +0000)]
sync customdata layers up with trunk. existing bmesh files will crash on load but this is unavoidable.

10 years agoFix #29707: Sequencer presets corrupt audio scene settings
Sergey Sharybin [Wed, 28 Dec 2011 12:39:35 +0000 (12:39 +0000)]
Fix #29707: Sequencer presets corrupt audio scene settings

Problem was caused by using amount of channels as integer instead of enum
identifiers in preset files.

10 years agoAdd FFmpeg libraries versions to system-info.txt
Sergey Sharybin [Wed, 28 Dec 2011 12:35:58 +0000 (12:35 +0000)]
Add FFmpeg libraries versions to system-info.txt

10 years agosvn merge ^/trunk/blender -r42918:42920
Campbell Barton [Wed, 28 Dec 2011 11:20:45 +0000 (11:20 +0000)]
svn merge ^/trunk/blender -r42918:42920

10 years agomake MOD_dynamicpaint.c use more typical gpl2+ text and some formatting edits in DNA
Campbell Barton [Wed, 28 Dec 2011 11:08:38 +0000 (11:08 +0000)]
make MOD_dynamicpaint.c use more typical gpl2+ text and some formatting edits in DNA

10 years agosvn merge ^/trunk/blender -r42914:42918
Campbell Barton [Wed, 28 Dec 2011 10:27:25 +0000 (10:27 +0000)]
svn merge ^/trunk/blender -r42914:42918

10 years agocopy BLI_edgehash changes from bmesh branch, main change is use of mempool.
Campbell Barton [Wed, 28 Dec 2011 10:20:37 +0000 (10:20 +0000)]
copy BLI_edgehash changes from bmesh branch, main change is use of mempool.

10 years agoun-inline edgehash functions, BLI_edgehash_insert was far too big to inline.
Campbell Barton [Wed, 28 Dec 2011 10:06:10 +0000 (10:06 +0000)]
un-inline edgehash functions, BLI_edgehash_insert was far too big to inline.

and have edge hash use unsigned ints since edge verts are unsigned ints for MEdge's

10 years agoun-inline edgehash functions, BLI_edgehash_insert especially was too large to inline
Campbell Barton [Wed, 28 Dec 2011 09:47:24 +0000 (09:47 +0000)]
un-inline edgehash functions, BLI_edgehash_insert especially was too large to inline

10 years agosvn merge ^/trunk/blender -r42911:42914
Campbell Barton [Wed, 28 Dec 2011 09:21:24 +0000 (09:21 +0000)]
svn merge ^/trunk/blender -r42911:42914

10 years agominor edits and correcton to assert
Campbell Barton [Wed, 28 Dec 2011 09:14:09 +0000 (09:14 +0000)]
minor edits and correcton to assert

10 years agomerge in customdata changes from BMesh - biggest change is caching the layer index...
Campbell Barton [Wed, 28 Dec 2011 09:11:11 +0000 (09:11 +0000)]
merge in customdata changes from BMesh - biggest change is caching the layer index values in a typemap.

10 years agosvn merge ^/trunk/blender -r42902:42911
Campbell Barton [Wed, 28 Dec 2011 08:36:25 +0000 (08:36 +0000)]
svn merge ^/trunk/blender -r42902:42911

10 years agoreduce size of typemap, and minor changes to sync with trunk
Campbell Barton [Wed, 28 Dec 2011 08:33:19 +0000 (08:33 +0000)]
reduce size of typemap, and minor changes to sync with trunk

10 years agominor changes from bmesh into trunk
Campbell Barton [Wed, 28 Dec 2011 08:29:03 +0000 (08:29 +0000)]
minor changes from bmesh into trunk

10 years agosync some edits with bmesh
Campbell Barton [Wed, 28 Dec 2011 07:43:06 +0000 (07:43 +0000)]
sync some edits with bmesh

10 years agomacro for getting next/previous MPoly loops
Campbell Barton [Wed, 28 Dec 2011 07:10:27 +0000 (07:10 +0000)]
macro for getting next/previous MPoly loops

10 years agoset mloop edge and vertex as unsigned ints since face/edge reference verts as unsigne...
Campbell Barton [Wed, 28 Dec 2011 04:43:29 +0000 (04:43 +0000)]
set mloop edge and vertex as unsigned ints since face/edge reference verts as unsigned ints too

10 years agofor bpy.props, when 'name' argument is not initialized, vallback to the attribute...
Campbell Barton [Wed, 28 Dec 2011 04:25:46 +0000 (04:25 +0000)]
for bpy.props, when 'name' argument is not initialized, vallback to the attribute name rather than an empty string.

10 years agosaving to legacy mesh format is now functional
Campbell Barton [Tue, 27 Dec 2011 13:44:15 +0000 (13:44 +0000)]
saving to legacy mesh format is now functional

10 years agosvn merge ^/trunk/blender -r42886:42902
Campbell Barton [Tue, 27 Dec 2011 13:28:30 +0000 (13:28 +0000)]
svn merge ^/trunk/blender -r42886:42902

10 years agooption to save as older mesh format (ifdef'd for now)
Campbell Barton [Tue, 27 Dec 2011 13:17:58 +0000 (13:17 +0000)]
option to save as older mesh format (ifdef'd for now)

10 years agoChange visualize indices so that edit select mode chooses which elements are visualized
Howard Trickey [Tue, 27 Dec 2011 12:50:23 +0000 (12:50 +0000)]
Change visualize indices so that edit select mode chooses which elements are visualized

10 years agoOSX: adding PNG codec to QTKit, to have one more alpha enabled one atm
Jens Verwiebe [Tue, 27 Dec 2011 11:29:27 +0000 (11:29 +0000)]
OSX: adding PNG codec to QTKit, to have one more alpha enabled one atm

10 years agoMore fixes for timecode usage with BKE_movieclip_get_ibuf_flag
Sergey Sharybin [Tue, 27 Dec 2011 11:09:06 +0000 (11:09 +0000)]
More fixes for timecode usage with BKE_movieclip_get_ibuf_flag

10 years agoFix #29688: Timecode is not used in tracking
Sergey Sharybin [Tue, 27 Dec 2011 10:52:23 +0000 (10:52 +0000)]
Fix #29688: Timecode is not used in tracking

Use proper timecode flags sending to BKE_movieclip_get_ibuf_flag function,
so now frames for tracking would be full-resolution but calculated using
timecode defined in th interface,

10 years agoOSX: adding some more codecs to QTKit
Jens Verwiebe [Tue, 27 Dec 2011 10:51:01 +0000 (10:51 +0000)]
OSX: adding some more codecs to QTKit

10 years agoUpdate build files to use new OpenAL libraries
Sergey Sharybin [Tue, 27 Dec 2011 09:37:19 +0000 (09:37 +0000)]
Update build files to use new OpenAL libraries

10 years agooption to save bmesh files in older mesh format so they can load in older versoons...
Campbell Barton [Tue, 27 Dec 2011 08:39:55 +0000 (08:39 +0000)]
option to save bmesh files in older mesh format so they can load in older versoons of blender.

- saves UV's and VCols
- skips NGons
- resulting files load in both BMesh and Trunk.

TODO - add an option in the UI to access this.

10 years agosvn merge ^/trunk/blender -r42882:42886
Campbell Barton [Tue, 27 Dec 2011 04:08:21 +0000 (04:08 +0000)]
svn merge ^/trunk/blender -r42882:42886

10 years agoremove unneeded casts from 'unsigned int' to 'int'
Campbell Barton [Tue, 27 Dec 2011 03:54:23 +0000 (03:54 +0000)]
remove unneeded casts from 'unsigned int' to 'int'

10 years ago* Fixing compile after recent i18 commits.
Thomas Dinges [Tue, 27 Dec 2011 01:35:39 +0000 (01:35 +0000)]
* Fixing compile after recent i18 commits.

10 years agoFix own error in r42881, didn't add rectangle padding correctly.
Nicholas Bishop [Mon, 26 Dec 2011 23:36:44 +0000 (23:36 +0000)]
Fix own error in r42881, didn't add rectangle padding correctly.

10 years agosvn merge ^/trunk/blender -r42871:42882
Campbell Barton [Mon, 26 Dec 2011 21:39:16 +0000 (21:39 +0000)]
svn merge ^/trunk/blender -r42871:42882

10 years ago[#29144] Snapping control points: can't choose which one to delete
Martin Poirier [Mon, 26 Dec 2011 20:23:07 +0000 (20:23 +0000)]
[#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.

10 years agoFactor out some generic parts of the sculpting PBVH redraw planes code.
Nicholas Bishop [Mon, 26 Dec 2011 20:19:55 +0000 (20:19 +0000)]
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.

10 years agoAdd a glClear() in GHOST/X11 between creating the GLX context and
Nicholas Bishop [Mon, 26 Dec 2011 19:12:13 +0000 (19:12 +0000)]
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:

10 years ago[#29611] Crash when scale one vertex with snap.
Martin Poirier [Mon, 26 Dec 2011 19:03:32 +0000 (19:03 +0000)]
[#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).

10 years agoAnother fix for #29494: Problem loading translations at Blender's startup
Sergey Sharybin [Mon, 26 Dec 2011 14:52:36 +0000 (14:52 +0000)]
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

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.

10 years agoAdded WITH_BF_LIBMV to command line options
Sergey Sharybin [Mon, 26 Dec 2011 14:52:21 +0000 (14:52 +0000)]
Added WITH_BF_LIBMV to command line options

10 years agoformatting edits only to use more consisted style
Campbell Barton [Mon, 26 Dec 2011 12:26:11 +0000 (12:26 +0000)]
formatting edits only to use more consisted style

10 years agoformatting edits & minor corrections
Campbell Barton [Mon, 26 Dec 2011 00:42:35 +0000 (00:42 +0000)]
formatting edits & minor corrections

10 years agopatch from debian from Kevin 'kiniou' Roy
Campbell Barton [Mon, 26 Dec 2011 00:13:03 +0000 (00:13 +0000)]
patch from debian from Kevin 'kiniou' Roy

added __GNU__ and __GLIBC__ to conditional defined in order to compile on KFreeBSD

10 years agofix for a bug in mathutils when a vector was accessing a matrix and the matrix size...
Campbell Barton [Mon, 26 Dec 2011 00:05:41 +0000 (00:05 +0000)]
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.

10 years agosvn merge ^/trunk/blender -r42839:42871
Campbell Barton [Sun, 25 Dec 2011 21:31:19 +0000 (21:31 +0000)]
svn merge ^/trunk/blender -r42839:42871

10 years agoinclude BLO_sys_types in customdata header rather than stdint directly.
Campbell Barton [Sun, 25 Dec 2011 21:27:23 +0000 (21:27 +0000)]
include BLO_sys_types in customdata header rather than stdint directly.

10 years agoCycles Test App:
Thomas Dinges [Sun, 25 Dec 2011 13:34:18 +0000 (13:34 +0000)]
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.

10 years agouse docstrings for mathutils getset's, also some formatting edits, no functional...
Campbell Barton [Sun, 25 Dec 2011 11:36:26 +0000 (11:36 +0000)]
use docstrings for mathutils getset's, also some formatting edits, no functional changes.

10 years agopicky formatting of mathutils
Campbell Barton [Sat, 24 Dec 2011 13:26:30 +0000 (13:26 +0000)]
picky formatting of mathutils

10 years agoRe-enable CYCLES and OpenEXR since they work for MInGW. IMPORTANT: Only use the lates...
Antony Riakiotakis [Sat, 24 Dec 2011 11:56:13 +0000 (11:56 +0000)]
Re-enable CYCLES and OpenEXR since they work for MInGW. IMPORTANT: Only use the latest MinGW to compile blender.

10 years agoOSX/gcc-4.6, fix for typedef uin64_t
Jens Verwiebe [Sat, 24 Dec 2011 08:03:43 +0000 (08:03 +0000)]
OSX/gcc-4.6, fix for typedef uin64_t

10 years agoupdate bpy_extras.view3d_utils for matrix changes
Campbell Barton [Sat, 24 Dec 2011 07:11:40 +0000 (07:11 +0000)]
update bpy_extras.view3d_utils for matrix changes

AFAIK all trunk scripts are now updated for changes to matrix row/col.

10 years agomathtils, convenience attributes added 'row' and 'col', this makes the row/col swap...
Campbell Barton [Sat, 24 Dec 2011 07:03:19 +0000 (07:03 +0000)]
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

  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.

10 years agofix for error with matrix access and negative indices with recent row/col swap.
Campbell Barton [Sat, 24 Dec 2011 06:13:58 +0000 (06:13 +0000)]
fix for error with matrix access and negative indices with recent row/col swap.

10 years agomathutils get/set function rename + minor changes to matrix functions (no functional...
Campbell Barton [Sat, 24 Dec 2011 04:58:01 +0000 (04:58 +0000)]
mathutils get/set function rename + minor changes to matrix functions (no functional changes)

10 years agoreplace u_int64_t with cc99's uint64_t as suggested by Nicholas Bishop.
Campbell Barton [Sat, 24 Dec 2011 03:03:42 +0000 (03:03 +0000)]
replace u_int64_t with cc99's uint64_t as suggested by Nicholas Bishop.

10 years agominor edits to cycles c/python module
Campbell Barton [Sat, 24 Dec 2011 02:47:13 +0000 (02:47 +0000)]
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.

10 years agoformatting edits 120 line length
Campbell Barton [Sat, 24 Dec 2011 02:37:42 +0000 (02:37 +0000)]
formatting edits 120 line length

10 years agoFormatting edits <120 length lines
Campbell Barton [Sat, 24 Dec 2011 02:32:08 +0000 (02:32 +0000)]
Formatting edits <120 length lines

10 years agoBugfix for [#29684] Output video presets messed up
Thomas Dinges [Fri, 23 Dec 2011 22:07:34 +0000 (22:07 +0000)]
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.

10 years agochange customdata mask from an 'unsigned int' to an 'u_int64_t', since BMesh branch...
Campbell Barton [Fri, 23 Dec 2011 20:30:23 +0000 (20:30 +0000)]
change customdata mask from an 'unsigned int' to an 'u_int64_t', since BMesh branch has run out of bits

10 years agofix [#29683] OpenEXR Output Appears to be broken
Campbell Barton [Fri, 23 Dec 2011 20:26:37 +0000 (20:26 +0000)]
fix [#29683] OpenEXR Output Appears to be broken

own error with moving image settings.

10 years agoUI: small further tweak to last region expand/collapse fix, when moving the
Brecht Van Lommel [Fri, 23 Dec 2011 13:53:21 +0000 (13:53 +0000)]
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.

10 years agoFix test key conflict operator error, due to missing scripts window.
Brecht Van Lommel [Fri, 23 Dec 2011 13:53:09 +0000 (13:53 +0000)]
Fix test key conflict operator error, due to missing scripts window.

10 years agoMoving back sr locales to sr_RS (else, with recent changes (42830), loading sr was...
Bastien Montagne [Fri, 23 Dec 2011 13:36:07 +0000 (13:36 +0000)]
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...)!

10 years agoFix #29652: operator tab can not be maximised
Sergey Sharybin [Fri, 23 Dec 2011 12:56:48 +0000 (12:56 +0000)]
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.

10 years agosvn merge ^/trunk/blender -r42778:42839
Campbell Barton [Fri, 23 Dec 2011 08:41:53 +0000 (08:41 +0000)]
svn merge ^/trunk/blender -r42778:42839

10 years agogive errors when using unsupported configurations with mingw`
Campbell Barton [Fri, 23 Dec 2011 07:37:51 +0000 (07:37 +0000)]
give errors when using unsupported configurations with mingw`

10 years agoCleaning up the GPU_extensions_init/exit() code a bit to keep the Blenderplayer from...
Mitchell Stokes [Fri, 23 Dec 2011 07:10:01 +0000 (07:10 +0000)]
Cleaning up the GPU_extensions_init/exit() code a bit to keep the Blenderplayer from crashing on exit and restart.

10 years agofix for own mistake [#29031] Importing BGL Can Crash the BGE and Blender
Campbell Barton [Fri, 23 Dec 2011 05:42:06 +0000 (05:42 +0000)]
fix for own mistake [#29031] Importing BGL Can Crash the BGE and Blender

was adding the Buffer type to the module without increffing

10 years agoadd DNA support for int64_t. nothing uses this currently.
Campbell Barton [Fri, 23 Dec 2011 04:40:07 +0000 (04:40 +0000)]
add DNA support for int64_t. nothing uses this currently.

10 years agorecent matrix row/col swap broke matrix assignment in the BGE, fix provided by Andrew...
Campbell Barton [Fri, 23 Dec 2011 00:51:54 +0000 (00:51 +0000)]
recent matrix row/col swap broke matrix assignment in the BGE, fix provided by Andrew Hale

10 years agoDNA genfile - de-duplicate some checks and replace magic type numbers with an enum
Campbell Barton [Thu, 22 Dec 2011 23:18:43 +0000 (23:18 +0000)]
DNA genfile - de-duplicate some checks and replace magic type numbers with an enum

10 years agoAnother Fix after Cucumber Merge:
Thomas Dinges [Thu, 22 Dec 2011 22:34:23 +0000 (22:34 +0000)]
Another Fix after Cucumber Merge:
* Cycles did not displayed the Scene panels anymore, due to addition of COMPAT_ENGINE to them.

10 years agoupdate the api changelog 2.60 --> 2.61
Campbell Barton [Thu, 22 Dec 2011 21:44:52 +0000 (21:44 +0000)]
update the api changelog 2.60 --> 2.61

10 years agoCode cleanup: fix some clang static checker warnings.
Brecht Van Lommel [Thu, 22 Dec 2011 20:29:44 +0000 (20:29 +0000)]
Code cleanup: fix some clang static checker warnings.

10 years agoFix #29494: Problem loading translations at Blender's startup
Sergey Sharybin [Thu, 22 Dec 2011 19:09:21 +0000 (19:09 +0000)]
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,

10 years agoTranslation context for RNA properties
Sergey Sharybin [Thu, 22 Dec 2011 18:25:59 +0000 (18:25 +0000)]
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.

10 years agoFix/workaround for russian ui crash on exit
Sergey Sharybin [Thu, 22 Dec 2011 16:00:34 +0000 (16:00 +0000)]
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.

10 years agoSome small perf tweaks to weightvg proximity: do not use indices in case all vertices...
Bastien Montagne [Thu, 22 Dec 2011 14:04:25 +0000 (14:04 +0000)]
Some small perf tweaks to weightvg proximity: do not use indices in case all vertices are affected...

10 years agoupdate axis conversion for recent matrix changes
Campbell Barton [Thu, 22 Dec 2011 11:06:41 +0000 (11:06 +0000)]
update axis conversion for recent matrix changes

10 years agofix for matrix assignment with recent changes which broke for eg:
Campbell Barton [Thu, 22 Dec 2011 08:44:08 +0000 (08:44 +0000)]
fix for matrix assignment with recent changes which broke for eg:
  ob.matrix_world = matrix

10 years agoremove commented index drawing code (now its a debug option), and remove code in...
Campbell Barton [Thu, 22 Dec 2011 05:52:31 +0000 (05:52 +0000)]
remove commented index drawing code (now its a debug option), and remove code in editmesh stat drawing which was left over from when text drawing was immediate rather then cached.

10 years agopatch [#29673] Visualize Indices (developer aid)
Campbell Barton [Thu, 22 Dec 2011 05:39:23 +0000 (05:39 +0000)]
patch [#29673] Visualize Indices (developer aid)
by Howard Trickey (howardt)

10 years agopicky edits - use "" for non enum strings.
Campbell Barton [Thu, 22 Dec 2011 03:56:21 +0000 (03:56 +0000)]
picky edits - use "" for non enum strings.

10 years agopatch [#29534] Change Matrix Representation and Access in Python to Conform with...
Campbell Barton [Thu, 22 Dec 2011 01:05:03 +0000 (01:05 +0000)]
patch [#29534] Change Matrix Representation and Access in Python to Conform with Standard Notation
from Andrew Hale

Scripts which access matrix row/columns directly and scripts that create new matrices with elements defined will need updating.

For more info see...

* Guide for updating scripts

* Discussion thread

10 years agosplit >120 length lines (mostly if statements)
Campbell Barton [Thu, 22 Dec 2011 00:03:20 +0000 (00:03 +0000)]
split >120 length lines (mostly if statements)