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

7 years agoBLI_path_utils: rename BLI_clean -> BLI_path_native_slash
Campbell Barton [Wed, 30 Jul 2014 15:40:05 +0000 (01:40 +1000)]
BLI_path_utils: rename BLI_clean -> BLI_path_native_slash

7 years agoFix T41241: VSE: cropping strips puts a transparent line through the image.
Bastien Montagne [Wed, 30 Jul 2014 15:28:48 +0000 (17:28 +0200)]
Fix T41241: VSE: cropping strips puts a transparent line through the image.

7 years agoCode cleanup, make pie-menus code be closer to master
Antony Riakiotakis [Wed, 30 Jul 2014 13:50:37 +0000 (15:50 +0200)]
Code cleanup, make pie-menus code be closer to master

7 years agoFix addon crash when trying listdir a directory we have no permission to.
Bastien Montagne [Wed, 30 Jul 2014 13:35:19 +0000 (15:35 +0200)]
Fix addon crash when trying listdir a directory we have no permission to.

7 years agoCleanup: general cleanup in BLI_math code (mostly, use 'const' where possible, true...
Bastien Montagne [Wed, 30 Jul 2014 09:00:59 +0000 (11:00 +0200)]
Cleanup: general cleanup in BLI_math code (mostly, use 'const' where possible, true/false for booleans, format for float litterals).

7 years agoleanup: style, use 'const' where possible, and simplified blend funcs.
Bastien Montagne [Wed, 30 Jul 2014 08:42:25 +0000 (10:42 +0200)]
leanup: style, use 'const' where possible, and simplified blend funcs.

Much better to use small loops when doing complex operations over color elements
(any serious compiler will flatten them anyway), avoids (some!) stupid mistakes when
editing their code.

Also, use min/max funcs instead of lengthier 'if (foo < 0) foo = 0'.

7 years agoAutomatic commit by arc
gaiaclary [Wed, 30 Jul 2014 10:00:11 +0000 (12:00 +0200)]
Automatic commit by arc

7 years agoBMesh: callback for bmbvh so caller can choose faces
Campbell Barton [Wed, 30 Jul 2014 06:48:20 +0000 (16:48 +1000)]
BMesh: callback for bmbvh so caller can choose faces

7 years agoBugfix T41240: Home key doesn't show everything on F-Curves
Joshua Leung [Wed, 30 Jul 2014 06:15:49 +0000 (18:15 +1200)]
Bugfix T41240: Home key doesn't show everything on F-Curves

Own copy and paste typo in 73d157e meant that this was not in some cases,
the bounds calculated may be incorrect.

7 years agomissed last commit
Campbell Barton [Wed, 30 Jul 2014 05:02:42 +0000 (15:02 +1000)]
missed last commit

7 years agoBLI_listbase: consistent name prefix
Campbell Barton [Wed, 30 Jul 2014 05:01:16 +0000 (15:01 +1000)]
BLI_listbase: consistent name prefix

7 years agoGHash: generic comparison for int[4]
Campbell Barton [Tue, 29 Jul 2014 21:30:18 +0000 (07:30 +1000)]
GHash: generic comparison for int[4]

7 years agoOSX/buildbot: after recent scons fix, UTF lib linkage is handled dependent on config...
Jens Verwiebe [Tue, 29 Jul 2014 18:08:41 +0000 (20:08 +0200)]
OSX/buildbot: after recent scons fix,  UTF lib linkage is handled dependent on config, so remove now obsolete lines

7 years agoOSX/cmake: fix linking utf-functions if llvm is disabled
Jens Verwiebe [Tue, 29 Jul 2014 17:46:05 +0000 (19:46 +0200)]
OSX/cmake: fix linking utf-functions if llvm is disabled

7 years agoFix T41223: F-Curve sliders won't update values during playback when mouse cursor...
Bastien Montagne [Tue, 29 Jul 2014 13:31:53 +0000 (15:31 +0200)]
Fix T41223: F-Curve sliders won't update values during playback when mouse cursor is outside the left panel.

7 years agoFix T41228: Selection of bones bug.
Bastien Montagne [Tue, 29 Jul 2014 13:02:28 +0000 (15:02 +0200)]
Fix T41228: Selection of bones bug.

Turns out to be mostly some cleanup in Pose select code, got rid of magic numbers
(now understand usual SEL_xxx enums) in ED_pose_deselectall(), which was renamed
to ED_pose_de_selectall, and have a new bool parameter to ignore visibility status
in its process (was the root of the reported issue).

Also factorized slightly "(de)select all" code. Yet this area could use much more
cleanup probably...

7 years agoFix T41227: Do not select unselectable items when unhiding them!
Bastien Montagne [Tue, 29 Jul 2014 10:58:12 +0000 (12:58 +0200)]
Fix T41227: Do not select unselectable items when unhiding them!

7 years agoFix T41174: Tangent space required UV map in Cycles
Sergey Sharybin [Tue, 29 Jul 2014 10:07:05 +0000 (16:07 +0600)]
Fix T41174: Tangent space required UV map in Cycles

Now Cycles behaves in the same way as BI in terms of using
sphere projection of orco coordinates if there's no UV map
when calculating tangent space.

7 years agoOSX/scons: Fix linking if llvm is not used ( new osl/llvm/oiio related )
Jens Verwiebe [Tue, 29 Jul 2014 08:59:57 +0000 (10:59 +0200)]
OSX/scons: Fix linking if llvm is not used ( new osl/llvm/oiio related )

7 years agoCycles: Make Glass Shader Color default to 1.0.
Thomas Dinges [Tue, 29 Jul 2014 08:11:30 +0000 (10:11 +0200)]
Cycles: Make Glass Shader Color default to 1.0.

This came up a few times already, most of the time you want a clear white glass, and not a greyish like one. :)

7 years agoImplement get_split_task_count to make device_network compile again.
Martijn Berger [Mon, 28 Jul 2014 20:44:33 +0000 (22:44 +0200)]
Implement get_split_task_count to make device_network compile again.

7 years agoBGE: Constraint wrapper fix.
HG1 [Tue, 29 Jul 2014 03:20:59 +0000 (00:20 -0300)]
BGE: Constraint wrapper fix.

1. This patch fix the KX_ConstraintWrapper documentation (radian instead of degrees).
2. It also adds the missing GENERIC_6DOF_CONSTRAINT constant.

Reviewers: dfelinto

Reviewed By: dfelinto

Differential Revision:

7 years agoFix T41204 Python KX_lightObject.distance bug by Jon Szabo (thatonejonguy)
Dalai Felinto [Tue, 29 Jul 2014 03:12:17 +0000 (00:12 -0300)]
Fix T41204 Python KX_lightObject.distance bug by Jon Szabo (thatonejonguy)

Reviewers: dfelinto

Subscribers: thatonejonguy

Projects: #game_engine

Differential Revision:

7 years agoInstall_deps: Raise openexr/ilmbase magic numbers, looks to be needed...
Bastien Montagne [Mon, 28 Jul 2014 19:09:30 +0000 (21:09 +0200)]
Install_deps: Raise openexr/ilmbase magic numbers, looks to be needed...

Btw, if someone can explain me why OPENEXR_FORCE_REBUILD does not work like
all other force options... :/

7 years agoOSX/buildbot: Fix 32bit compile by removing OSL/LLVM and add back UTF to Collada
Jens Verwiebe [Mon, 28 Jul 2014 19:03:42 +0000 (21:03 +0200)]
OSX/buildbot: Fix 32bit compile by removing  OSL/LLVM and add back UTF to Collada
- due OSL i386 never worked on OSX, the new libs do not even contain this arch !
- As we had to fix duplicated symbols from generic UTF finctions same in LLVM and COLLADA,
LLVM-less build must have UTF lib reenabled

7 years agoAs suggested by Campbell, rather use BVHTree to get len_diff in this morning's fix.
Bastien Montagne [Mon, 28 Jul 2014 18:30:47 +0000 (20:30 +0200)]
As suggested by Campbell, rather use BVHTree to get len_diff in this morning's fix.

Note than it's using nearest faces, since it showed to be much more performant than
nearest vertex (quite odd, it's about 40% slower for the first element, then 50 times quicker
for all others, as if BVH was cached, and building face was slower than verts one,
but then using it, much quicker!).

7 years agoCMake: add glew-mx library
Campbell Barton [Mon, 28 Jul 2014 17:53:15 +0000 (03:53 +1000)]
CMake: add glew-mx library

7 years agoCMake: use our template for finding the glew library
Campbell Barton [Mon, 28 Jul 2014 17:37:56 +0000 (03:37 +1000)]
CMake: use our template for finding the glew library

7 years agoFix bundling of requests on debian-like systems
Sergey Sharybin [Mon, 28 Jul 2014 17:16:39 +0000 (23:16 +0600)]
Fix bundling of requests on debian-like systems

Couple of issues:

- Debian systems doesn't use site-packages but uses
  dist-packages instead.

- Requetss from ubuntu repository depends on urlllib3
  and chardet, which also implies six. copy those libs
  as well.

I know it's all rather annoying, but no that much
choise is in here..

7 years agoSwitch buildbot to new llvm/oiio/osl
Sergey Sharybin [Mon, 28 Jul 2014 17:00:21 +0000 (23:00 +0600)]
Switch buildbot to new llvm/oiio/osl

7 years agoMake requests python package to be detected in the same way as numpy
Sergey Sharybin [Mon, 28 Jul 2014 14:42:30 +0000 (20:42 +0600)]
Make requests python package to be detected in the same way as numpy

This solves missing requests package reported on the systems where it's
located in dist-packages rather than in site-packages.

To do this there's now a helper macros which handles both requests and
numpy now and could be used for more packages in the future.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

7 years agoFix T41191: Face snapping doesn't work properly.
Bastien Montagne [Mon, 28 Jul 2014 13:15:18 +0000 (15:15 +0200)]
Fix T41191: Face snapping doesn't work properly.

Issue was caused by rB47ec0394ca3d, which disabled BBox check in editmode - but bbox check was also
setting `len_diff`, which is mandatory when doing ray_start_local correction for ortho view...

Now, in this case, we do a quick rough compute of len_diff from vertices coordinates (accuracy is not
needed here, we just have to be sure corrected `ray_start_local` remains 'before' (outside) of the

7 years agoFix T41206: Render Border - Operator Panel - Only Camera - Broken?
Sergey Sharybin [Mon, 28 Jul 2014 11:18:08 +0000 (17:18 +0600)]
Fix T41206: Render Border - Operator Panel - Only Camera - Broken?

This is rather internal use only, no need to expose this option to
the redo panel.

7 years agoFix T41201: Blender Crashes when UV Editing
Sergey Sharybin [Mon, 28 Jul 2014 11:10:33 +0000 (17:10 +0600)]
Fix T41201: Blender Crashes when UV Editing

Disable adding snapping point outside of 3D space for now,
visualization of the points is not implemented outside of
this space and silently adding them wouldn't really be a
good idea.

7 years agoWarnings
Campbell Barton [Mon, 28 Jul 2014 10:41:37 +0000 (20:41 +1000)]

7 years agoReduce OM limit for sculpting after discussion with Antony
Sergey Sharybin [Mon, 28 Jul 2014 10:42:08 +0000 (16:42 +0600)]
Reduce OM limit for sculpting after discussion with Antony

That's rather tricky to think of a good threshold here, and
maybe we'd better use something based on the number of faces

Anyway, let's give it a try this way and see what happens.

7 years agoFix T41221: 3d view rendered mode crashes on new scene
Sergey Sharybin [Mon, 28 Jul 2014 10:32:36 +0000 (16:32 +0600)]
Fix T41221: 3d view rendered mode crashes on new scene

7 years agoFix T40831: Shrink wrap modifier causes very high CPU usage when targeting meshes...
Sergey Sharybin [Mon, 28 Jul 2014 10:13:47 +0000 (16:13 +0600)]
Fix T40831: Shrink wrap modifier causes very high CPU usage when targeting meshes with shaped keys

Same issue as revious one -- need to start OMP threads only
when there's enough data to crunch.

7 years agoRNA: check for valid ranges with int properties (C11 only)
Campbell Barton [Mon, 28 Jul 2014 10:00:33 +0000 (20:00 +1000)]
RNA: check for valid ranges with int properties (C11 only)

7 years agoFix T41193: 2.71 use 100% of CPU at sculpt
Sergey Sharybin [Mon, 28 Jul 2014 09:47:32 +0000 (15:47 +0600)]
Fix T41193: 2.71 use 100% of CPU at sculpt

Issue wascaused by the famous OpenMP crap in MSVC2013,
so only way is to use openmp threading if number of BVH
nodes is high enough.

Made it 8 for now, which seems to work rather fine on my
laptop and adult dragon from sintel. But maybe it's to be
adjusted a bit more.

7 years agoFix invalid RNA limits
Campbell Barton [Mon, 28 Jul 2014 07:47:06 +0000 (17:47 +1000)]
Fix invalid RNA limits