blender-staging.git
5 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

5 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

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

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

5 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
texture.
* 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).

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

5 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
first.

Also fix a number error in seperable gaussian blur shader.

5 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

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

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

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

5 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++

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

5 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

5 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)

5 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()

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

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

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

5 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

5 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

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

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

5 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

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

5 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

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

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

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

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

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

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

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

5 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? )

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

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

5 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

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

5 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)

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

5 years agoCleanup: use SUBD_CORNER_* prefix for Subdiv flags
Campbell Barton [Sun, 16 Nov 2014 14:46:30 +0000 (15:46 +0100)]
Cleanup: use SUBD_CORNER_* prefix for Subdiv flags

5 years agoKnife: fix recent drag option /w loop close
Campbell Barton [Sun, 16 Nov 2014 13:56:44 +0000 (14:56 +0100)]
Knife: fix recent drag option /w loop close

It would miss adding an edge when closing the loop.

5 years agoMacros: ELEM() can now take 2 args
Campbell Barton [Sun, 16 Nov 2014 13:29:17 +0000 (14:29 +0100)]
Macros: ELEM() can now take 2 args

Handy when used indirectly.

5 years agoCleanup: use BLI_listbase_count_ex to avoid redundant looping
Campbell Barton [Sun, 16 Nov 2014 13:23:37 +0000 (14:23 +0100)]
Cleanup: use BLI_listbase_count_ex to avoid redundant looping

5 years agoBLI_listbase: Add BLI_listbase_count_ex (sets a limit)
Campbell Barton [Sun, 16 Nov 2014 13:02:18 +0000 (14:02 +0100)]
BLI_listbase: Add BLI_listbase_count_ex (sets a limit)

This can be used to avoid redundant looping when we only want to know if a list is smaller then some size.

also remove paranoid NULL check in list counting.

5 years agoCleanup: use BLI_listbase_*** prefix for count,sort,sort_r
Campbell Barton [Sun, 16 Nov 2014 12:57:58 +0000 (13:57 +0100)]
Cleanup: use BLI_listbase_*** prefix for count,sort,sort_r

5 years agoError in last commit
Campbell Barton [Sun, 16 Nov 2014 12:28:12 +0000 (13:28 +0100)]
Error in last commit

5 years agoCMake: cleanup, namespace & unused vars
Campbell Barton [Sun, 16 Nov 2014 11:57:42 +0000 (12:57 +0100)]
CMake: cleanup, namespace & unused vars

also add macro 'print_all_vars()', if(0)'d - debugging only.

5 years agoKnife: double clicking now closes the loop
Campbell Barton [Sun, 16 Nov 2014 00:11:26 +0000 (01:11 +0100)]
Knife: double clicking now closes the loop

5 years agoFix T40372: Slow Graph Editor drawing
Joshua Leung [Sun, 16 Nov 2014 10:32:23 +0000 (23:32 +1300)]
Fix T40372: Slow Graph Editor drawing

For FCurves where all the keyframes use the "simple" interpolation types
(i.e. Constant, Linear, and Bezier), we now use the old FCurve drawing
code that was used prior to the Easing Equations changes. This should
be generally faster in general.

5 years ago[T40792] Optimisations for FCurve Drawing - Lower sampling precision when "High Quali...
Joshua Leung [Sun, 16 Nov 2014 10:02:31 +0000 (23:02 +1300)]
[T40792] Optimisations for FCurve Drawing - Lower sampling precision when "High Quality" drawing disabled

When the "High Quality Line Drawing" option (View menu) is disabled,
the sampling rate (i.e. the size of timesteps to use when sampling
the FCurve for drawing it in most cases now) is set to be quite low
(i.e. at 0.1 frame increments). This amounts to at most 10 sub-steps.

In one test file (with a wide window), this had the effect of improving
the performance by over 3x. It's still not as good as a sampling-free
approach, but for this functionality is still needed for FModifiers,
so it's better that we can optimise this.

5 years ago[T40372] FCurve Eval/Drawing Optimisation: Skip Bezier handle eval when all handles...
Joshua Leung [Sun, 16 Nov 2014 09:30:42 +0000 (22:30 +1300)]
[T40372] FCurve Eval/Drawing Optimisation: Skip Bezier handle eval when all handles are flat

Small optimisation (which shouldn't have much of an effect) where we skip
complex handle calculations if all the handles/verts for a Bezier curve
segment are all flat.

Patch by Campbell (T40372 -> F91346)

5 years agoCode cleanup - Typos and separating out assignment from for-loop header
Joshua Leung [Sun, 16 Nov 2014 09:16:01 +0000 (22:16 +1300)]
Code cleanup - Typos and separating out assignment from for-loop header

5 years agoOwn cleanup, sorry for the noise :/
Bastien Montagne [Sun, 16 Nov 2014 10:16:56 +0000 (11:16 +0100)]
Own cleanup, sorry for the noise :/

5 years agoCleanup: Replace `WM_operator_name_call` by `WM_operator_name_call_ptr` where possible.
Bastien Montagne [Sun, 16 Nov 2014 10:09:51 +0000 (11:09 +0100)]
Cleanup: Replace `WM_operator_name_call` by `WM_operator_name_call_ptr` where possible.

This avoids one lookup in optypes list...

5 years agoFix T42613: Sculpt dyntopo's 'Set Detail Size' (Shift-D) was only always affecting...
Bastien Montagne [Sun, 16 Nov 2014 09:54:03 +0000 (10:54 +0100)]
Fix T42613: Sculpt dyntopo's 'Set Detail Size' (Shift-D) was only always affecting relative size.

5 years agoAdd PROP_PERCENTAGE to subtypes handled by WM_OT_radial_control operator.
Bastien Montagne [Sun, 16 Nov 2014 09:53:47 +0000 (10:53 +0100)]
Add PROP_PERCENTAGE to subtypes handled by WM_OT_radial_control operator.

5 years agoUninitialised var warning
Joshua Leung [Sun, 16 Nov 2014 07:24:58 +0000 (20:24 +1300)]
Uninitialised var warning

5 years agoBugfix T41525: Button keyframe indicators don't work correctly when editing NLA Strips
Joshua Leung [Sun, 16 Nov 2014 07:24:38 +0000 (20:24 +1300)]
Bugfix T41525: Button keyframe indicators don't work correctly when editing NLA Strips

When the active action is a NLA strip, the keyframe indicator colors for buttons
and the 3D view indicator (i.e. the current frame indicator changes color) didn't
work correctly. This was because they were still checking for keyframes in
"global" time space, whereas they needed to be applying NLA corrections to
"look inside" the remapped action.

5 years agoBugfix T42253: End frame for armature ghosting "in range" is not displayed
Joshua Leung [Sun, 16 Nov 2014 05:12:35 +0000 (18:12 +1300)]
Bugfix T42253: End frame for armature ghosting "in range" is not displayed

5 years agoFix T42611: Knife fails from an edge to a vertex
Campbell Barton [Sat, 15 Nov 2014 21:15:11 +0000 (22:15 +0100)]
Fix T42611: Knife fails from an edge to a vertex

5 years agoCode cleanup: Spelling
Sergey Sharybin [Sat, 15 Nov 2014 21:11:41 +0000 (02:11 +0500)]
Code cleanup: Spelling

5 years agoCleanup (mostly 0/1 -> false/true).
Bastien Montagne [Sat, 15 Nov 2014 20:28:29 +0000 (21:28 +0100)]
Cleanup (mostly 0/1 -> false/true).

5 years agoCmake windows. Make sure we install blender player.
Martijn Berger [Sat, 15 Nov 2014 19:51:18 +0000 (20:51 +0100)]
Cmake windows. Make sure we install blender player.
Add blenderplayer component so you can speicfy to install this in the
installer

5 years agoKnife: freehand drawing while LMB held
Campbell Barton [Sat, 15 Nov 2014 19:43:53 +0000 (20:43 +0100)]
Knife: freehand drawing while LMB held

5 years agoFix broken auto-leyframing for 'Vector' button.
Bastien Montagne [Sat, 15 Nov 2014 17:18:47 +0000 (18:18 +0100)]
Fix broken auto-leyframing for 'Vector' button.

5 years agoFix T42567: Color Wheel Buttons do not autokey correctly.
Bastien Montagne [Sat, 15 Nov 2014 16:57:29 +0000 (17:57 +0100)]
Fix T42567: Color Wheel Buttons do not autokey correctly.

In fact, any button controlling a whole array of values were broken
because they always only keyed the index of the single fcurve returned
by `ui_but_get_fcurve()`, now pass button's rna_index value instead.

5 years agoCMake: cleanup, use find_package for pthreads
Campbell Barton [Sat, 15 Nov 2014 15:46:30 +0000 (16:46 +0100)]
CMake: cleanup, use find_package for pthreads

5 years agoUI: cleanup next/prev order in menu code
Campbell Barton [Sat, 15 Nov 2014 13:32:23 +0000 (14:32 +0100)]
UI: cleanup next/prev order in menu code

Recent flag re-order broke it since bits overlap, but logic here was far too complicated & fragile,
Checked the type of each button when testing which direction to handle events as well as block direction.

Now store the block-flipped state as a flag.

5 years agoCleanup: remove unused redraw flag
Campbell Barton [Sat, 15 Nov 2014 13:11:51 +0000 (14:11 +0100)]
Cleanup: remove unused redraw flag

5 years agocmake / windows cleanup
Martijn Berger [Sat, 15 Nov 2014 13:36:25 +0000 (14:36 +0100)]
cmake / windows cleanup

5 years agoCmake windows, removing more redundant things
Martijn Berger [Sat, 15 Nov 2014 11:42:21 +0000 (12:42 +0100)]
Cmake windows, removing more redundant things

5 years agoCmake windows/msvc minor cleanup
Martijn Berger [Sat, 15 Nov 2014 11:12:19 +0000 (12:12 +0100)]
Cmake windows/msvc minor cleanup

5 years agoCycles: Revert changes to inline flags enabled for release only
Sergey Sharybin [Fri, 14 Nov 2014 23:42:33 +0000 (04:42 +0500)]
Cycles: Revert changes to inline flags enabled for release only

It appears it's not really needed for convenient debugging when
using proper flags passed to the compiler. Basically, it is -g3
and set breakpoint to a function as if it's not in the namespace.

Not as if a code was any wrong, just it's possible to have more
clear solution for the issue i've tried to solve in the past.

5 years agoCycles: Fix compilation error with enabled looging but disabled libmv
Sergey Sharybin [Fri, 14 Nov 2014 23:01:31 +0000 (04:01 +0500)]
Cycles: Fix compilation error with enabled looging but disabled libmv

5 years agoAdd Make Edge/Face to mesh Edit Mode toolbar.
Jonathan Williamson [Fri, 14 Nov 2014 21:48:18 +0000 (15:48 -0600)]
Add Make Edge/Face to mesh Edit Mode toolbar.

The Mesh Tools have quite few crucial tools that're missing from the toolbar. This is the main one.

The tools that're here should also be reorganized a bit to introduce actual orgnization, as it's quite sporadic at the moment. Will do that later.

5 years agoReplace tooltips of copy vgroups to ... operators.
Bastien Montagne [Fri, 14 Nov 2014 18:51:19 +0000 (19:51 +0100)]
Replace tooltips of copy vgroups to ... operators.

Those ops actually replace vgroups in destination, tooltips were really misleading.

Issue raised by zanqdo (Daniel Salazar), thanks.

5 years agoView3d: border would jitter on panning
Campbell Barton [Fri, 14 Nov 2014 16:58:24 +0000 (17:58 +0100)]
View3d: border would jitter on panning

5 years agoSequencer: handles drew outside of small strips
Campbell Barton [Fri, 14 Nov 2014 15:47:30 +0000 (16:47 +0100)]
Sequencer: handles drew outside of small strips

5 years agoFix T42593: Rigify crash when I press "Generate" - corrupted IDGroup's listbase of...
Bastien Montagne [Fri, 14 Nov 2014 15:38:11 +0000 (16:38 +0100)]
Fix T42593: Rigify crash when I press "Generate" - corrupted IDGroup's listbase of children

Nothing related to rigify actually, recent hack in py handling of IDProp (rB3346ab03)
was breaking integrity of IDGroup's listbase of children IDProps...

Took me hours to nail this down, should have bisected for once. :/

5 years agoAdd missing notifiers for slip operator
Antony Riakiotakis [Fri, 14 Nov 2014 14:04:52 +0000 (15:04 +0100)]
Add missing notifiers for slip operator

5 years agoskip scene_armature_depsgraph_workaround when theres no armatures
Campbell Barton [Fri, 14 Nov 2014 13:55:45 +0000 (14:55 +0100)]
skip scene_armature_depsgraph_workaround when theres no armatures

5 years agoReuse local view for UVs for previous commit, thanks to Campbell for the
Antony Riakiotakis [Fri, 14 Nov 2014 13:06:29 +0000 (14:06 +0100)]
Reuse local view for UVs for previous commit, thanks to Campbell for the
suggestion.

Also minor compile fix after viewport patch

5 years agoDepsgraph: Workaround for missing pose update when changing visible layers
Sergey Sharybin [Fri, 14 Nov 2014 13:04:07 +0000 (14:04 +0100)]
Depsgraph: Workaround for missing pose update when changing visible layers

That's like really a bummer, because currently animation data for armatures
might want to use pose, and pose might be missing on the object.
This happens when changing visible layers, which leads to situations when
pose is missing or marked for recalc, animation will change it and then
object update will restore the pose.

This could be solved by the new dependency graph, but for until then we'll
do an extra pass on the objects to ensure it's all fine.

It's done in the scene_update_for_newframe() to solve possible issues with
the render engines as well.

This finally solves issues we had with Caminandes team, where Koro would be
at the scene origin instead of being properly posed.

5 years agoFix T42561 (semi feature request/comeback) UVs in image editor can get
Antony Riakiotakis [Fri, 14 Nov 2014 12:50:10 +0000 (13:50 +0100)]
Fix T42561 (semi feature request/comeback) UVs in image editor can get
too crowded.

UVs in the same layer can be used for many images. It used to be
possible to filter UV faces based on the image, but this is impossible
now due to the way the system works, so I added an option to allow
filtering UVs based on active material index.

Rationale on using option and not being smart here (options are bad tm)
is that for some workflows, such as preserving image space by using the
same image for many materials, people might want to turn this off.

5 years agoFix X11/GLX failing with multi-sample
Campbell Barton [Fri, 14 Nov 2014 12:43:22 +0000 (13:43 +0100)]
Fix X11/GLX failing with multi-sample

Caused by D643, in fact we need to get the visualInfo before creating the window.

5 years agoUI: Rename Addons -> Add-ons
Campbell Barton [Fri, 14 Nov 2014 11:17:25 +0000 (12:17 +0100)]
UI: Rename Addons -> Add-ons

D812 by @thefallenweeble

internally variable names & paths remain the same, this is for labels & tips only.

5 years agoFix vertex colors being displayed wrong in GLSL in edit mode. Looks like
Antony Riakiotakis [Fri, 14 Nov 2014 11:15:36 +0000 (12:15 +0100)]
Fix vertex colors being displayed wrong in GLSL in edit mode. Looks like
swapping the colors is no longer needed.

5 years agoDon't assign wrong datalayers to gpuattribs in edit mode.
Antony Riakiotakis [Fri, 14 Nov 2014 11:08:41 +0000 (12:08 +0100)]
Don't assign wrong datalayers to gpuattribs in edit mode.

layer index was being obtained for loop data types but we referenced
Tessface data types

NULLing those out since only the data offsets are used in edit mode and
address sanitizer complains about freed memory access.

Also minor comment in texpainting

5 years agoCleanup: use BLI_hash_ prefix for md5 api
Campbell Barton [Fri, 14 Nov 2014 10:53:27 +0000 (11:53 +0100)]
Cleanup: use BLI_hash_ prefix for md5 api

5 years agoCleanup: headers
Campbell Barton [Fri, 14 Nov 2014 10:49:45 +0000 (11:49 +0100)]
Cleanup: headers

5 years agoAdd Murmur2A hashing feature to BLI
Bastien Montagne [Fri, 14 Nov 2014 10:00:10 +0000 (11:00 +0100)]
Add Murmur2A hashing feature to BLI

Murmur2a is a very fast hashing function generation int32 hashes.
It also features a very good distribution of generated hashes.

However, it is not endianness-agnostic, meaning it will usually generate
different hashes for a same key on big- and little-endian architectures.
Consequently, **it shall not be used to generate persistent hashes**
(never store them in .blend file e.g.).

This implementation supports incremental hashing, and is a direct
adaptation of reference implementation (in c++):
https://smhasher.googlecode.com/svn-history/r130/trunk/MurmurHash2.cpp

That cpp code was also used to generate reference values in gtests file.

Reviewers: sergey, campbellbarton

Reviewed By: campbellbarton

Projects: #bf_blender

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

5 years agoCmake add installation of redistributables for msvc 2013
Martijn Berger [Fri, 14 Nov 2014 09:49:01 +0000 (10:49 +0100)]
Cmake add installation of redistributables for msvc 2013

5 years agoupdate dna exporter for API changes
Campbell Barton [Thu, 13 Nov 2014 23:54:04 +0000 (00:54 +0100)]
update dna exporter for API changes

also print html name.

5 years agoCMake: add 'full' to 'make help'
Campbell Barton [Thu, 13 Nov 2014 23:19:53 +0000 (00:19 +0100)]
CMake: add 'full' to 'make help'

5 years agoCMake: disable some build option defaults T42569
Campbell Barton [Thu, 13 Nov 2014 22:32:01 +0000 (23:32 +0100)]
CMake: disable some build option defaults T42569

This commit disables some lesser used dependencies
for Linux/Unix systems by default.

Run: `make full` to enabled options used in release build.

5 years agoCMake: remove deprecated mudflap option
Campbell Barton [Thu, 13 Nov 2014 18:43:15 +0000 (19:43 +0100)]
CMake: remove deprecated mudflap option

5 years agoAdd 'help_features' make target (prints WITH_*** options)
Campbell Barton [Thu, 13 Nov 2014 18:19:08 +0000 (19:19 +0100)]
Add 'help_features' make target (prints WITH_*** options)

5 years agoCMake: add 'make full' target
Campbell Barton [Thu, 13 Nov 2014 17:06:03 +0000 (18:06 +0100)]
CMake: add 'make full' target

5 years agoFix T42590 baking bakes to duplicated objects too.
Antony Riakiotakis [Thu, 13 Nov 2014 17:54:19 +0000 (18:54 +0100)]
Fix T42590 baking bakes to duplicated objects too.

Only allow non instanced renderobjects to be baked.

5 years agoCMake buildbot change upload should work now
Martijn Berger [Thu, 13 Nov 2014 16:09:09 +0000 (17:09 +0100)]
CMake buildbot change upload should work now
CPack generating NSIS and WiX installers should also work