6 years agoBLI_utildefines: add UNUSED_VARS() macro
Campbell Barton [Mon, 24 Nov 2014 11:01:51 +0000 (12:01 +0100)]
BLI_utildefines: add UNUSED_VARS() macro

6 years agoFix button to add simple UVs not getting removed after pressing it once.
Antony Riakiotakis [Mon, 24 Nov 2014 09:42:14 +0000 (10:42 +0100)]
Fix button to add simple UVs not getting removed after pressing it once.

6 years agoSCons: correct include for win, also minor cleanup
Campbell Barton [Mon, 24 Nov 2014 08:33:12 +0000 (09:33 +0100)]
SCons: correct include for win, also minor cleanup

6 years agoSCons: correct includes after recent refactor
Campbell Barton [Sun, 23 Nov 2014 23:47:32 +0000 (00:47 +0100)]
SCons: correct includes after recent refactor

6 years agoFix T42618: Lock to view + autokey bug
Campbell Barton [Sun, 23 Nov 2014 23:27:50 +0000 (00:27 +0100)]
Fix T42618: Lock to view + autokey bug

in fact support for this combination wasn't added at all.

6 years agoCleanup: de-duplicate image drag & drop logic
Campbell Barton [Sun, 23 Nov 2014 21:48:48 +0000 (22:48 +0100)]
Cleanup: de-duplicate image drag & drop logic

also don't make library paths relative on image load.

6 years agoMinor edits to T42649 fix
Campbell Barton [Sun, 23 Nov 2014 21:00:26 +0000 (22:00 +0100)]
Minor edits to T42649 fix

- only modify paths for newly loaded images
- don't attempt to read from library paths

6 years agoFix BLI_Bitmap - was not usable in BKE area (strict compile flags).
Bastien Montagne [Sun, 23 Nov 2014 19:51:08 +0000 (20:51 +0100)]
Fix BLI_Bitmap - was not usable in BKE area (strict compile flags).

6 years agoFix freestyle compile.
Bastien Montagne [Sun, 23 Nov 2014 19:49:34 +0000 (20:49 +0100)]
Fix freestyle compile.

Do not know why this shows up now, probably a recent tweak in BLI_utildefines.h or so...

6 years agoFix T42649: Use Relative Paths for Node Editor & 3D View Images
julianeisel [Sun, 23 Nov 2014 18:38:27 +0000 (19:38 +0100)]
Fix T42649: Use Relative Paths for Node Editor & 3D View Images

Images are now added with relative paths to the Node Editor and the 3D View.

6 years agoRefactor: BLI_path_util (part 2)
Campbell Barton [Sun, 23 Nov 2014 14:54:29 +0000 (15:54 +0100)]
Refactor: BLI_path_util (part 2)

Use BKE_appdir/tempdir naming prefix for functions extracted from BLI_path_util

6 years agoRefactor: BLI_path_util (split out app directory access)
Campbell Barton [Sun, 23 Nov 2014 13:37:13 +0000 (14:37 +0100)]
Refactor: BLI_path_util (split out app directory access)

This module is intended for path manipulation functions
but had utility functions added to access various directories.

6 years agoCleanup: warnings
Campbell Barton [Sun, 23 Nov 2014 14:13:58 +0000 (15:13 +0100)]
Cleanup: warnings

6 years agoCycles UI: Several fixes for recent additions...
Thomas Dinges [Sat, 22 Nov 2014 19:21:18 +0000 (20:21 +0100)]
Cycles UI: Several fixes for recent additions...

* Alpha Property was removed (Fix T42690)
* Some tweaks to make the panel look better again.
* Use abreviated form "Multiple Importance" everywhere, for consistency.

6 years agoMath Lib: add constant: M_SQRT1_3 1/sqrt(3)
Campbell Barton [Sat, 22 Nov 2014 17:11:46 +0000 (18:11 +0100)]
Math Lib: add constant: M_SQRT1_3 1/sqrt(3)

6 years agoFix T42688: python crash: bpy.context.scene.update().
Bastien Montagne [Sat, 22 Nov 2014 13:39:53 +0000 (14:39 +0100)]
Fix T42688: python crash: bpy.context.scene.update().

`ED_render_scene_update()` should ensure it does have some WM to work on...

6 years agoBugfix T42549: Grease pencil layers are not scene-specific for "full copy scenes"
Joshua Leung [Sat, 22 Nov 2014 05:04:08 +0000 (18:04 +1300)]
Bugfix T42549: Grease pencil layers are not scene-specific for "full copy scenes"

6 years agoFix for previous commit
Joshua Leung [Sat, 22 Nov 2014 05:03:37 +0000 (18:03 +1300)]
Fix for previous commit

gpencil_data_duplicate() was being used for gp drawing undo buffers, where using an
exact copy is exactly what we want/need. Instead, the code here now has an additional
arg for determining whether a direct copy is warranted or not.

6 years agoBugfix: Duplicating Grease Pencil datablocks wasn't doing so in a safe way
Joshua Leung [Fri, 21 Nov 2014 12:52:28 +0000 (01:52 +1300)]
Bugfix: Duplicating Grease Pencil datablocks wasn't doing so in a safe way

Grease Pencil data (bGPdata) is now a datablock, so it isn't safe to use
MEM_dupallocN() for copying new instances of these anymore.

6 years agoFix leftover f postfix from C code.
Antony Riakiotakis [Fri, 21 Nov 2014 20:39:52 +0000 (21:39 +0100)]
Fix leftover f postfix from C code.

6 years agoText Editor: incorrect clipping at bottom
Campbell Barton [Fri, 21 Nov 2014 20:22:31 +0000 (21:22 +0100)]
Text Editor: incorrect clipping at bottom

Patch T42637 by @donfabio

6 years agofix T42676 replaced windows specific include by BLI_utildefines.h
Gaia Clary [Fri, 21 Nov 2014 15:01:18 +0000 (16:01 +0100)]
fix T42676 replaced windows specific include by BLI_utildefines.h

6 years agoBMesh: check for loop side-of-loop & side-of-edge
Campbell Barton [Thu, 20 Nov 2014 20:38:05 +0000 (21:38 +0100)]
BMesh: check for loop side-of-loop & side-of-edge

6 years agoCleanup: typo
Campbell Barton [Fri, 21 Nov 2014 13:14:50 +0000 (14:14 +0100)]
Cleanup: typo

6 years agoCycles: support for specular color in solid shading mode, available in
Antony Riakiotakis [Fri, 21 Nov 2014 13:07:25 +0000 (14:07 +0100)]
Cycles: support for specular color in solid shading mode, available in
the material panel.

Patch by Phillipp Oeser (D62) with some minor modifications, thanks!

6 years agoBugfix T42048: Keyframes missing when animating particle system blend texture parameters
Joshua Leung [Fri, 21 Nov 2014 12:29:32 +0000 (01:29 +1300)]
Bugfix T42048: Keyframes missing when animating particle system blend texture parameters

Textures attached to particle systems are now get their animation data listed
under the particle systems they are attached to now. This is the most convenient
and direct way that these can get included

6 years agoCMake: disable OSL if its not found
Campbell Barton [Fri, 21 Nov 2014 12:07:18 +0000 (13:07 +0100)]
CMake: disable OSL if its not found

6 years agoBugfix T41527: Animations of world texture properties invisible in anim editors
Joshua Leung [Fri, 21 Nov 2014 11:55:57 +0000 (00:55 +1300)]
Bugfix T41527: Animations of world texture properties invisible in anim editors

Was caused by a typo - "items" was used in place of "tmp_items", causing animation
in the texture to get ignored if nothing else was present

6 years agoBugfix T42648: Invert Selection operator is not working for animation channels
Joshua Leung [Fri, 21 Nov 2014 11:43:41 +0000 (00:43 +1300)]
Bugfix T42648: Invert Selection operator is not working for animation channels

The wrong selection mode was being used/passed to operators.

6 years agoFix T42421: HDR reader could easily read past buffer (truncated HDR files e.g.) and...
Bastien Montagne [Fri, 21 Nov 2014 11:26:13 +0000 (12:26 +0100)]
Fix T42421: HDR reader could easily read past buffer (truncated HDR files e.g.) and segfault.

Now readers get an 'mem_eof' guard pointer, and they abort in case they try to go past it.

6 years agoTask scheduler: Add an option to limit number of threads per pool
Sergey Sharybin [Fri, 21 Nov 2014 10:31:30 +0000 (11:31 +0100)]
Task scheduler: Add an option to limit number of threads per pool

This way we can have scheduler capable of scheduling tasks on all the CPUs
but in the same time we can limit tasks like baking (in the future) to use
no more than given number of threads.

6 years agoCompsitor: White space cleanup
Sergey Sharybin [Thu, 20 Nov 2014 20:05:03 +0000 (21:05 +0100)]
Compsitor: White space cleanup

6 years agoCleanup: ints/shorts -> bool.
Bastien Montagne [Thu, 20 Nov 2014 19:23:13 +0000 (20:23 +0100)]
Cleanup: ints/shorts -> bool.

6 years agoFix T42622, environment texture GLSL result different from rendering.
Antony Riakiotakis [Thu, 20 Nov 2014 18:43:32 +0000 (19:43 +0100)]
Fix T42622, environment texture GLSL result different from rendering.

Also included mirror ball shader, which was missing.

6 years agoFix T42639, editcurve flags not getting restored on undo.
Antony Riakiotakis [Thu, 20 Nov 2014 17:58:24 +0000 (18:58 +0100)]
Fix T42639, editcurve flags not getting restored on undo.

Error here could be reproduced by tweaking curve properties such as
2d-3d or fill type and undoing.

6 years agoFix T42662 hide unselected does not reveal selected.
Antony Riakiotakis [Thu, 20 Nov 2014 17:11:12 +0000 (18:11 +0100)]
Fix T42662 hide unselected does not reveal selected.

Not sure if this is a bugfix exactly but should help the gooseberry team
with their workflow.

6 years agoFix T42660 snapping not working nicely on graph editor.
Antony Riakiotakis [Thu, 20 Nov 2014 16:44:47 +0000 (17:44 +0100)]
Fix T42660 snapping not working nicely on graph editor.

Basically, get the grid increments and reuse them when snapping. System
is slightly crappy here, we should calculate those factors only once,
but leaving as todo for later.

6 years agoFix color tweaking in vertex painting not getting an undo push (would
Antony Riakiotakis [Thu, 20 Nov 2014 14:43:41 +0000 (15:43 +0100)]
Fix color tweaking in vertex painting not getting an undo push (would
cause color reset between strokes)

6 years agoFix T42647, vertex and weight painting mode do not display solid shaded
Antony Riakiotakis [Thu, 20 Nov 2014 14:26:58 +0000 (15:26 +0100)]
Fix T42647, vertex and weight painting mode do not display solid shaded
when VBOs is off.

6 years agoSCons: Proper solution for local symbols map
Sergey Sharybin [Thu, 20 Nov 2014 14:27:10 +0000 (15:27 +0100)]
SCons: Proper solution for local symbols map

Configuration used to override the link flags, it better restore them
once the configuration is done.

6 years agoFix T42638: Roll angle inconsistent flip in edit mode.
Bastien Montagne [Thu, 20 Nov 2014 13:57:35 +0000 (14:57 +0100)]
Fix T42638: Roll angle inconsistent flip in edit mode.

Basically, `angle_compat_rad()` was completely broken -
example of result it could produce:

| new angle | compat angle |    result
| -0.000000 |   3.141593   | -> 3.141593

... Where 0.0 (or 2 * PI) would be expected!

6 years agoCycles: Remove dynamic library helper files
Sergey Sharybin [Thu, 20 Nov 2014 13:54:41 +0000 (18:54 +0500)]
Cycles: Remove dynamic library helper files

They were only needed for CUDA wrangler. Since we've switched to CUEW
this utility functions are no longer needed.

6 years agoCycles: Fix typo on graphiz graph dumper
Sergey Sharybin [Thu, 20 Nov 2014 13:30:13 +0000 (18:30 +0500)]
Cycles: Fix typo on graphiz graph dumper

6 years agoBugfix T42661: shortcut "." and "," for changing pivot center don't work on Graph...
Joshua Leung [Thu, 20 Nov 2014 12:43:56 +0000 (01:43 +1300)]
Bugfix T42661: shortcut "." and "," for changing pivot center don't work on Graph Editor

6 years agoSCons: Remove duplicate PLATFORM_LINKFLAGS from makesdna and makesrna
Sergey Sharybin [Thu, 20 Nov 2014 10:28:37 +0000 (15:28 +0500)]
SCons: Remove duplicate PLATFORM_LINKFLAGS from makesdna and makesrna

Hopefully it'll fix "anonymous version tag cannot be combined with other version"
compilation error.

6 years agomathutils.kdtree: fix docstrings
Campbell Barton [Thu, 20 Nov 2014 10:03:38 +0000 (11:03 +0100)]
mathutils.kdtree: fix docstrings

6 years agoCleanup: Remove SD_BSDF_GLOSSY flag, unused.
Thomas Dinges [Thu, 20 Nov 2014 06:53:22 +0000 (07:53 +0100)]
Cleanup: Remove SD_BSDF_GLOSSY flag, unused.

6 years agoCleanup: #define -> enums.
Bastien Montagne [Wed, 19 Nov 2014 19:48:35 +0000 (20:48 +0100)]
Cleanup: #define -> enums.

6 years agoSwitch to SDL2 on OSX
Sergey Sharybin [Wed, 19 Nov 2014 18:41:41 +0000 (19:41 +0100)]
Switch to SDL2 on OSX

6 years agoFix: Shift-H now works in main graph editor area too
Joshua Leung [Wed, 19 Nov 2014 14:07:09 +0000 (03:07 +1300)]
Fix: Shift-H now works in main graph editor area too

In the process, I've removed the old operator (ANIM_OT_channels_visibility_set)
and folded that option in with the hide operator, to make this consistent
with how this is done in the 3D view and other parts of Blender.

6 years agoTweaks to hide/reveal hotkeys for Graph Editor
Joshua Leung [Wed, 19 Nov 2014 13:46:45 +0000 (02:46 +1300)]
Tweaks to hide/reveal hotkeys for Graph Editor

Now the hotkeys here work in line with what's done for other parts of Blender
* H = Hide selected
* Shift-H = Hide unselected  (i.e. old VKEY behaviour)
* Alt-H = Reveal all

6 years agoCleanup: name hide/reveal, like rest of operators
Campbell Barton [Wed, 19 Nov 2014 13:35:00 +0000 (14:35 +0100)]
Cleanup: name hide/reveal, like rest of operators

6 years agoGraph Editor: H/Shift-H now hide and unhide selected curves (Gooseberry Request)
Joshua Leung [Wed, 19 Nov 2014 13:24:42 +0000 (02:24 +1300)]
Graph Editor: H/Shift-H now hide and unhide selected curves (Gooseberry Request)

Revised the tools for managing which FCurves are visible in the Graph Editor
curves area. Now, there are the following tools in place:
* V (channels region only) = Hide all curves except those in selected channels  [OLD]

* H       = Hide all selected curves  [NEW]
* Shift-H = Show all previously hidden curves [NEW]

I've removed the old operator to toggle visibility status of selected curves,
as it doesn't seem that useful anymore.

6 years agoRefactor: Move part of vgroup handling code from ED_mesh/object_vgroup.c to BKE_objec...
Bastien Montagne [Tue, 18 Nov 2014 22:52:17 +0000 (23:52 +0100)]
Refactor: Move part of vgroup handling code from ED_mesh/object_vgroup.c to BKE_object_deform.

Along with some minor cleanup and simplifications.

Reviewers: campbellbarton

Subscribers: sergey

Differential Revision:

6 years agoCycles: Missed some changes in the previous hair motion blur fix
Sergey Sharybin [Tue, 18 Nov 2014 21:42:22 +0000 (02:42 +0500)]
Cycles: Missed some changes in the previous hair motion blur fix

So now cases when object has both hair motion blur and deformation motion blur
vector pass is all correct.

We could get rid of the flag in the future, still need to look deeper into all
the areas trying to find a more clear solution.

6 years agoFix context texture buttons in cycles not getting their context right -
Antony Riakiotakis [Tue, 18 Nov 2014 16:45:10 +0000 (17:45 +0100)]
Fix context texture buttons in cycles not getting their context right -
reported by gooseberry team.

6 years agoFix player compile ( take into account to textcompile with player always aka default...
Jens Verwiebe [Tue, 18 Nov 2014 15:45:52 +0000 (16:45 +0100)]
Fix player compile ( take into account to textcompile with player always aka default on in cmake too)

6 years agoFix T41969: Enviropment map crash
Sergey Sharybin [Tue, 18 Nov 2014 15:05:47 +0000 (16:05 +0100)]
Fix T41969: Enviropment map crash

The issue was caused by the threading conflict between main thread which
might free environment map and render thread which might be using that
environment map.

Solved by stopping preview jobs when changing environment map.

Sure there are still ways to run into threading conflict, but would rather
solve this things case-by-case.

6 years agoMake it possible to use preview/viewport render job kill without context
Sergey Sharybin [Tue, 18 Nov 2014 14:51:31 +0000 (15:51 +0100)]
Make it possible to use preview/viewport render job kill without context

6 years agoFix T42585: Mask motion blur is wrong when parented to plane track
Sergey Sharybin [Tue, 18 Nov 2014 14:29:03 +0000 (15:29 +0100)]
Fix T42585: Mask motion blur is wrong when parented to plane track

it wasn't wrong, it wasn't implemented.

6 years agoFix T42475: Vector motion blur on hair
Sergey Sharybin [Tue, 18 Nov 2014 13:58:33 +0000 (14:58 +0100)]
Fix T42475: Vector motion blur on hair

Issue was caused by mismatch in pre/post transform matrix spaces for mesh and
curve vectors. This happened because of current way how static transform apply
works: it only stores post/pre in the world space if there's triangle motion
exists. This lead to situation when there's no triangle motion happening but
was hair motion happening.

After long time of trying to solve it in a nice way, ended up solving it in
a bit slow way -- pre/post transform is still storing in the same spaces as
they used to be stored and just convert hair pre/post position to a world
space in the kernel.

This is because currently it's not so clear how to deal with cases when curve
and mesh motion needs different space of pre/post transform (which happens in
cases when only one of the motions exists).

Would think of some magic, and meanwhile artists could be happy with proper
render results.

6 years agoCycles: Add logging to blender curve segment exporting
Sergey Sharybin [Tue, 18 Nov 2014 13:21:46 +0000 (14:21 +0100)]
Cycles: Add logging to blender curve segment exporting

6 years agoFix for console & info clipping text too early
Campbell Barton [Tue, 18 Nov 2014 12:41:40 +0000 (13:41 +0100)]
Fix for console & info clipping text too early

D845 from @donfabio

6 years agoFix for previous check
Antony Riakiotakis [Tue, 18 Nov 2014 11:45:33 +0000 (12:45 +0100)]
Fix for previous check

6 years agoFix for previous commit
Antony Riakiotakis [Tue, 18 Nov 2014 11:44:56 +0000 (12:44 +0100)]
Fix for previous commit

6 years agoGPUFramebuffer API cleanup:
Antony Riakiotakis [Tue, 18 Nov 2014 11:37:55 +0000 (12:37 +0100)]
GPUFramebuffer API cleanup:

* read buffers are set at texture binding time
* change naming when setting a texture as framebuffer
* add function to set slot of framebuffer as current target instead of
* Binding a buffer reuses the dimensions of the texture at bind time
(can use viewport to set to arbitrary range later)
* Removed offscreen buffer width/height, use the generated texture
dimensions instead. Those were supposed to be checked to see if
generated texture had the requested size but were never actually changed
to the texture dimensions (and it's redundant to store twice).

6 years agoGPU framebuffer/texture API: Warn when binding a texture that is also
Antony Riakiotakis [Tue, 18 Nov 2014 11:12:28 +0000 (12:12 +0100)]
GPU framebuffer/texture API: Warn when binding a texture that is also
attached to a framebuffer or vice versa.

might be more correct to just handle the case and unbind here.

6 years agoGPU framebuffer API:
Antony Riakiotakis [Tue, 18 Nov 2014 10:56:23 +0000 (11:56 +0100)]
GPU framebuffer API:

Allow binding a texture to a different texture attachment than the

Also fix a number error in seperable gaussian blur shader.

6 years agoBuildbot: Switch to dynamic loaded SDL-2.0
Sergey Sharybin [Tue, 18 Nov 2014 10:54:11 +0000 (15:54 +0500)]
Buildbot: Switch to dynamic loaded SDL-2.0

6 years agoCMake: update pacman spec
Campbell Barton [Tue, 18 Nov 2014 10:51:27 +0000 (11:51 +0100)]
CMake: update pacman spec

6 years agoRevert "OSX/cpack: add a dummy bg and ds_store for dmg"
Campbell Barton [Tue, 18 Nov 2014 10:39:54 +0000 (11:39 +0100)]
Revert "OSX/cpack: add a dummy bg and ds_store for dmg"

This reverts commit 5f7b273236fc09ad4752529b964e0e1d6c681979.

Binary files for release should be added to svn lib from now on.

6 years agoFix T42608: Mesh deform modifier for curve fails in render
Sergey Sharybin [Tue, 18 Nov 2014 10:28:40 +0000 (11:28 +0100)]
Fix T42608: Mesh deform modifier for curve fails in render

The issue was caused by render engine duplicating the curve object because
it then converts the object to mesh. The mesh deform duplication code didn't
duplicate binded data, so after duplication modifier is no longer applyable.

So now copyData of mesh deform would copy data needed for binding. This solves
reported render bug and also solves possible frustration when duplicating an
object with mesh deform in the viewport with Shift-D.

Checked other modifiers and laplacian deform already was copying binded data.
Didn't see other modifiers which might also need to copy extra data.

6 years agocorrect another problem with BLI_assert
Campbell Barton [Tue, 18 Nov 2014 09:55:46 +0000 (10:55 +0100)]
correct another problem with BLI_assert

need to use extern C for C++

6 years agocorrect uninitialized var use
Campbell Barton [Tue, 18 Nov 2014 09:43:42 +0000 (10:43 +0100)]
correct uninitialized var use

6 years agoOSX/cpack: add a dummy bg and ds_store for dmg
Jens Verwiebe [Tue, 18 Nov 2014 09:31:22 +0000 (10:31 +0100)]
OSX/cpack: add a dummy bg and ds_store for dmg

6 years agoError in last commit (broke release build)
Campbell Barton [Tue, 18 Nov 2014 09:24:24 +0000 (10:24 +0100)]
Error in last commit (broke release build)

6 years agoBLI_assert: print a backtrace with the error
Campbell Barton [Mon, 17 Nov 2014 23:20:56 +0000 (00:20 +0100)]
BLI_assert: print a backtrace with the error

Add BLI_system_backtrace()

6 years agoCleanup: Shapekey: get rid of `ED_vgroup_object_is_edit_mode()`
Bastien Montagne [Mon, 17 Nov 2014 19:33:25 +0000 (20:33 +0100)]
Cleanup: Shapekey: get rid of `ED_vgroup_object_is_edit_mode()`

It was doing exactly the same thing as `BKE_object_is_in_editmode_vgroup()`, tsst...

6 years agoAlternate fix for T42619: NULL check in caller
Campbell Barton [Mon, 17 Nov 2014 19:07:25 +0000 (20:07 +0100)]
Alternate fix for T42619: NULL check in caller

Rather avoid paranoid style, (wm == NULL) is an exceptional case.

6 years agoCMake: update lite config
Campbell Barton [Mon, 17 Nov 2014 18:40:29 +0000 (19:40 +0100)]
CMake: update lite config

6 years agoCleanup identation and fix a bad alignment issue in last commit
Antony Riakiotakis [Mon, 17 Nov 2014 15:12:07 +0000 (16:12 +0100)]
Cleanup identation and fix a bad alignment issue in last commit

6 years agoFix T42619: python crash: bpy.context.screen.is_animation_playing
julianeisel [Mon, 17 Nov 2014 15:07:28 +0000 (16:07 +0100)]
Fix T42619: python crash: bpy.context.screen.is_animation_playing

6 years agoNumerical input for changing brush size, strenght or angle.
Antony Riakiotakis [Mon, 17 Nov 2014 14:44:19 +0000 (15:44 +0100)]
Numerical input for changing brush size, strenght or angle.

Patch by Martin Vykoukal, thanks!

This patch adds ability to change brush parameters with keyboard, which
is missing functionality from 2.4x.
Original report: T28811

Reviewers: psy-fi

Differential Revision:

6 years agoSlight improvements to vgroup tooltips
Daniel Salazar [Mon, 17 Nov 2014 13:57:26 +0000 (07:57 -0600)]
Slight improvements to vgroup tooltips

6 years agoSimplify function to get view vector in world space
Antony Riakiotakis [Mon, 17 Nov 2014 13:38:19 +0000 (14:38 +0100)]
Simplify function to get view vector in world space

6 years agoSupport dynamic loading of SDL libraries
Sergey Sharybin [Mon, 17 Nov 2014 11:35:36 +0000 (16:35 +0500)]
Support dynamic loading of SDL libraries

This is mainly to address old issue when one need to have SDL library installed
in order to use our official builds. Some hip distros already installs SDL,
but it's not quite the same across all the variety of the distros.

We also now switching to SDL-2.0, most of the distros have it in repositories
already, so it shouldn't be huge deal to install it if needed.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

6 years agocmake/buildbot: make sure we build the full blender and cycles cuda binaries
Martijn Berger [Mon, 17 Nov 2014 12:37:34 +0000 (13:37 +0100)]
cmake/buildbot: make sure we build the full blender and cycles cuda binaries

6 years agoFix for last commit, accidentaly removed transparent shadows property.
Thomas Dinges [Mon, 17 Nov 2014 10:31:59 +0000 (11:31 +0100)]
Fix for last commit, accidentaly removed transparent shadows property.

6 years agoShapeKey: Cleanup of BKE_keyblock_convert/update code.
Bastien Montagne [Mon, 17 Nov 2014 09:46:31 +0000 (10:46 +0100)]
ShapeKey: Cleanup of BKE_keyblock_convert/update code.

    * Use 'for' loops instead of 'while' ones (saves many lines and regroup most loop handling on one line).
    * Use float[3] pointers where possible.

6 years agoFix T35170: Undoing edit op on a basis shapekey could generate extra offset on its...
Bastien Montagne [Mon, 17 Nov 2014 07:13:22 +0000 (08:13 +0100)]
Fix T35170: Undoing edit op on a basis shapekey could generate extra offset on its 'children'.

Based on investigation by sergey (Sergey Sharybin) and revzin (Grigory Revzin).
Based on patch D460 by revzin (Grigory Revzin).

Differential Revision:

6 years agoShapeKeys: Add `BKE_keyblock_is_basis` to check whether a given keyblock is used...
Bastien Montagne [Sun, 16 Nov 2014 20:45:40 +0000 (21:45 +0100)]
ShapeKeys: Add `BKE_keyblock_is_basis` to check whether a given keyblock is used a basis by others.

Also fix stupid debug-only error in previous commit.

6 years agoCleanup: rename `BKE_key_convert/update` to `BKE_keyblock_convert/update`.
Bastien Montagne [Sun, 16 Nov 2014 18:15:23 +0000 (19:15 +0100)]
Cleanup: rename `BKE_key_convert/update` to `BKE_keyblock_convert/update`.

We are handling a keyblock here, not a whole key(set). Names are alreay a bit confusing,
let's be consistent at least.

6 years agoShapeKey: Refactor a bit `BKE_key_convert_from_...`
Bastien Montagne [Sun, 16 Nov 2014 17:50:23 +0000 (18:50 +0100)]
ShapeKey: Refactor a bit `BKE_key_convert_from_...`

Thing is, those functions always reallocate the whole keyblock's data mem,
while in some cases we already have right amount of elements, so we can just
copy over. Further more, `BKE_key_convert_from_offset`, despite its name,
was not making any check nor allocation on keyblock's data elements!

So split 'copy' operation itself in `BKE_key_update_from_...`,
where no mem checks/operations are performed (only an assert).

Only useful in sculpt mode currently, but will be used by fix for T35170 too.

6 years agoOSX/cmake: set actual compilation date to macosx bundles, fix player bundle with...
Jens Verwiebe [Sun, 16 Nov 2014 19:47:45 +0000 (20:47 +0100)]
OSX/cmake: set actual compilation date to macosx bundles, fix player bundle with lbiomp5 ( do we really need this in player? )

6 years agoCycles Standalone: Updates for Volume sampling.
Thomas Dinges [Sun, 16 Nov 2014 19:18:14 +0000 (20:18 +0100)]
Cycles Standalone: Updates for Volume sampling.

6 years agoCycles: Remove Integrator volume sampling flag, that was moved to Shader.
Thomas Dinges [Sun, 16 Nov 2014 18:49:41 +0000 (19:49 +0100)]
Cycles: Remove Integrator volume sampling flag, that was moved to Shader.

6 years agoUI: fix for recent menu flipping commit
Campbell Barton [Sun, 16 Nov 2014 16:40:46 +0000 (17:40 +0100)]
UI: fix for recent menu flipping commit

6 years agoJust 2 comments cleaned
Jens Verwiebe [Sun, 16 Nov 2014 16:12:49 +0000 (17:12 +0100)]
Just 2 comments cleaned

6 years agoOSX/buildsystems: unify openmp handling by changing iomp5 id to @loader_path/../Resou...
Jens Verwiebe [Sun, 16 Nov 2014 16:03:44 +0000 (17:03 +0100)]
OSX/buildsystems: unify openmp handling by changing iomp5 id to @loader_path/../Resources/lib/libiomp5.dylib
This makes install_name_tool usage obsolete here and also assures cmake builds can be codesigned.
IMPORTANT: update lib (darwin-9.x.universal/openmp)

6 years agoFix T42581: Add 'icon_value' feature to UI Py/RNA's operator button and items of...
Bastien Montagne [Sun, 16 Nov 2014 14:45:00 +0000 (15:45 +0100)]
Fix T42581: Add 'icon_value' feature to UI Py/RNA's operator button and items of enums.

Rather straightforward, allows for 'DATA' icons (like mat or tex 'previews')
to be used as icon for operator button or items of an enum.

Patch by Simon LuĊĦenc, with minor cleanup by self.