Campbell Barton [Tue, 27 Dec 2011 13:28:30 +0000 (13:28 +0000)]
svn merge ^/trunk/blender -r42886:42902
Campbell Barton [Tue, 27 Dec 2011 13:17:58 +0000 (13:17 +0000)]
option to save as older mesh format (ifdef'd for now)
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
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
Sergey Sharybin [Tue, 27 Dec 2011 11:09:06 +0000 (11:09 +0000)]
More fixes for timecode usage with BKE_movieclip_get_ibuf_flag
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,
Jens Verwiebe [Tue, 27 Dec 2011 10:51:01 +0000 (10:51 +0000)]
OSX: adding some more codecs to QTKit
Sergey Sharybin [Tue, 27 Dec 2011 09:37:19 +0000 (09:37 +0000)]
Update build files to use new OpenAL libraries
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.
Campbell Barton [Tue, 27 Dec 2011 04:08:21 +0000 (04:08 +0000)]
svn merge ^/trunk/blender -r42882:42886
Campbell Barton [Tue, 27 Dec 2011 03:54:23 +0000 (03:54 +0000)]
remove unneeded casts from 'unsigned int' to 'int'
Thomas Dinges [Tue, 27 Dec 2011 01:35:39 +0000 (01:35 +0000)]
* Fixing compile after recent i18 commits.
Nicholas Bishop [Mon, 26 Dec 2011 23:36:44 +0000 (23:36 +0000)]
Fix own error in r42881, didn't add rectangle padding correctly.
Campbell Barton [Mon, 26 Dec 2011 21:39:16 +0000 (21:39 +0000)]
svn merge ^/trunk/blender -r42871:42882
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.
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.
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:
http://codereview.appspot.com/
5505071/
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).
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
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.
Sergey Sharybin [Mon, 26 Dec 2011 14:52:21 +0000 (14:52 +0000)]
Added WITH_BF_LIBMV to command line options
Campbell Barton [Mon, 26 Dec 2011 12:26:11 +0000 (12:26 +0000)]
formatting edits only to use more consisted style
Campbell Barton [Mon, 26 Dec 2011 00:42:35 +0000 (00:42 +0000)]
formatting edits & minor corrections
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
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.
Campbell Barton [Sun, 25 Dec 2011 21:31:19 +0000 (21:31 +0000)]
svn merge ^/trunk/blender -r42839:42871
Campbell Barton [Sun, 25 Dec 2011 21:27:23 +0000 (21:27 +0000)]
include BLO_sys_types in customdata header rather than stdint directly.
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.
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.
Campbell Barton [Sat, 24 Dec 2011 13:26:30 +0000 (13:26 +0000)]
picky formatting of mathutils
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.
Jens Verwiebe [Sat, 24 Dec 2011 08:03:43 +0000 (08:03 +0000)]
OSX/gcc-4.6, fix for typedef uin64_t
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.
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
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.
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.
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)
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.
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.
Campbell Barton [Sat, 24 Dec 2011 02:37:42 +0000 (02:37 +0000)]
formatting edits 120 line length
Campbell Barton [Sat, 24 Dec 2011 02:32:08 +0000 (02:32 +0000)]
Formatting edits <120 length lines
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.
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
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.
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.
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.
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...)!
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.
Campbell Barton [Fri, 23 Dec 2011 08:41:53 +0000 (08:41 +0000)]
svn merge ^/trunk/blender -r42778:42839
Campbell Barton [Fri, 23 Dec 2011 07:37:51 +0000 (07:37 +0000)]
give errors when using unsupported configurations with mingw`
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.
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
Campbell Barton [Fri, 23 Dec 2011 04:40:07 +0000 (04:40 +0000)]
add DNA support for int64_t. nothing uses this currently.
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
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
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.
Campbell Barton [Thu, 22 Dec 2011 21:44:52 +0000 (21:44 +0000)]
update the api changelog 2.60 --> 2.61
Brecht Van Lommel [Thu, 22 Dec 2011 20:29:44 +0000 (20:29 +0000)]
Code cleanup: fix some clang static checker warnings.
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,
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.
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.
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...
Campbell Barton [Thu, 22 Dec 2011 11:06:41 +0000 (11:06 +0000)]
update axis conversion for recent matrix changes
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
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.
Campbell Barton [Thu, 22 Dec 2011 05:39:23 +0000 (05:39 +0000)]
patch [#29673] Visualize Indices (developer aid)
by Howard Trickey (howardt)
Campbell Barton [Thu, 22 Dec 2011 03:56:21 +0000 (03:56 +0000)]
picky edits - use "" for non enum strings.
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
http://wiki.blender.org/index.php/User:TrumanBlending/Matrix_Indexing
* Discussion thread
http://markmail.org/message/4bpqpxkcvq4wjyfu
Campbell Barton [Thu, 22 Dec 2011 00:03:20 +0000 (00:03 +0000)]
split >120 length lines (mostly if statements)
Dalai Felinto [Wed, 21 Dec 2011 23:59:57 +0000 (23:59 +0000)]
patch [#29676] ALPHA OVER: Fix associated alpha over situation to fix [#29675] patch by Troy Sobotka
note: if alpha is negative the code will still produce non-optimal results.
This is a separate issue though, the patch fix the premul assumption that
alpha can be zero and rgb still be valid.
Campbell Barton [Wed, 21 Dec 2011 23:12:16 +0000 (23:12 +0000)]
Matrix.translation wrapper vector, continent accessing to matrix[3][0:3].
this is a part of patch 29534, being applied separately
from patch [#29534] Change Matrix Representation and Access in Python to Conform with Standard Notation
by Andrew Hale (trumanblending)
Campbell Barton [Wed, 21 Dec 2011 22:56:06 +0000 (22:56 +0000)]
split some >120 lines, no functional changes
Nicholas Bishop [Wed, 21 Dec 2011 22:23:39 +0000 (22:23 +0000)]
== Sculpt ==
Reformatted all lines longer than 120 characters in sculpt.c. Should
be no functional changes. Thanks to Campbell for pointing out the
issue.
I wouldn't normally do this, but just for reference, here is a
screenshot that hopefully makes clear why I think this is worth doing:
nicholasbishop.net/random/longlines00.png
Campbell Barton [Wed, 21 Dec 2011 21:40:21 +0000 (21:40 +0000)]
fix for use of uninitialized value for ipo conversion.
Campbell Barton [Wed, 21 Dec 2011 21:21:27 +0000 (21:21 +0000)]
cleanup and some fixes to mathutils by Andrew Hale
* 1. Resize 4x4, code was ridiculously complex (cleanup only)
* 2. matrix * matrix checking for compatibility wasn't working right (bug in last release)
* 3. fix for result size for matrix * vector if matrix is 4x4 and vector size 3 (bug in recent patch)
* 4. fix for result size vector * matrix if matrix is 4x4 and vector size 3 (bug in recent patch)
Campbell Barton [Wed, 21 Dec 2011 20:56:49 +0000 (20:56 +0000)]
patch [#29667] Fix for potential memory corruption in path_util.c
from Andrew Wiggin (ender79)
Brecht Van Lommel [Wed, 21 Dec 2011 20:51:55 +0000 (20:51 +0000)]
Cycles: support for multiple render layers. It currently renders each layer
entirely before moving on to the next.
Brecht Van Lommel [Wed, 21 Dec 2011 20:51:43 +0000 (20:51 +0000)]
Cycles: code refactoring, to do render layer visibility test a bit different,
replacing the camera visibility flag with object layer flags.
Guillermo S. Romero [Wed, 21 Dec 2011 20:32:29 +0000 (20:32 +0000)]
SVN maintenance.
Bastien Montagne [Wed, 21 Dec 2011 18:18:36 +0000 (18:18 +0000)]
A few small fixes to new UI messages...
Brecht Van Lommel [Wed, 21 Dec 2011 14:35:48 +0000 (14:35 +0000)]
Fix linux linking issue with md5 commit.
Brecht Van Lommel [Wed, 21 Dec 2011 13:49:22 +0000 (13:49 +0000)]
Fix #29670: color picker draw issues with RGB values out of soft range.
Brecht Van Lommel [Wed, 21 Dec 2011 13:48:51 +0000 (13:48 +0000)]
Code refactoring: move MD5 out of imbuf into blenlib.
Brecht Van Lommel [Wed, 21 Dec 2011 13:48:35 +0000 (13:48 +0000)]
Cycles: some small code refactoring related to buffer parameters.
Sergey Sharybin [Wed, 21 Dec 2011 13:31:28 +0000 (13:31 +0000)]
Do not show "Modify" modifiers group for curve objects
This commit prevents adding empty groups to Add Modifier menu making
this menu small and nice for objects which don't support all modifiers
from some group (like Curves don't support Modify modifiers).
Bastien Montagne [Wed, 21 Dec 2011 11:56:42 +0000 (11:56 +0000)]
Small i18n edits:
* Added serbian_latin locale (sr@latin).
* Changed serbian UI to "Serbian (Српски)" (as requested by Nikola Radovanovic, serbian translator).
* Reordered languages in menu in alphabetical order!
Campbell Barton [Wed, 21 Dec 2011 11:36:28 +0000 (11:36 +0000)]
fix for mathutils mat*vec for non sqyare matrices by Andrew Hale
Sergey Sharybin [Wed, 21 Dec 2011 11:01:08 +0000 (11:01 +0000)]
Added Record run no gaps timecode for movie clips.
Also get rid of hardcoded constants in readfile and use constants from ImBuf headers.
Campbell Barton [Wed, 21 Dec 2011 09:52:45 +0000 (09:52 +0000)]
BLI_array.h: improve BLI_array_growitems so its not calling BLI_array_growone in a loop
Campbell Barton [Wed, 21 Dec 2011 08:41:13 +0000 (08:41 +0000)]
BLI_array_growone wasn't always returning the new size. also some formatting edits
Campbell Barton [Wed, 21 Dec 2011 07:36:30 +0000 (07:36 +0000)]
remove some redundant lines of code.
Campbell Barton [Wed, 21 Dec 2011 05:35:19 +0000 (05:35 +0000)]
avoid a loop over all faces in copy_mesh
Campbell Barton [Wed, 21 Dec 2011 04:56:04 +0000 (04:56 +0000)]
minor formatting edits
Campbell Barton [Wed, 21 Dec 2011 03:33:32 +0000 (03:33 +0000)]
use TRUE/FALSE rather then 1/0, no functional changes.
Dalai Felinto [Wed, 21 Dec 2011 02:41:27 +0000 (02:41 +0000)]
Patch [#29654] New menu option under Object > Game with "Copy All Physics Attributes" by Daniel Macedo
"This is a patch that adds an option under the menu Object > Game to copy all the physics attributes from Game Engine."
Campbell Barton [Wed, 21 Dec 2011 00:47:59 +0000 (00:47 +0000)]
fix error in own recent merge
Campbell Barton [Wed, 21 Dec 2011 00:09:44 +0000 (00:09 +0000)]
more mirror cleanup
- remove BMBVH_FindClosestVertTop
- update select mirror operator to EDBM_CacheMirrorVerts
Campbell Barton [Tue, 20 Dec 2011 23:17:24 +0000 (23:17 +0000)]
svn merge ^/trunk/blender -r42776:42778
Campbell Barton [Tue, 20 Dec 2011 23:14:29 +0000 (23:14 +0000)]
topo mirror and sync with minor edits made to bmesh, no functional changes
Campbell Barton [Tue, 20 Dec 2011 22:08:24 +0000 (22:08 +0000)]
svn merge ^/trunk/blender -r42761:42776
Campbell Barton [Tue, 20 Dec 2011 22:01:11 +0000 (22:01 +0000)]
replace editmode topo mirror function from the one in trunk (ED_mesh_mirrtopo_init)
Campbell Barton [Tue, 20 Dec 2011 21:28:57 +0000 (21:28 +0000)]
svn merge ^/trunk/blender -r42759:42761