7 years agoFix T41173: CM view selection is difficult with multiple views
Sergey Sharybin [Thu, 7 Aug 2014 19:30:22 +0000 (01:30 +0600)]
Fix T41173: CM view selection is difficult with multiple views

Use drop-down menu instead of expanded enum for the view select.
There are usually more views than displays and using drop-down
for display device and expanded enum for view is kindof strange.

7 years agoFix T40948: Fill holes fails in certain case
Campbell Barton [Thu, 7 Aug 2014 18:29:30 +0000 (04:29 +1000)]
Fix T40948: Fill holes fails in certain case

7 years agoTweaks to the recent wrapper on windows
Sergey Sharybin [Thu, 7 Aug 2014 18:20:43 +0000 (00:20 +0600)]
Tweaks to the recent wrapper on windows

- Forgot to handle command line arguments

- Because of the fact we need to be able to
  use stdout and stderr we need to use regular
  console application for the wrapper.

- Because of using regular application for the
  wrapper we need to check forparent PID in the

I really hope it's not gonna to become any more

7 years agoFix for mathutils.Euler on big endian systems
Campbell Barton [Thu, 7 Aug 2014 16:07:56 +0000 (02:07 +1000)]
Fix for mathutils.Euler on big endian systems

D719 from jrestemeier with edits

7 years agoCleanup: unused defines
Campbell Barton [Thu, 7 Aug 2014 16:07:15 +0000 (02:07 +1000)]
Cleanup: unused defines

7 years agoAdd blender launcher application when building with MSVC
Sergey Sharybin [Thu, 7 Aug 2014 14:01:20 +0000 (20:01 +0600)]
Add blender launcher application when building with MSVC

Main idea of this change is to make a small executable which
will set OMP_WAIT_POLICY environment variable and then will
launch blender itself.

This is a teporary solution for the time being we'll have a
more clear solution to high CPU usage with OpenMP when building
with MSVC.

Reviewers: campbellbarton, juicyfruit

Reviewed By: juicyfruit

Differential Revision:

7 years agoT41354, cursor never gets reactivated in uv sculpting.
Antony Riakiotakis [Thu, 7 Aug 2014 14:14:33 +0000 (16:14 +0200)]
T41354, cursor never gets reactivated in uv sculpting.

7 years agoFix crash on dyntopo when show diffuse option + collapse is used
Antony Riakiotakis [Thu, 7 Aug 2014 12:57:59 +0000 (14:57 +0200)]
Fix crash on dyntopo when show diffuse option + collapse is used

Some nodes could end up without any faces and in that case getting a
face material would fail.

7 years agoFix T41333: Selected mask points don't stand out visually.
Bastien Montagne [Thu, 7 Aug 2014 12:35:04 +0000 (14:35 +0200)]
Fix T41333: Selected mask points don't stand out visually.

Looks like mask points coloring was recently changed, and IMAGE space colors were left uninitialized...
Factorized a bit the code about vertex_handle & co too, was quite duplicated.

7 years agoCleanup: Remove special code for Visual Studio 2008.
Thomas Dinges [Thu, 7 Aug 2014 11:51:05 +0000 (13:51 +0200)]
Cleanup: Remove special code for Visual Studio 2008.

Goodbye VC2008, it has been a pleasure (more or less) :D SCons / CMake cleaenup will follow.
Differential Revision:

7 years agoExperimental gooseberry request:
Antony Riakiotakis [Thu, 7 Aug 2014 10:29:50 +0000 (12:29 +0200)]
Experimental gooseberry request:

Expose radial control properties. That way, the operator can be tweaked
in the input preferences to tweak other properties as well.

7 years agochange scons default to be visual studio 2013
Martijn Berger [Thu, 7 Aug 2014 08:06:13 +0000 (10:06 +0200)]
change scons default to be visual studio 2013

7 years agoComments
Campbell Barton [Thu, 7 Aug 2014 04:42:47 +0000 (14:42 +1000)]

7 years agoBMesh: use existing lookup tables when remapping
Campbell Barton [Thu, 7 Aug 2014 01:50:53 +0000 (11:50 +1000)]
BMesh: use existing lookup tables when remapping

7 years agoGHash/EdgeHash: avoid NULL check on iterator init
Campbell Barton [Thu, 7 Aug 2014 01:19:55 +0000 (11:19 +1000)]
GHash/EdgeHash: avoid NULL check on iterator init

7 years agoFix T41047: Text objects flipping
Campbell Barton [Wed, 6 Aug 2014 23:14:54 +0000 (09:14 +1000)]
Fix T41047: Text objects flipping

7 years agoUI: move button to set dupli-offset into group menu
Campbell Barton [Wed, 6 Aug 2014 18:36:56 +0000 (04:36 +1000)]
UI: move button to set dupli-offset into group menu

7 years agoFix T41323: Sequencer: video window taking all the place when switching to split...
Bastien Montagne [Wed, 6 Aug 2014 18:39:09 +0000 (20:39 +0200)]
Fix T41323: Sequencer: video window taking all the place when switching to split view.

Issue is that, when we switch from full preview view to combined view, preview area has
its `sizey` set to use all available height, which leaves nothing for poor main area.

For now, make checks when switching mode to combined one, so that both areas have
resonable `sizey` values. Not perfect, but works.

7 years agoCleanup: mostly move together main area init/draw/handler callback, and some generic...
Bastien Montagne [Wed, 6 Aug 2014 15:14:55 +0000 (17:14 +0200)]
Cleanup: mostly move together main area init/draw/handler callback, and some generic cleanup (tabs, comments...).

7 years agoFix T41343, hard to remove group from objects.
Antony Riakiotakis [Wed, 6 Aug 2014 18:03:16 +0000 (20:03 +0200)]
Fix T41343, hard to remove group from objects.

Added a small menu with a few helper oerators next to each group panel:

* Remove group from all objects
* Select objects in group

More could be added possibly in the future.

Thanks to Campbell for the advice here.

7 years agoCorrect Python exceptions
Campbell Barton [Wed, 6 Aug 2014 14:42:49 +0000 (00:42 +1000)]
Correct Python exceptions

T35358 by Codemanx

7 years agoAdd some missng casts to the size_t
Sergey Sharybin [Wed, 6 Aug 2014 12:53:25 +0000 (18:53 +0600)]
Add some missng casts to the size_t

7 years agoOSX/clang: Fix T41123, crashing osl when optimization level > O0 is used for osl_shad...
Jens Verwiebe [Wed, 6 Aug 2014 11:25:06 +0000 (13:25 +0200)]
OSX/clang: Fix T41123, crashing osl when optimization level > O0 is used for osl_shaders.cpp

7 years agoOSX/cmake: allow for llvm dynamic builds too, but prefer static
Jens Verwiebe [Wed, 6 Aug 2014 10:48:06 +0000 (12:48 +0200)]
OSX/cmake: allow for llvm dynamic builds too, but prefer static

7 years agoFix for out of bounds write while dragging
Campbell Barton [Wed, 6 Aug 2014 02:13:11 +0000 (12:13 +1000)]
Fix for out of bounds write while dragging

7 years agoFix T41318: API change in OSL, I see no other cases but there might be
Martijn Berger [Tue, 5 Aug 2014 21:49:42 +0000 (23:49 +0200)]
Fix T41318: API change in OSL, I see no other cases but there might be

7 years agoRemove confusing word "faculative" from comments
Nicholas Bishop [Tue, 5 Aug 2014 20:05:24 +0000 (16:05 -0400)]
Remove confusing word "faculative" from comments

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

7 years agoRemove SVN references
Campbell Barton [Tue, 5 Aug 2014 19:44:51 +0000 (05:44 +1000)]
Remove SVN references

7 years agoSpelling
Campbell Barton [Tue, 5 Aug 2014 19:39:41 +0000 (05:39 +1000)]

7 years agoCorrect change to dupli-drawing
Campbell Barton [Tue, 5 Aug 2014 18:56:18 +0000 (04:56 +1000)]
Correct change to dupli-drawing

Need exceptions so dupli-frames objects draw in render-only mode.

7 years agoOSX/cmake: move last commited line to a better place
Jens Verwiebe [Tue, 5 Aug 2014 18:21:22 +0000 (20:21 +0200)]
OSX/cmake: move last commited line to a better place

7 years agoOSX/cmake: force LLVM_STATIC ON, to fix linking issues
Jens Verwiebe [Tue, 5 Aug 2014 18:15:44 +0000 (20:15 +0200)]
OSX/cmake: force LLVM_STATIC ON, to fix linking issues

7 years agoFix T41062: "copy to selected" doens't work for all attributes.
Bastien Montagne [Tue, 5 Aug 2014 16:59:02 +0000 (18:59 +0200)]
Fix T41062: "copy to selected" doens't work for all attributes.

The issue was that some properties are no direct children of the struct we support in 'copy to selected'
(RNA_Sequence in this case). Since we can't use the ID of sequences here (it's the scene, while we need
a sequence level of control), we had to add a new API helper to RNA path, which takes a RNA type
and return a path relative to the closest ancester of that type.

This way, we get a path from the RNA_Sequence, and can easily apply it to all other valid sequences
to copy the property.

Review, suggestions and edits by Campbell Barton, thanks!

7 years agoAdd RNA access to packed libraries
Campbell Barton [Tue, 5 Aug 2014 17:10:53 +0000 (03:10 +1000)]
Add RNA access to packed libraries

7 years agoFix T41222 Blender gives weird output when baking (4096*4096) resolution on GPU
Dalai Felinto [Tue, 5 Aug 2014 16:50:50 +0000 (13:50 -0300)]
Fix T41222 Blender gives weird output when baking (4096*4096) resolution on GPU

In collaboration with Sergey Sharybin.

Also thanks to Wolfgang Faehnle (mib2berlin) for help testing the

Reviewers: sergey

Differential Revision:

7 years agoFix T41328: Saving a copy changes lib paths
Campbell Barton [Tue, 5 Aug 2014 16:48:37 +0000 (02:48 +1000)]
Fix T41328: Saving a copy changes lib paths

7 years agoAPI Docs: typos
Campbell Barton [Tue, 5 Aug 2014 16:09:26 +0000 (02:09 +1000)]
API Docs: typos

7 years agoReplace explicit object type check with already-existing macro
Nicholas Bishop [Tue, 5 Aug 2014 14:57:54 +0000 (10:57 -0400)]
Replace explicit object type check with already-existing macro

7 years agoAdd missing forward declaration and missing 'struct' keyword
Nicholas Bishop [Tue, 5 Aug 2014 14:47:59 +0000 (10:47 -0400)]
Add missing forward declaration and missing 'struct' keyword

7 years agoUI: remove tip when dragging a popup
Campbell Barton [Tue, 5 Aug 2014 14:40:41 +0000 (00:40 +1000)]
UI: remove tip when dragging a popup

7 years agoFix a few typos in carve-capi.h
Nicholas Bishop [Tue, 5 Aug 2014 14:36:45 +0000 (10:36 -0400)]
Fix a few typos in carve-capi.h

The typos didn't cause any bug, but the mis-ordered parameter names in CarveExporter_InitGeomArrays were confusing.

Reviewers: sergey

Reviewed By: sergey

Differential Revision:

7 years agoFix incorrect comments in listbase, add unit test to verify change
Nicholas Bishop [Tue, 5 Aug 2014 14:33:24 +0000 (10:33 -0400)]
Fix incorrect comments in listbase, add unit test to verify change

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

7 years agoCorrect another issue in recent menu handling
Campbell Barton [Tue, 5 Aug 2014 14:05:20 +0000 (00:05 +1000)]
Correct another issue in recent menu handling

mouse clicks to exit a menu were ignored for non-floating popups

7 years agoFix to commit rB77b7e1fe9ab: need ${target} instead of blender in cmake macro.
Howard Trickey [Tue, 5 Aug 2014 11:52:34 +0000 (07:52 -0400)]
Fix to commit rB77b7e1fe9ab: need ${target} instead of blender in cmake macro.

7 years agoFix T41276: OSL bug in getmessage ("trace", "geom:name" , output)
Sergey Sharybin [Tue, 5 Aug 2014 11:53:00 +0000 (17:53 +0600)]
Fix T41276: OSL bug in getmessage ("trace", "geom:name" , output)

7 years agoFix possible harmful warning: the value of the size argument in 'strncat' is too...
Jens Verwiebe [Tue, 5 Aug 2014 10:03:31 +0000 (12:03 +0200)]
Fix possible harmful warning: the value of the size argument in 'strncat' is too large, change the argument to be the free space in the destination buffer minus the terminating null byte

7 years agoFix T41318: OSL broken on Linux kubuntu 14.04
Sergey Sharybin [Tue, 5 Aug 2014 09:53:00 +0000 (15:53 +0600)]
Fix T41318: OSL broken on Linux kubuntu 14.04

Now for real, hopefully.

7 years agoFix wrong assert happening in the CUEW
Sergey Sharybin [Tue, 5 Aug 2014 09:28:32 +0000 (15:28 +0600)]
Fix wrong assert happening in the CUEW

7 years agoFix: T41318
Martijn Berger [Tue, 5 Aug 2014 09:11:52 +0000 (11:11 +0200)]
Fix: T41318
OSL compiler signature changed with 1.5.

7 years agoDeduplicate CUDA and OpenCL wranglers
Sergey Sharybin [Tue, 5 Aug 2014 07:57:50 +0000 (13:57 +0600)]
Deduplicate CUDA and OpenCL wranglers

For now it was mainly about OpenCL wrangler being duplicated
between Cycles and Compositor, but with OpenSubdiv work those
wranglers were gonna to be duplicated just once again.

This commit makes it so Cycles and Compositor uses wranglers
from this repositories:


This repositories are based on the wranglers we used before
and they'll be likely continued maintaining by us plus some
more players in the market.

Pretty much straightforward change with some tricks in the
CMake/SCons to make this libs being passed to the linker
after all other libraries in order to make OpenSubdiv linked
against those wranglers in the future.

For those who're worrying about Cycles being less standalone,
it's not truth, it's rather more flexible now and in the future
different wranglers might be used in Cycles. For now it'll
just mean those libs would need to be put into Cycles repository
together with some other libs from Blender such as mikkspace.

This is mainly platform maintenance commit, should not be any
changes to the user space.

Reviewers: juicyfruit, dingto, campbellbarton

Reviewed By: juicyfruit, dingto, campbellbarton

Differential Revision:

7 years agoCleanup: indentation
Campbell Barton [Tue, 5 Aug 2014 03:36:35 +0000 (13:36 +1000)]
Cleanup: indentation

7 years agoFix for double freeing of MEM_guardedalloc'ed memory originating from BLF_lang_set().
Tamito Kajiyama [Tue, 5 Aug 2014 02:21:02 +0000 (11:21 +0900)]
Fix for double freeing of MEM_guardedalloc'ed memory originating from BLF_lang_set().

7 years agoMacros: replace UNPACK#OP -> UNPACK#_EX, allow suffix
Campbell Barton [Mon, 4 Aug 2014 22:04:57 +0000 (08:04 +1000)]
Macros: replace UNPACK#OP -> UNPACK#_EX, allow suffix

7 years agoFix memory leak of main lock when reading from library files.
Antony Riakiotakis [Mon, 4 Aug 2014 14:00:57 +0000 (16:00 +0200)]
Fix memory leak of main lock when reading from library files.

7 years agoFix T41175: Quad View - Properties Region - Clip Tickable option bug?
Bastien Montagne [Mon, 4 Aug 2014 12:27:18 +0000 (14:27 +0200)]
Fix T41175: Quad View - Properties Region - Clip Tickable option bug?

7 years agoTweaks to macros
Campbell Barton [Mon, 4 Aug 2014 01:43:10 +0000 (11:43 +1000)]
Tweaks to macros

7 years agoMacros: prevent instantiation of args for type checks
Campbell Barton [Mon, 4 Aug 2014 01:14:20 +0000 (11:14 +1000)]
Macros: prevent instantiation of args for type checks

also make CHECK_TYPE_INLINE more strict

7 years agoCleanup: replace int cast with floorf when comparing time
Campbell Barton [Mon, 4 Aug 2014 00:22:45 +0000 (10:22 +1000)]
Cleanup: replace int cast with floorf when comparing time

7 years agoCorrect cu->pathlen treated as a float
Campbell Barton [Mon, 4 Aug 2014 00:15:25 +0000 (10:15 +1000)]
Correct cu->pathlen treated as a float

7 years agoCorrect glitch in recent menu commit, click-drag locked menus
Campbell Barton [Sun, 3 Aug 2014 19:36:55 +0000 (05:36 +1000)]
Correct glitch in recent menu commit, click-drag locked menus

7 years agoFix T41284: The python ops log doesn't work.
Bastien Montagne [Sun, 3 Aug 2014 19:17:24 +0000 (21:17 +0200)]
Fix T41284: The python ops log doesn't work.

7 years agoFixed linking OIIO on Windows. The debug and optimized options need to be before...
Jason Wilkins [Sun, 3 Aug 2014 16:35:39 +0000 (11:35 -0500)]
Fixed linking OIIO on Windows.  The debug and optimized options need to be before each individual library in a list.

7 years agoOSX/buildsystem: prepare usage on OSX 10.10 - Yosemite
Jens Verwiebe [Sun, 3 Aug 2014 10:51:26 +0000 (12:51 +0200)]
OSX/buildsystem: prepare usage on OSX 10.10 - Yosemite
- important: requires cmake >= 2.8.12 to read minor version right,
aka older cmake rates 10.10 lower than 10.6 for example ! ( sigh )

7 years agoFix for glitch with menus not reliably setting an active item (D674)
Campbell Barton [Sun, 3 Aug 2014 10:30:12 +0000 (20:30 +1000)]
Fix for glitch with menus not reliably setting an active item (D674)

When menus are clamped to the window bounds,
its was possible not to have an active menu-item under the mouse,
Making Ctrl+S,Enter not completely reliable.

Changes needed to support this are:

- menu item is activated on popup menus
  (to avoid relying on mouse-over)
- moving mouse away from menu items only de-activates when over a new menu-item.
- Mouse clicks are ignored if they are not directly over the menu item.

7 years agofix check for not llvm
Martijn Berger [Sat, 2 Aug 2014 13:30:28 +0000 (15:30 +0200)]
fix check for not llvm

7 years agoCollada and llvm both use the same functions and they clash.
Martijn Berger [Sat, 2 Aug 2014 13:20:03 +0000 (15:20 +0200)]
Collada and llvm both use the same functions and they clash.
Since we have older llvm for msvc2008 and new one for msvc2013 we need to work around it.

7 years agoCMake: add header
Campbell Barton [Sat, 2 Aug 2014 09:16:00 +0000 (19:16 +1000)]
CMake: add header

7 years agoMake CHECK_TYPE_NONCONST macro portable
Campbell Barton [Sat, 2 Aug 2014 08:03:50 +0000 (18:03 +1000)]
Make CHECK_TYPE_NONCONST macro portable

also replace __typeof -> typeof

7 years agoBMesh: typecheck iterator
Campbell Barton [Sat, 2 Aug 2014 08:03:07 +0000 (18:03 +1000)]
BMesh: typecheck iterator

7 years agoMove to OIIO 1.4 also for windows x86
Martijn Berger [Sat, 2 Aug 2014 07:59:09 +0000 (09:59 +0200)]
Move to OIIO 1.4 also for windows x86

7 years agoSpelling
Campbell Barton [Sat, 2 Aug 2014 06:53:52 +0000 (16:53 +1000)]

7 years agoCMake: tweak so 2.8.7 and older still work (disable WITH_BUILDINFO)
Campbell Barton [Fri, 1 Aug 2014 17:07:41 +0000 (03:07 +1000)]
CMake: tweak so 2.8.7 and older still work (disable WITH_BUILDINFO)

7 years agoCleanup: Move SpaceTransform helpers from `BKE_shrinkwrap` to `BLI_math_matrix`.
Bastien Montagne [Fri, 1 Aug 2014 14:28:31 +0000 (16:28 +0200)]
Cleanup: Move SpaceTransform helpers from `BKE_shrinkwrap` to `BLI_math_matrix`.

7 years agoCleanup: Move `object_get_derived_final` from BKE_shrinkwrap to BKE_DerivedMesh
Bastien Montagne [Fri, 1 Aug 2014 13:42:17 +0000 (15:42 +0200)]
Cleanup: Move `object_get_derived_final` from BKE_shrinkwrap to BKE_DerivedMesh

Note this func needs some love, but this will be for later (should never have been in shrinkwrap code!).

7 years agoCycles: Update stdosl.h for OSL 1.5.
Thomas Dinges [Fri, 1 Aug 2014 13:23:28 +0000 (15:23 +0200)]
Cycles: Update stdosl.h for OSL 1.5.

7 years agoCmake prefers NOT to !
Martijn Berger [Fri, 1 Aug 2014 13:18:34 +0000 (15:18 +0200)]
Cmake prefers NOT to !

7 years agoMake function definition consistent with function declaration (as discussed with...
gaiaclary [Fri, 1 Aug 2014 12:31:41 +0000 (14:31 +0200)]
Make function definition consistent with function declaration (as discussed with campbell)

7 years agoFix msvc 2013 / win64 to use new OIIO and llvm and resulting linking
Martijn Berger [Fri, 1 Aug 2014 12:28:00 +0000 (14:28 +0200)]
Fix msvc 2013 / win64 to use new OIIO and llvm and resulting linking

7 years agoPrevent macros hiding casts from `const` pointers
Campbell Barton [Fri, 1 Aug 2014 11:59:42 +0000 (21:59 +1000)]
Prevent macros hiding casts from `const` pointers

7 years agoMake build work with llvm3.4 and oiio 1.4
Martijn Berger [Fri, 1 Aug 2014 11:43:12 +0000 (13:43 +0200)]
Make build work with llvm3.4 and oiio 1.4

7 years agoFix T41197: Blender freezes to infinite loop when switching to PAUSED Cycles rendered...
Sergey Sharybin [Fri, 1 Aug 2014 10:39:05 +0000 (16:39 +0600)]
Fix T41197: Blender freezes to infinite loop when switching to PAUSED Cycles rendered viewport

7 years agoRevert "Fix T41226: Wrong Undo on curves and hooks"
Sergey Sharybin [Fri, 1 Aug 2014 04:56:20 +0000 (10:56 +0600)]
Revert "Fix T41226: Wrong Undo on curves and hooks"

This reverts commit e042c8428f8c0c0a72cdd23d2c058c20ab5745ed.

Proper fix will come later, or be declared a TODO.

7 years agoOSX/cmake: adapt bundle structure according scons
Jens Verwiebe [Thu, 31 Jul 2014 23:23:23 +0000 (01:23 +0200)]
OSX/cmake: adapt bundle structure according scons

7 years agoBake-API: cleanup - missing (size_t) promotion
Dalai Felinto [Thu, 31 Jul 2014 23:08:05 +0000 (20:08 -0300)]
Bake-API: cleanup - missing (size_t) promotion

7 years agoOSX: updated codesigning README and removed not longer valid rule plists
Jens Verwiebe [Thu, 31 Jul 2014 23:01:12 +0000 (01:01 +0200)]
OSX: updated codesigning README and removed not longer valid rule plists

7 years agoOSX/scons: Change Blender bundle datastructures + referennces to match the upcoming...
Jens Verwiebe [Thu, 31 Jul 2014 22:57:17 +0000 (00:57 +0200)]
OSX/scons: Change Blender bundle datastructures + referennces to match the upcoming codesigning needs
- i used deprecated rules up to now which will break in OSX > 10.9.5 and 10.10 > dp4
- todo: adapt cmake due it will break with this commit

7 years agoFix T41236: Rendered viewport doesn't update with material actions
Sergey Sharybin [Thu, 31 Jul 2014 16:01:56 +0000 (22:01 +0600)]
Fix T41236: Rendered viewport doesn't update with material actions

The issue was caused by NLA evaluation without actions not setting
id's flag as updated (as that's happening when action writes data
to the ID datablock).

Added the same flag set for the NLA evaluation as what's happening
for actions.

7 years agoStyle cleanup
Campbell Barton [Thu, 31 Jul 2014 16:03:09 +0000 (02:03 +1000)]
Style cleanup

7 years agoFix build player...
Bastien Montagne [Thu, 31 Jul 2014 15:34:13 +0000 (17:34 +0200)]
Fix build player...

7 years agoFix T40958 align rotation + project individual elements not working
Antony Riakiotakis [Thu, 31 Jul 2014 15:02:03 +0000 (17:02 +0200)]
Fix T40958 align rotation + project individual elements not working

This is another example of transform code crappiness. Projection
snapping for objects is handled separately than regular snapping.
Luckilly for us, we have the normal ready from the raycast result and a
copy of code from ElementRotation function can do the necessary
rotations for us.

I have not enforced constraints here (arguably, maybe I should, and the
already present projection snapping should do that too but seems it is
commented out and the unorthodox order of operations here has me a bit
scared. Leaving as TODO)

7 years agoUse dynamically linked SDL 1.2.15 on windows x64
Martijn Berger [Thu, 31 Jul 2014 14:43:02 +0000 (16:43 +0200)]
Use dynamically linked SDL 1.2.15 on windows x64

7 years agoFix T41258: Crash when entering edit mode while viewport render is enabled
Sergey Sharybin [Thu, 31 Jul 2014 14:18:51 +0000 (20:18 +0600)]
Fix T41258: Crash when entering edit mode while viewport render is enabled

The issue was caused by the render engine loading edit mesh, which re-allocates
mesh array which might be referenced by other object's derived meshed.

Worst thing about this is that updating render engine happens from the end of
scene update function, after all the objects are updated and so. This is needed
so render engine gets the update objects which is correct.

The only proper way to solve the issue is to make it so viewport engine does not
leave objects in inconsistent state, meaning nobody will reference to freed data.

In order to reach this we do edit mesh loading before running objects update so
all the objects which uses that mesh will have proper references in the derived

This also solves old creepyness which happened before when having single object
in edit mode. tweaking it will calculate derived mesh as a part of scene update,
then this derived mesh will be freed by edit mesh loading and viewport will be
creating derived mesh again.

Now render engine is expected to do nothing with meshes which are in edit mode,
but they still need to load edit data for non0meshes. It's not really easy to
do from the BKE level because needed functions are implemented in the editor.

Thanks Campbell for the review!

Differential Revision:

7 years agoPartial fix of T40824,
Antony Riakiotakis [Thu, 31 Jul 2014 12:24:26 +0000 (14:24 +0200)]
Partial fix of T40824,

Fill selection for file browser moves to ctrl-shift click due to
collision with emulate middle mouse button option

7 years agoFix T41226: Wrong Undo on curves and hooks
Sergey Sharybin [Thu, 31 Jul 2014 12:21:30 +0000 (18:21 +0600)]
Fix T41226: Wrong Undo on curves and hooks

7 years agoFix T41140
Antony Riakiotakis [Thu, 31 Jul 2014 10:15:38 +0000 (12:15 +0200)]
Fix T41140

Yet another attempt to fix the annoying lines that crop up in texture
painting on edges and quads. I feel this needs better investigation but
using pixel tolerance here looks like alleviates the issue.

7 years agoFix T41257.
Antony Riakiotakis [Thu, 31 Jul 2014 09:46:19 +0000 (11:46 +0200)]
Fix T41257.

We need to allow faces without slots to initialize a UV layer or seam
checking code will go bananas.

7 years agoCycles Bake: use size_t instead of width, height
Dalai Felinto [Mon, 28 Jul 2014 17:29:03 +0000 (14:29 -0300)]
Cycles Bake: use size_t instead of width, height

(original patch by Sergey Sharybin)

Note: RNA API can't use size_t at the moment. Once it does this patch
can be tweaked a bit to fully benefit from size_t larger dimensions.
(right now num_pixels is passed as int)

Reviewed By: sergey, campbellbarton
Differential Revision:

7 years agoBake-API: use size_t instead of width, height
Dalai Felinto [Mon, 28 Jul 2014 17:29:03 +0000 (14:29 -0300)]
Bake-API: use size_t instead of width, height

(original patch by Sergey Sharybin)

Note: RNA API can't use size_t at the moment. Once it does this patch
can be tweaked a bit to fully benefit from size_t larger dimensions.
(right now num_pixels is passed as int)

Reviewed By: sergey, campbellbarton
Differential Revision:

7 years agoDefault LLVM_STATIC to OFF (it's kinda broken currently, gives various linking issues).
Bastien Montagne [Wed, 30 Jul 2014 18:31:13 +0000 (20:31 +0200)]
Default LLVM_STATIC to OFF (it's kinda broken currently, gives various linking issues).

7 years agouser lower threshold for Harris feature detector
Sebastian Koenig [Wed, 30 Jul 2014 16:27:41 +0000 (22:27 +0600)]
user lower threshold for Harris feature detector