blender-staging.git
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)]
Spelling

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
requirements

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
mesh.

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: https://developer.blender.org/D697

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: https://developer.blender.org/D688

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: https://developer.blender.org/D688

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: https://developer.blender.org/D672

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: https://developer.blender.org/D689

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: https://developer.blender.org/D686

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
geometry).

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)]
Warnings

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
instead.

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

7 years agoUI: Change appearance for panel drag area (D637)
Campbell Barton [Mon, 28 Jul 2014 04:57:39 +0000 (14:57 +1000)]
UI: Change appearance for panel drag area (D637)

Patch by blakenator with own edits

7 years agoFix T41139: Cycles Hair BSDF roughness problem
Sergey Sharybin [Sun, 27 Jul 2014 13:49:43 +0000 (19:49 +0600)]
Fix T41139: Cycles Hair BSDF roughness problem

7 years agoT41196: Python call of bake operator cause Blender Crash
Dalai Felinto [Sun, 27 Jul 2014 13:27:25 +0000 (10:27 -0300)]
T41196: Python call of bake operator cause Blender Crash

We could make the exec to also show the progress bar, but I think it is not needed.

7 years agoignore in-source doc building dirs
Campbell Barton [Sun, 27 Jul 2014 12:04:10 +0000 (22:04 +1000)]
ignore in-source doc building dirs

7 years agoFix uninitialized vars
Campbell Barton [Sun, 27 Jul 2014 07:56:24 +0000 (17:56 +1000)]
Fix uninitialized vars

7 years agoInstall_deps: forgot to cleanup that in latest commits.
Bastien Montagne [Sun, 27 Jul 2014 07:14:29 +0000 (09:14 +0200)]
Install_deps: forgot to cleanup that in latest commits.

7 years agoCMake/MSVC: use '/SAFESEH:NO' linker flag, needed for some systens (D682)
Campbell Barton [Sun, 27 Jul 2014 03:50:21 +0000 (13:50 +1000)]
CMake/MSVC: use '/SAFESEH:NO' linker flag, needed for some systens (D682)

7 years agoStyle cleanup GHOST/Win32
Campbell Barton [Sun, 27 Jul 2014 03:40:39 +0000 (13:40 +1000)]
Style cleanup GHOST/Win32

7 years agoFix T41180: Crash when using motion blur with Freestyle.
Tamito Kajiyama [Sat, 26 Jul 2014 18:05:17 +0000 (03:05 +0900)]
Fix T41180: Crash when using motion blur with Freestyle.

In pipeline.c, do_render_3d() is called multiple times for each frame when
motion blur is used.  This caused duplicates of the same struct Render instance
in re->freestyle_renders, resulting in fatal double freeing of allocated memory.

7 years agoOSX/GHOST: Using lion_fullscreen suffers from an uncovered problem when called from...
Jens Verwiebe [Sat, 26 Jul 2014 16:51:39 +0000 (18:51 +0200)]
OSX/GHOST: Using lion_fullscreen suffers from an uncovered problem when called from operator, disabled for now so ALT-F11
uses old behavior again. OSX menu and CTL-CMD-F still work as lion fullscreen as well as right-upper corner fs window-icon
- We must investigate here why double promotion happens from op calls ( dispatchEvents on redraw cause duplicated calls here )
- The actual op calls cause fs to be in a wrong state, so also mousehandles fail and CTX_wm_window(C) is not valid.
- similar problem is with quit op, which does not close the app right ( totblocks )
- i would prefer to try getting direct os function call here rather

7 years agoOSX/cmake: little tweak for last commit
Jens Verwiebe [Sat, 26 Jul 2014 16:39:45 +0000 (18:39 +0200)]
OSX/cmake: little tweak for last commit

7 years agoOSX/cmake: update buildsys for new osl/llvm/oiio usage, also use osx_locals.map in...
Jens Verwiebe [Sat, 26 Jul 2014 16:10:10 +0000 (18:10 +0200)]
OSX/cmake: update buildsys for new osl/llvm/oiio usage, also use osx_locals.map in cmake
- fixes T40887

7 years agoAdding Mask select mode to Assign weights from Bone Heat (when called in Weight Paint...
gaiaclary [Sat, 26 Jul 2014 15:54:18 +0000 (17:54 +0200)]
Adding Mask select mode to Assign weights from Bone Heat (when called in Weight Paint mode)

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D681

7 years agoNew compositor node "Sun Beams"
Lukas Tönne [Sat, 26 Jul 2014 10:59:29 +0000 (12:59 +0200)]
New compositor node "Sun Beams"

This allows adding a "fake" sun beam effect, simulating crepuscular rays
from light being scattered in a medium like the atmosphere or deep water.
Such effects can be created also by renderers using volumetric lighting,
but the compositor feature is a lot cheaper and is independent from 3D
rendering. This makes it ideally suited for motion graphics.

The implementation uses am optimized accumulation method for gathering
color values along a line segment. The inner buffer loop uses fixed
offset increments to avoid unnecessary multiplications and avoids
variables by using compile-time specialization (see inline comments
for further details).

7 years agoCorrect includes on different endian systems
Campbell Barton [Sat, 26 Jul 2014 08:39:27 +0000 (18:39 +1000)]
Correct includes on different endian systems

7 years agoFix bug in validate mesh code (could use index out of range).
Bastien Montagne [Fri, 25 Jul 2014 14:45:26 +0000 (16:45 +0200)]
Fix bug in validate mesh code (could use index out of range).

7 years agoCycles Bake: show progress bar during bake
Dalai Felinto [Tue, 22 Jul 2014 21:41:01 +0000 (18:41 -0300)]
Cycles Bake: show progress bar during bake

Baking progress preview is not possible, in parts due to the way the API
was designed. But at least you get to see the progress bar while baking.

Reviewers: sergey

Differential Revision: https://developer.blender.org/D656

7 years agoMinor changes:
Antony Riakiotakis [Fri, 25 Jul 2014 13:27:03 +0000 (15:27 +0200)]
Minor changes:

* Changing UV map updates the UV editor.
* UV Layer -> UV Map

7 years agoSwitch to Cuda 4.0 style api for kernel invocation. This is a small clean-up that...
Martijn Berger [Fri, 25 Jul 2014 11:33:19 +0000 (13:33 +0200)]
Switch to Cuda 4.0 style api for kernel invocation. This is a small clean-up that has no functional changes but makes code a bit more readable.

Differential revision: https://developer.blender.org/D659

Reviewed by: Sergey Sharybin, Thomas Dinges

7 years agoInstall_deps: Force to always compile OCIO for now.
Bastien Montagne [Fri, 25 Jul 2014 10:52:40 +0000 (12:52 +0200)]
Install_deps: Force to always compile OCIO for now.

This is a much simpler fix to that libyaml-cpp mess, since doing it that way we get our static own
libyaml-cpp... And this should work for all platforms (realized libymal-cpp-ver option was only
implemented for deb-like distro, since it was the first place where issue showed up :/ ).

7 years agoInstall_deps: Update OSL to 1.5.10, llvm to 3.4 and oiio to 1.4.11.
Bastien Montagne [Fri, 25 Jul 2014 10:43:05 +0000 (12:43 +0200)]
Install_deps: Update OSL to 1.5.10, llvm to 3.4 and oiio to 1.4.11.

Note: had to swicth back to own repo for osl as well, ILM guys seem unable to handle
CMake build system properly!

7 years agoFix inconsistent use of print_error() and fprintf(stderr, ...) in MEM_guarded_printme...
Tamito Kajiyama [Fri, 25 Jul 2014 10:22:58 +0000 (19:22 +0900)]
Fix inconsistent use of print_error() and fprintf(stderr, ...) in MEM_guarded_printmemlist_internal().

Also extended the size of buf[] in print_error() to prevent mem_printmemlist_pydict_script[]
from getting truncated when MEM_printmemlist_pydict() is used.

Differential revision: https://developer.blender.org/D675

Reviewed by: Campbell Barton

7 years agoYet another OSL compilation fix...sorry.
Thomas Dinges [Fri, 25 Jul 2014 09:42:21 +0000 (11:42 +0200)]
Yet another OSL compilation fix...sorry.

7 years agoCycles: Drop old OSL closure compatibility code.
Thomas Dinges [Fri, 25 Jul 2014 09:42:01 +0000 (11:42 +0200)]
Cycles: Drop old OSL closure compatibility code.

This was added to keep custom OSL scripts with Toon and SSS closure calls working. 1 year after the change, we can drop the compatibility code now.

7 years agoOne more fix for new OSL libs.
Thomas Dinges [Fri, 25 Jul 2014 09:23:15 +0000 (11:23 +0200)]
One more fix for new OSL libs.