9 years agoFix two stupid mistakes... Btw, osl now compiles with Fedora17, once llvm-3.1 has...
Bastien Montagne [Wed, 21 Nov 2012 15:42:12 +0000 (15:42 +0000)]
Fix two stupid mistakes... Btw, osl now compiles with Fedora17, once llvm-3.1 has been compiled! ;)

9 years agoFixes for OS X default locale: use pclose and do error checking for file read.
Brecht Van Lommel [Wed, 21 Nov 2012 15:14:19 +0000 (15:14 +0000)]
Fixes for OS X default locale: use pclose and do error checking for file read.

9 years agoOSX/locale: moved command up, so errorchecking also happens
Jens Verwiebe [Wed, 21 Nov 2012 14:29:34 +0000 (14:29 +0000)]
OSX/locale: moved command up, so errorchecking also happens

9 years agoOSX/locale: workaround to get osx system locale from user defaults
Jens Verwiebe [Wed, 21 Nov 2012 13:54:54 +0000 (13:54 +0000)]
OSX/locale: workaround to get osx system locale from user defaults

9 years agoStyle cleanup: mixed tabs/spaces were used for indentation in osl_closures.h
Sergey Sharybin [Wed, 21 Nov 2012 13:45:37 +0000 (13:45 +0000)]
Style cleanup: mixed tabs/spaces were used for indentation in osl_closures.h

9 years agoCycles: solve -Wmissing-declarations for osl kernel
Sergey Sharybin [Wed, 21 Nov 2012 13:41:47 +0000 (13:41 +0000)]
Cycles: solve -Wmissing-declarations for osl kernel

9 years agofix [#29633] Mirror-Y also flips Z axis
Campbell Barton [Wed, 21 Nov 2012 13:39:32 +0000 (13:39 +0000)]
fix [#29633] Mirror-Y also flips Z axis
Was floating point precision error (FLT_EPSILON was too small).

9 years agoFix #33257: cycles camera clipping did not work through transparent objects.
Brecht Van Lommel [Wed, 21 Nov 2012 13:22:24 +0000 (13:22 +0000)]
Fix #33257: cycles camera clipping did not work through transparent objects.

9 years agoEnable llvm building for fedora too.
Bastien Montagne [Wed, 21 Nov 2012 13:13:50 +0000 (13:13 +0000)]
Enable llvm building for fedora too.

Unfortunately, this does not solve OSL compile problem in this distro (still the same errors, looks related to gnu c++... :/).

9 years agobevel: fix bug where constructed where parallel test
Howard Trickey [Wed, 21 Nov 2012 13:07:03 +0000 (13:07 +0000)]
bevel: fix bug where constructed where parallel test
didn't work (angle check too sensitive). Caused some
(nan,nan,nan) results from offset_in_two_planes.

9 years agoFix #33256: cycles Z pass for orthographic camera was not right, now is more
Brecht Van Lommel [Wed, 21 Nov 2012 13:00:57 +0000 (13:00 +0000)]
Fix #33256: cycles Z pass for orthographic camera was not right, now is more
useful for e.g. fog in compositing.

9 years agoFix #32796: cycles did not support image auto refresh option.
Brecht Van Lommel [Wed, 21 Nov 2012 13:00:51 +0000 (13:00 +0000)]
Fix #32796: cycles did not support image auto refresh option.

9 years agoPatch #33242: ffmpeg AAC/AC3 encoding
Sergey Sharybin [Wed, 21 Nov 2012 11:57:35 +0000 (11:57 +0000)]
Patch #33242: ffmpeg AAC/AC3 encoding

Patch by David M (erwin94), thanks!

Also made Vorbis codec using float sample_fmt, otherwise it didn't work
with new FFmpeg.

Perhaps we can make it more clear by explicitly separating audio_input_buffer
for float and integer buffers, but as far as it works i'm not so fussed about
this atm.

9 years agoFix #33222: When rendering DPX it's flipped in the Image Editor
Sergey Sharybin [Wed, 21 Nov 2012 11:10:37 +0000 (11:10 +0000)]
Fix #33222: When rendering DPX it's flipped in the Image Editor

Avoid using IMB_flipy from image save callback. It will use a bit more
memory but wold be thread-safe.

9 years agoenable edge draw by default for new edges,
Campbell Barton [Wed, 21 Nov 2012 10:57:45 +0000 (10:57 +0000)]
enable edge draw by default for new edges,
alternate fix for [#33217] Mirror Modifier not showing "Shadow" mesh in wireframe view

9 years agorevert r52399, fix for [#33217], will look into a different fix
Campbell Barton [Wed, 21 Nov 2012 10:53:15 +0000 (10:53 +0000)]
revert r52399, fix for [#33217], will look into a different fix

9 years agofix for re->partx/re->party values being different for RE_Database_FromScene() then...
Campbell Barton [Wed, 21 Nov 2012 10:20:38 +0000 (10:20 +0000)]
fix for re->partx/re->party values being different for RE_Database_FromScene() then the main render loop.

9 years agoFix #33252: VSE preview displays wrong color space
Sergey Sharybin [Wed, 21 Nov 2012 10:13:52 +0000 (10:13 +0000)]
Fix #33252: VSE preview displays wrong color space

Early output was not setting image buffer float color space

9 years agoWhen the File Output node exits early in convertToOperations (in case not rendering...
Lukas Toenne [Wed, 21 Nov 2012 10:09:51 +0000 (10:09 +0000)]
When the File Output node exits early in convertToOperations (in case not rendering), it should still unlink all inputs to avoid debug assert failure that checks for remaining Node connections (debug_check_node_connections).

9 years agoPrevent division by zero in tiles size versioning code when mixing
Sergey Sharybin [Wed, 21 Nov 2012 09:58:44 +0000 (09:58 +0000)]
Prevent division by zero in tiles size versioning code when mixing
using current trunk and previous release.

9 years agoFix #33253: VSE preview doesn't display compositor
Sergey Sharybin [Wed, 21 Nov 2012 09:36:36 +0000 (09:36 +0000)]
Fix #33253: VSE preview doesn't display compositor

There were two issues in scene strip rendering:

- It will skip rendering if scene doesn't have camera but uses compositor
- G.is_break will cancel preview rendering

Also removed Use Sequencer from scene's strip settings, it's not supported.

9 years agoFix for debug assert failure with Reroute nodes in compositor. After redirecting...
Lukas Toenne [Wed, 21 Nov 2012 09:32:40 +0000 (09:32 +0000)]
Fix for debug assert failure with Reroute nodes in compositor. After redirecting links from the reroute output the input must be completely unlinked, otherwise the debug_check_node_connections will complain (this is a sanity check that ensures all the original Nodes have been fully reconnected to Operations).

9 years agoBring SUSE target to the same level as others.
Bastien Montagne [Wed, 21 Nov 2012 09:01:49 +0000 (09:01 +0000)]
Bring SUSE target to the same level as others.

Also add compile_LLVM func, needed by openSuse (which llvm package is
completly broken), and probably can help for OSL in Fedora17 too (will test soon).

9 years agochanges to startup.blend
Campbell Barton [Wed, 21 Nov 2012 08:59:25 +0000 (08:59 +0000)]
changes to startup.blend
- Set render tile size to 64x64 pixels
- Set default lamp area size to 0.1 (see commit 52012)

9 years agoMore LLVM work (now always search llvm-config into LLVM_DIRECTORY when
Bastien Montagne [Wed, 21 Nov 2012 08:59:20 +0000 (08:59 +0000)]
More LLVM work (now always search llvm-config into LLVM_DIRECTORY when

9 years agodoc corrections and add bge.types.KX_ArmatureSensor
Campbell Barton [Wed, 21 Nov 2012 08:53:04 +0000 (08:53 +0000)]
doc corrections and add bge.types.KX_ArmatureSensor

9 years agoscripts to report missing py reference api docs. (simple RST parse and compare with...
Campbell Barton [Wed, 21 Nov 2012 07:40:46 +0000 (07:40 +0000)]
scripts to report missing py reference api docs. (simple RST parse and compare with python)

9 years agoFix for #33250: animation player shortcut keys not working on OS X.
Brecht Van Lommel [Wed, 21 Nov 2012 03:33:49 +0000 (03:33 +0000)]
Fix for #33250: animation player shortcut keys not working on OS X.

9 years agoFix #33241: can't exit edit mode when object gets hidden via animation.
Brecht Van Lommel [Wed, 21 Nov 2012 03:33:34 +0000 (03:33 +0000)]
Fix #33241: can't exit edit mode when object gets hidden via animation.

9 years agopy api cleanup, replace use...
Campbell Barton [Wed, 21 Nov 2012 02:28:36 +0000 (02:28 +0000)]
py api cleanup, replace use...
- PyLong_FromSsize_t --> PyLong_FromLong
- PyLong_AsSsize_t --> PyLong_AsLong

In all places except for those where python api expects PySsize_t (index lookups mainly).

- use PyBool_FromLong in a few areas of the BGE.
- fix incorrect assumption in the BGE that PySequence_Check() means PySequence_Fast_ functions can be used.

9 years agoChange edge loop select and edge ring select to be consistent with
Nathan Vegdahl [Wed, 21 Nov 2012 01:51:31 +0000 (01:51 +0000)]
Change edge loop select and edge ring select to be consistent with
other selection operators.  Instead of having only a single "extend"
option which causes the selection to toggle, there are now
three options:
- extend: adds to selection
- deselect: removes from selection
- toggle: toggles the selection

The default keymap is adjusted to have identical behavior as before,
using these new options, so end-users shouldn't experience any

9 years agoCycles bugfix: AUTO wasn't working for Equisolid Fisheye lens
Dalai Felinto [Wed, 21 Nov 2012 01:07:30 +0000 (01:07 +0000)]
Cycles bugfix: AUTO wasn't working for Equisolid Fisheye lens
Now one no longer needs to match the sensor dimensions with the render dimensions manually.

IMPORTANT NOTE: if you were using AUTO before with mismathing sensor aspect ratio (comparing to the render dimensions)
this will change your render! We can doversion this, but apart from Tube project I don't know if anyone else
is using this yet (part due to this bug and the only recently fixed 3dview preview aspect ratio).

That should help more artists to take advantage of this fantastic Blender feature.
It still helps to know the parameters of kwnown cameras/lens though.
For example:

Nikon DX2S with a 10.5mm fisheye can be set with:
Render resolution: 4288 x 2848
Sensor 23.7 x 15.70 (15.70 can be ommitted if AUTO is used as fit method)

Note: some cameras render different sizes according to the recording mode.
For example, a Red Scarlet in 5k (@12 fps) can render a full circular fisheye with a sigma 4.5 lens.
The same camera in the 30fps recording mode renders 4k in a cropped circular image.
So it's not only the resolution that changes, but the actual sensor been used.

So just keep in mind that the more information you have from the camera/lens you want to emulate the better.
Bug found at/patch written as a follow up of the BlenderPRO2012, patch reviewed by Brecht Van Lommel

9 years agoFix #33158: motion vector pass wrong in cycles in some scenes, wrong vectors
Brecht Van Lommel [Wed, 21 Nov 2012 01:00:03 +0000 (01:00 +0000)]
Fix #33158: motion vector pass wrong in cycles in some scenes, wrong vectors
due to float precision problem in matrix inverse.

9 years agopy api: BMesh.from_object() was using the derivedFinal, which isn't always available...
Campbell Barton [Wed, 21 Nov 2012 00:31:47 +0000 (00:31 +0000)]
py api: BMesh.from_object() was using the derivedFinal, which isn't always available - or may not have UV data if in the wireframe view.

update the function to calculate the derived mesh with bmesh data-mask each time.

resolves bug [#33205] Bmesh "from_object" gives "no usable mesh data".

also found 'mesh_build_data' could run with non mesh objects and fail silently - add an assert.

9 years agoDebug value in degrees (under parenthesis) for rotation driver variables
Dalai Felinto [Tue, 20 Nov 2012 23:35:03 +0000 (23:35 +0000)]
Debug value in degrees (under parenthesis) for rotation driver variables
Specifically the Rotational Difference and XYZ Rotation Transform Channel

Feature requested during BlenderPRO 2012 (Brazilian Blender Conference)
and coded during my flight back :)

Reviewed by Joshua Leung(Aligorith)

9 years agofix for missing bmesh operator flags when selecting linked (caused by own recent...
Campbell Barton [Tue, 20 Nov 2012 20:45:04 +0000 (20:45 +0000)]
fix for missing bmesh operator flags when selecting linked (caused by own recent commits)

9 years agoFix #33227: custom keymap syncing didn't work well always when adding/removing
Brecht Van Lommel [Tue, 20 Nov 2012 19:44:20 +0000 (19:44 +0000)]
Fix #33227: custom keymap syncing didn't work well always when adding/removing
properties from operator, now it compares at RNA rather than ID property level,
which is more accurate.

9 years agoFix #33177: OSL render difference with missing textures and HSV nodes.
Brecht Van Lommel [Tue, 20 Nov 2012 17:40:21 +0000 (17:40 +0000)]
Fix #33177: OSL render difference with missing textures and HSV nodes.

9 years agoFix cycles OSL missing support for texture mapping paramaters found in texture
Brecht Van Lommel [Tue, 20 Nov 2012 17:40:10 +0000 (17:40 +0000)]
Fix cycles OSL missing support for texture mapping paramaters found in texture
properties tab.

9 years agoFix #33243: cycles CUDA going missing sometimes, disabled the new code now that
Brecht Van Lommel [Tue, 20 Nov 2012 17:39:56 +0000 (17:39 +0000)]
Fix #33243: cycles CUDA going missing sometimes, disabled the new code now that
can detect if a device becomes available while Blender runs, appears to be
unreliable for some reason.

9 years agocode cleanup: comment unused members of bmesh operator slots and some osl style edits.
Campbell Barton [Tue, 20 Nov 2012 14:31:58 +0000 (14:31 +0000)]
code cleanup: comment unused members of bmesh operator slots and some osl style edits.

9 years agoFix [#33239] Cycles OSL : Environment Texture Rotation Incorrect:
Thomas Dinges [Tue, 20 Nov 2012 14:18:56 +0000 (14:18 +0000)]
Fix [#33239] Cycles OSL : Environment Texture Rotation Incorrect:
* Projection mappings were not implemented yet.

9 years agobmesh operator api:
Campbell Barton [Tue, 20 Nov 2012 13:29:27 +0000 (13:29 +0000)]
bmesh operator api:
avoid per vert/edge/face string lookups in BMO_slot_map_* functions --- used in array modifier, subdivide, remove doubles and other tools.

9 years agoMotion tracking: dump mask image when dump images is enabled
Sergey Sharybin [Tue, 20 Nov 2012 12:54:28 +0000 (12:54 +0000)]
Motion tracking: dump mask image when dump images is enabled

This is pure development option which is enabled by defining DUMP_FAILURE
or DUMP_ALWAYS libmv-capi.

9 years agoSupport for type callbacks on IDProperty pointers. Before this the type of the type...
Lukas Toenne [Tue, 20 Nov 2012 12:25:28 +0000 (12:25 +0000)]
Support for type callbacks on IDProperty pointers. Before this the type of the type of a PropertyGroup pointer would be fixed to the default RNA type. This is fine in most cases, but it may be necessary to define the property group subtype dynamically in some cases. Now the returned RNA pointer uses the typef callback if it exists.

9 years agoText editor: fix for line spacing with word wrap enabled
Sergey Sharybin [Tue, 20 Nov 2012 12:10:54 +0000 (12:10 +0000)]
Text editor: fix for line spacing with word wrap enabled

9 years agoMotion tracking: fixed View Selection operator in cases pixel aspect != 1
Sergey Sharybin [Tue, 20 Nov 2012 11:44:55 +0000 (11:44 +0000)]
Motion tracking: fixed View Selection operator in cases pixel aspect != 1

This could break old files a little bit -- clip view could be offset/zoomed
in comparison with previous releases in pixel aspect != 1.

9 years agoFix for add plane operator broken since recent code cleanup
Sergey Sharybin [Tue, 20 Nov 2012 10:43:11 +0000 (10:43 +0000)]
Fix for add plane operator broken since recent code cleanup

9 years agoFix bug in endian switch functions.
Sergey Sharybin [Tue, 20 Nov 2012 10:37:11 +0000 (10:37 +0000)]
Fix bug in endian switch functions.

Seems ti was here since the very first day this functions were added
and issue was happening for switching sign for negative values.

Wrote a brute-force test locally and seems corrected functions indeed
works the same way as old macroses.

This should fix: #33226: File loading issue with svn 52328 (recent BF buildbot compile)

9 years agoFix #33217, mirror modifier edges missing in wireframe mode.
Antony Riakiotakis [Tue, 20 Nov 2012 09:59:57 +0000 (09:59 +0000)]
Fix #33217, mirror modifier edges missing in wireframe mode.

I see we explicitly set the edge visibility in the code for a few
modifiers because of this flag missing. The only place that this flag is
not set is during subsurf so maybe it would make a lot more sense to set
it by default on newly created edges (currently off by default) through
bmesh and turn it off for any modifiers that may need it to be off.

9 years agoSkip CDDM_calc_edges since it's a costly operation. Instead make sure
Antony Riakiotakis [Tue, 20 Nov 2012 09:04:55 +0000 (09:04 +0000)]
Skip CDDM_calc_edges since it's a costly operation. Instead make sure
all edges are set to draw. Thanks to Campbel for pointing that out!

9 years agoSeems extra hints are needed to find llvm-config on linux
Sergey Sharybin [Tue, 20 Nov 2012 08:04:53 +0000 (08:04 +0000)]
Seems extra hints are needed to find llvm-config on linux

9 years agopy api: add mapping support to bmesh operator return values.
Campbell Barton [Tue, 20 Nov 2012 06:11:15 +0000 (06:11 +0000)]
py api: add mapping support to bmesh operator return values.

9 years agopy api: remove ".out" from the names of dict keys returned from bmesh operators.
Campbell Barton [Tue, 20 Nov 2012 05:58:17 +0000 (05:58 +0000)]
py api: remove ".out" from the names of dict keys returned from bmesh operators.

9 years agocode cleanup: make bmesh operator names more consistant since python has access to...
Campbell Barton [Tue, 20 Nov 2012 05:50:19 +0000 (05:50 +0000)]
code cleanup: make bmesh operator names more consistant since python has access to these as input arguments and return values.

all output values currently have ".out" suffix, this may go in the future, but for now it makes it clear in C code what are inputs and outputs.

9 years agobmesh operator api edits, add macros and NULL the buffer if BMO_slot_buffer_alloc...
Campbell Barton [Tue, 20 Nov 2012 03:29:12 +0000 (03:29 +0000)]
bmesh operator api edits, add macros and NULL the buffer if BMO_slot_buffer_alloc()'s len is zero.

9 years agobmesh py api: add support for return values from bmesh operators.
Campbell Barton [Tue, 20 Nov 2012 02:56:42 +0000 (02:56 +0000)]
bmesh py api: add support for return values from bmesh operators.

9 years agoBugfix [#33154] Toggle/Enable/Disable channel settings operators in
Joshua Leung [Tue, 20 Nov 2012 02:03:20 +0000 (02:03 +0000)]
Bugfix [#33154] Toggle/Enable/Disable channel settings operators in
DopeSheet/Action Editor Channel menus were not working properly

They were not allowing users to choose which setting they affected, which
resulted in "protect" (i.e. the same setting as the editability toggle handles)
always being used.

Also, set hidden flags on a few internally used properties here...

9 years agoReadme and Release Log Links:
Thomas Dinges [Tue, 20 Nov 2012 01:55:22 +0000 (01:55 +0000)]
Readme and Release Log Links:
* Update to 2.65

9 years agoBugfix [#29110] Animated Transforms to Deltas behaves oddly when applied more
Joshua Leung [Tue, 20 Nov 2012 01:26:42 +0000 (01:26 +0000)]
Bugfix [#29110] Animated Transforms to Deltas behaves oddly when applied more
than once

Now this operator checks for duplicate F-Curves. If it finds a duplicate, it
will stop and display an error message instructing users to remove the duplicate
F-Curves first.

9 years agoMingw x64:
Thomas Dinges [Tue, 20 Nov 2012 01:26:21 +0000 (01:26 +0000)]
Mingw x64:
* Iconv libs have been removed from SVN, disable it. This hopefully fixes the buildbot.

9 years agoWindows / OSL:
Thomas Dinges [Tue, 20 Nov 2012 00:54:32 +0000 (00:54 +0000)]
Windows / OSL:
* Enable OSL for Windows and Windows Buildbot.

9 years agofix for crash in wireframe tool with verts that only have one boundary edge (degenera...
Campbell Barton [Tue, 20 Nov 2012 00:33:11 +0000 (00:33 +0000)]
fix for crash in wireframe tool with verts that only have one boundary edge (degenerate cases - edge with 3+ faces using it).

9 years agofix for changes in own recent commit:
Campbell Barton [Mon, 19 Nov 2012 23:52:24 +0000 (23:52 +0000)]
fix for changes in own recent commit:
selected linked in face mode was crashing. (needs bmesh operator flags)

also some style edits, remove unused includes and change triangulate modifiers use_beauty to a flag.

9 years agoCustom icon for triangulate modifier.
Antony Riakiotakis [Mon, 19 Nov 2012 23:35:38 +0000 (23:35 +0000)]
Custom icon for triangulate modifier.

9 years agoFix #33237, crash creeped in due to the fact that bmesh-operator-using modifiers...
Antony Riakiotakis [Mon, 19 Nov 2012 23:33:02 +0000 (23:33 +0000)]
Fix #33237, crash creeped in due to the fact that bmesh-operator-using modifiers now need to allocate flags. Added initialization

9 years agoTriangulate modifier
Antony Riakiotakis [Mon, 19 Nov 2012 20:40:08 +0000 (20:40 +0000)]
Triangulate modifier

Useful for bump map baking where a consistent triangulation should be enforced when baking/exporting/importing, to avoid artifacts caused by a different triangulation of the mesh by that which was used for baking by internal/external tools.

documentation is here

Will probably add some pictures too to demonstrate the issue that is solved more clearly.
Currently using the skin modifier icon, will soon change that.

Review by Brecht, thanks!

9 years agoUpdate to use new WITH_STATIC_LIBS CMake flag when ALL_STATIC is true.
Bastien Montagne [Mon, 19 Nov 2012 20:24:06 +0000 (20:24 +0000)]
Update to use new WITH_STATIC_LIBS CMake flag when ALL_STATIC is true.

9 years agoAdding a linux-only WITH_STATIC_LIBS option, which will try to link against static...
Bastien Montagne [Mon, 19 Nov 2012 19:43:03 +0000 (19:43 +0000)]
Adding a linux-only WITH_STATIC_LIBS option, which will try to link against static libs. This should help building more portable blender. Still experimental and WIP.

9 years ago* Fix Windows compile. #ifdef _MSC_VER was misspelled.
Thomas Dinges [Mon, 19 Nov 2012 19:28:06 +0000 (19:28 +0000)]
* Fix Windows compile. #ifdef _MSC_VER was misspelled.

9 years agoMinor spellchaeck in UI message.
Bastien Montagne [Mon, 19 Nov 2012 19:26:23 +0000 (19:26 +0000)]
Minor spellchaeck in UI message.

9 years agoMore tweaks:
Bastien Montagne [Mon, 19 Nov 2012 19:11:01 +0000 (19:11 +0000)]
More tweaks:
* Prevent ocio from building its python binding, we don't use it, and it looks like OCIO's CMakeList is not robust here (i.e. can try to build it even when Python.h is not found :/ [irc report]).
* Do not build ffmpeg's player, server nor doc.
* Give right paths to static extra libs for ffmpeg when ALL_STATIC is true.

9 years agoOSX/osl: link also boost_wave, cause we use its preprocessor now
Jens Verwiebe [Mon, 19 Nov 2012 19:10:31 +0000 (19:10 +0000)]
OSX/osl: link also boost_wave, cause we use its preprocessor now

9 years agoBring back debug boost libs to cmake. Also use debug version of OIIO for debug builds.
Sergey Sharybin [Mon, 19 Nov 2012 18:07:55 +0000 (18:07 +0000)]
Bring back debug boost libs to cmake. Also use debug version of OIIO for debug builds.

SO now blender could be debugged on windows again!

There'll likely be compilation error of debug version of blender using msvc2010, not
currently sure how to solve that in a good way.

9 years agoFix #33234: Search string crashes Blender
Sergey Sharybin [Mon, 19 Nov 2012 17:31:31 +0000 (17:31 +0000)]
Fix #33234: Search string crashes Blender

Own regression since image threading safe commit.

9 years agoImproved FFmpeg error reports when audio stream failed to be allocated
Sergey Sharybin [Mon, 19 Nov 2012 17:22:40 +0000 (17:22 +0000)]
Improved FFmpeg error reports when audio stream failed to be allocated

Also fixed crash using --debug-ffmpeg caused by BLI_vsnprintf modifies
va_list -- need to create copy of list if this list is gonna to be reused.

9 years agoOSX/scons/osl: un-hardcode the osl libpath
Jens Verwiebe [Mon, 19 Nov 2012 17:15:33 +0000 (17:15 +0000)]
OSX/scons/osl: un-hardcode the osl libpath

9 years agoFix #33223: Instant Crash on Window minimize
Sergey Sharybin [Mon, 19 Nov 2012 16:46:48 +0000 (16:46 +0000)]
Fix #33223: Instant Crash on Window minimize

Issue was caused by manipulating with triple buffers of minimized window.
It's more like an Intel driver bug but we can workaround it in quite clear
way by skipping draw of minimized windows.

9 years agoFix #33229: Blender crashes on finishing render
Sergey Sharybin [Mon, 19 Nov 2012 16:42:14 +0000 (16:42 +0000)]
Fix #33229: Blender crashes on finishing render

9 years agoWindows Libs: move OpenEXR headers to same directory structure as other platforms.
Brecht Van Lommel [Mon, 19 Nov 2012 16:02:29 +0000 (16:02 +0000)]
Windows Libs: move OpenEXR headers to same directory structure as other platforms.

9 years agoScons: better fix for OSL compiler path, so it also works on OS X.
Brecht Van Lommel [Mon, 19 Nov 2012 15:50:28 +0000 (15:50 +0000)]
Scons: better fix for OSL compiler path, so it also works on OS X.

9 years agoImplementation of string lookup functions for collections in the C API. These were...
Lukas Toenne [Mon, 19 Nov 2012 15:18:08 +0000 (15:18 +0000)]
Implementation of string lookup functions for collections in the C API. These were declared in RNA_blender.h but not actually implemented in the respective *_gen.c files.

9 years agouse input and output slots for bmesh operators, needed for the python api to get...
Campbell Barton [Mon, 19 Nov 2012 14:58:31 +0000 (14:58 +0000)]
use input and output slots for bmesh operators, needed for the python api to get return values.

9 years agoSCons: make OSL linking work on windows, and fix OSL compiler path issue to
Brecht Van Lommel [Mon, 19 Nov 2012 14:54:35 +0000 (14:54 +0000)]
SCons: make OSL linking work on windows, and fix OSL compiler path issue to
properly expand to absolute path.

9 years agoLocalization should not depend on debug locale library
Sergey Sharybin [Mon, 19 Nov 2012 13:15:11 +0000 (13:15 +0000)]
Localization should not depend on debug locale library

Linking happens fine, but blender crashes on startup -- crash with familiar
backtrace happens with i18n disabled (in that case it's something to do with OIIO).

9 years agoOSX/scons: refine oslc compile workaround
Jens Verwiebe [Mon, 19 Nov 2012 11:46:55 +0000 (11:46 +0000)]
OSX/scons: refine oslc compile workaround

9 years agoOSX/cmake: py 3.3 migration
Jens Verwiebe [Mon, 19 Nov 2012 11:45:25 +0000 (11:45 +0000)]
OSX/cmake: py 3.3 migration

9 years agoBasic work for an ALL_STATIC option, to enable when you want to build blender in...
Bastien Montagne [Mon, 19 Nov 2012 11:12:30 +0000 (11:12 +0000)]
Basic work for an ALL_STATIC option, to enable when you want to build blender in a portable way. Still WIP!

9 years agoNo boost system when we have own compiled version!
Bastien Montagne [Mon, 19 Nov 2012 10:45:03 +0000 (10:45 +0000)]
No boost system when we have own compiled version!

9 years agoOSX/scons: migration to py 3.3
Jens Verwiebe [Mon, 19 Nov 2012 10:14:55 +0000 (10:14 +0000)]
OSX/scons: migration to py 3.3

9 years agoFix when statically linking with distro's boost: in this case, we most likely also...
Bastien Montagne [Mon, 19 Nov 2012 08:51:35 +0000 (08:51 +0000)]
Fix when statically linking with distro's boost: in this case, we most likely also need to statically link against icu, as most boost packages are built with it. Without that, you get a bunch of errors at link time (when using boost_locale, or, in freestyle branch, boost_regex).

So when you enable Boost_USE_STATIC_LIBS, you should also set Boost_USE_ICU to True. Will add a note about that in build doc too.

9 years agoDefinitive fix for version_ge with equal versions like "1.0.0" and "1.0".
Bastien Montagne [Mon, 19 Nov 2012 08:48:21 +0000 (08:48 +0000)]
Definitive fix for version_ge with equal versions like "1.0.0" and "1.0".
Also fixed DEB boost version checking, own fault.
And disabled building ocio's apps, else it would go searching for an oiio lib (and we have not yet built ours) - anyway, if users want them, they can build them on their own!

9 years agoimprovements to bevel
Campbell Barton [Mon, 19 Nov 2012 02:26:59 +0000 (02:26 +0000)]
improvements to bevel
- the resulting selection is now correct

internal details
- bev_rebuild_polygon() now only rebuilds polygons that are attached to a bevel vertex (was rebuilding ALL).
  ... need to take care we don't leave faces pointing to removed geometry, so far this works fine.

-  bev_rebuild_polygon() uses stack memory for <32 size ngons to reduce allocs.

- skip hash lookup when removing bevel verts (use tag instead).

9 years agobmesh: BM_verts_in_face was using bmesh operator flag which is no longer ensured...
Campbell Barton [Mon, 19 Nov 2012 00:54:55 +0000 (00:54 +0000)]
bmesh: BM_verts_in_face was using bmesh operator flag which is no longer ensured to be available,
use internal apiflag instead, Thanks to Nicholas Bishop for spotting.

also quiet some warnings.

9 years agoBGE: The Step Height for a character physics controller is now set to 0.01, which...
Mitchell Stokes [Sun, 18 Nov 2012 20:56:50 +0000 (20:56 +0000)]
BGE: The Step Height for a character physics controller is now set to 0.01, which means that Step Height can no longer be 0, which causes issues such as those noted in issue #33221, "KX_CharacterWrapper inconsistencies and error," reported by Angus Hollands (agoose77). I've also added a do_versions() fix that will give objects with 0 Step Height sane defaults. This means old files will now work better with character physics.

9 years agoBGE: Changing "transform_uv" -> "transformUV" in some error messages.
Mitchell Stokes [Sun, 18 Nov 2012 20:38:27 +0000 (20:38 +0000)]
BGE: Changing "transform_uv" -> "transformUV" in some error messages.

9 years agoPartial fix to version_ge (greater or equal), was not working correctly with eaqual...
Bastien Montagne [Sun, 18 Nov 2012 20:31:58 +0000 (20:31 +0000)]
Partial fix to version_ge (greater or equal), was not working correctly with eaqual versions, now will do with exact same versions at least (yet have to fix case like comparing 1.0 and 1.0.0).

Also refactored a bit osl/llvm/etc. stuff for DEB (so that now all osl-deps are only installed when we do have a valid llvm and want to [try to!] build osl).

And added osl/llvm/etc. code for RPM (osl does not compile under fedora currently, though :/ ).

9 years agoMore cleanup/deduplication. Also explicitly using gawk (so system without it should...
Bastien Montagne [Sun, 18 Nov 2012 17:47:26 +0000 (17:47 +0000)]
More cleanup/deduplication. Also explicitly using gawk (so system without it should print a much comprehensive error message!).

Note: RPM-related edits not yet tested.

9 years agoBetter handing of llvm version (now we can be sure to use the same for osl and blende...
Bastien Montagne [Sun, 18 Nov 2012 17:27:29 +0000 (17:27 +0000)]
Better handing of llvm version (now we can be sure to use the same for osl and blender - and the latest one available!).

And more cosmetic cleanups...

9 years agoCMakeList: Better handling of llvm under linux (now you can try to force usage of...
Bastien Montagne [Sun, 18 Nov 2012 17:26:23 +0000 (17:26 +0000)]
CMakeList: Better handling of llvm under linux (now you can try to force usage of a specific version of llvm before using default one).

Also cleared LIBDIR var from linux code, as we have no more those svn folders!