6 years agotweaks to packman build
Campbell Barton [Mon, 23 Mar 2015 19:49:44 +0000 (06:49 +1100)]
tweaks to packman build

remove --asroot arg to makepkg

6 years agoBGE: Fix T27322: World F-Curve
Thomas Szepe [Mon, 23 Mar 2015 20:43:42 +0000 (21:43 +0100)]
BGE: Fix T27322: World F-Curve

This patch fixes the world (mist, background, ambient) F-Curve for  for the BGE.

Reviewers: moguri, brecht

Reviewed By: moguri, brecht

Differential Revision:

6 years agoBGE: Add setMistType and setMistIntensity API.
Thomas Szepe [Mon, 23 Mar 2015 20:40:11 +0000 (21:40 +0100)]
BGE: Add setMistType and setMistIntensity API.

This patch adds the missing setMistType() and setMistIntensity() to the API

Reviewers: campbellbarton, brecht, moguri

Reviewed By: campbellbarton, brecht, moguri

Subscribers: campbellbarton, dingto

Differential Revision:

6 years agoBGE: Multitexture world (mist, ambient) fix
Thomas Szepe [Mon, 23 Mar 2015 20:36:08 +0000 (21:36 +0100)]
BGE: Multitexture world (mist, ambient) fix

This patch fix the existing word API for mist and global ambient lighting.
Add deprecated message to disableMist()
Add setUseMist(enable).

Reviewers: dfelinto, campbellbarton, moguri

Reviewed By: moguri

Subscribers: solarlune, jta, brecht

Projects: #bf_blender:_next

Differential Revision:

6 years agocleanup: use spaces for alignment
Mike Erwin [Mon, 23 Mar 2015 19:29:42 +0000 (15:29 -0400)]
cleanup: use spaces for alignment

while studying GPU lib

6 years agoRemove 'lorem ipsum' operator
Campbell Barton [Mon, 23 Mar 2015 19:15:52 +0000 (06:15 +1100)]
Remove 'lorem ipsum' operator

its a very specific function, and not hard to paste body text from elsewhere.
We can make an addon if its important to some users.

6 years agocompile fix
Mike Erwin [Mon, 23 Mar 2015 19:04:11 +0000 (15:04 -0400)]
compile fix

6 years agoDisable high quality depth of field for GPUs that don't support it,
Antony Riakiotakis [Mon, 23 Mar 2015 18:23:49 +0000 (19:23 +0100)]
Disable high quality depth of field for GPUs that don't support it,
system will fall back to low quality depth of field.

Also add check in case some of the errors are caused by crappy
framebuffer object support.

6 years agoBGE: LoD Hysteresis clean up
Jorge Bernal [Mon, 23 Mar 2015 17:57:19 +0000 (18:57 +0100)]
BGE: LoD Hysteresis clean up

Move scene hysteresis value to KX_Scene where it should be (instead of

6 years agoFix T44076, SSAO in solid mode will disable antialiasing in wireframe
Antony Riakiotakis [Mon, 23 Mar 2015 17:54:56 +0000 (18:54 +0100)]
Fix T44076, SSAO in solid mode will disable antialiasing in wireframe

Yes it will, because those modes stay active. So on user side, expose
depth of field option always (I don't see why not), but disable SSAO in
wireframe/bounding box mode. It is a known limitation that compositing
does not support antialiasing yet, but better give users some more

This could be included in final release but it's not that serious

6 years agoVersioning code to correct socket naming after
Antony Riakiotakis [Mon, 23 Mar 2015 17:33:50 +0000 (18:33 +0100)]
Versioning code to correct socket naming after

Reported by formerly Old_Demon on blenderartists.

Apparently this caused old files to lose their links to material sockets
(noob own mistake from inexperience with node system).

This should either be included in release with version checking being
set to version 2.73 and subversion 10, without tweaking the
BKE_blender.h file


340b76b42c53816ddac1b4cecdff3d8d2010a9cc should be reverted for this

Thanks to Lukas for checking this out.

6 years agoUse linear filtering for final pass of high quality depth of field, no
Antony Riakiotakis [Mon, 23 Mar 2015 16:07:21 +0000 (17:07 +0100)]
Use linear filtering for final pass of high quality depth of field, no
need to get nearest point anymore.

6 years agoShader errors:
Antony Riakiotakis [Mon, 23 Mar 2015 14:19:54 +0000 (15:19 +0100)]
Shader errors:

Count line from beginning of the whole shader source instead of each
string sepatately since it helps with finding out the error line in most
tested platforms

6 years agoFix T44093: Color picker SV+H order wrong.
Campbell Barton [Mon, 23 Mar 2015 13:18:57 +0000 (00:18 +1100)]
Fix T44093: Color picker SV+H order wrong.

Based on HSV ordering, SV+H had S<>V swapped.

6 years agoAllow bg-image rotation for camera views
Campbell Barton [Mon, 23 Mar 2015 13:02:09 +0000 (00:02 +1100)]
Allow bg-image rotation for camera views

6 years agoCleanup: comments, style
Campbell Barton [Mon, 23 Mar 2015 11:51:12 +0000 (22:51 +1100)]
Cleanup: comments, style

6 years agoTidy up the user interface for depth of field based on feedback by
Antony Riakiotakis [Mon, 23 Mar 2015 11:48:09 +0000 (12:48 +0100)]
Tidy up the user interface for depth of field based on feedback by
NudelZ on irc, thanks!

6 years agoUse same rgb -> greyscale for BLI_math as imbuf
Campbell Barton [Mon, 23 Mar 2015 11:26:00 +0000 (22:26 +1100)]
Use same rgb -> greyscale for BLI_math as imbuf

6 years agoChange coefficients to 4 digit precision only.
Antony Riakiotakis [Mon, 23 Mar 2015 11:18:42 +0000 (12:18 +0100)]
Change coefficients to 4 digit precision only.

Need to match convention and sum up to 1.0 (previous set had a minor
10^(-10) overflow) Thanks to Campbell for taking notice.

6 years agoMake sure matcap icons are within range.
Antony Riakiotakis [Mon, 23 Mar 2015 11:00:34 +0000 (12:00 +0100)]
Make sure matcap icons are within range.

Basically out of range could happen when opening files made in 2.72 when
the new icons for texture painting were added. Apparently some more
caution is needed here.

6 years agoMitigate T44035: Proportional editing lag
Campbell Barton [Mon, 23 Mar 2015 06:43:14 +0000 (17:43 +1100)]
Mitigate T44035: Proportional editing lag

Calculating connected data can be slow,
it still lags with heavy meshes but perform some optimizations (nearly twice as fast)

6 years agoFix T43926: Volume scatter: intersecting objects GPU rendering artifacts
Sergey Sharybin [Mon, 23 Mar 2015 07:48:33 +0000 (12:48 +0500)]
Fix T43926: Volume scatter: intersecting objects GPU rendering artifacts
Fix T44007: Cycles Volumetrics: block artifacts with overlapping volumes

The issue was caused by uninitialized parameters of some closures, which
lead to unpredictable behavior of shader_merge_closures().

6 years agoFix wrong sizeof() in new ghash hashing helpers code.
Bastien Montagne [Sun, 22 Mar 2015 20:13:43 +0000 (21:13 +0100)]
Fix wrong sizeof() in new ghash hashing helpers code.

Spotted by Coverity.

6 years agoOSX: fix 1 leak ( found and fixed by marcclintdion ) and 1 possible leak in dragndrop...
Jens Verwiebe [Sun, 22 Mar 2015 18:29:31 +0000 (19:29 +0100)]
OSX: fix 1 leak ( found and fixed by marcclintdion ) and 1 possible leak in dragndrop, backport to 2.74

6 years agoBGE: New hysteresis offset to improve LOD level transitions
Jorge Bernal [Sun, 22 Mar 2015 17:13:53 +0000 (18:13 +0100)]
BGE: New hysteresis offset to improve  LOD level transitions

This change introduces a new hysteresis parameter that it will be added
or subtracted to/from the LOD distance to avoid popping when a LOD
object moves close to the LOD transition continuously.

Then, we have the following:

- a new LOD Hysteresis setting per scene (default 10%) which is located
in Scene context --> Level of Detail panel. This scene parameter also
will active/deactive the scene hysteresis.
- and a new LOD Hysteresis setting per object (default 10%) which is
located in Object context --> Levels of Detail panel. The LOD hysteresis
setting per object (if active) will overwrite the hysteresis setting per
scene value.

For the new blends: the hysteresis setting per scene would be active by
default and the per object would be inactive by default.
For the old blends: both hysteresis settings (per scene and per object)
would be inactive by default. A quick way to take advantage of this
feature for old blends would be to activate the hysteresis parameter in
the scene context -> Level of Detail panel

Reviewers: campbellbarton, kupoman, moguri

Reviewed By: kupoman, moguri

Subscribers: nonamejuju, lordodin

Differential Revision:

6 years agoBGE: Add physics constraints replication
Thomas Szepe [Sun, 22 Mar 2015 16:55:43 +0000 (17:55 +0100)]
BGE: Add physics constraints replication

This patch will add a physics constraints replication for group instances
(dupli group).
It also fix crashing when when a group instance is made from a linked
group instance and both are on the active layer.

Initial patch T31443 from moerdn (Martin Sell).

Reviewers: lordloki, sergof, moguri, sybren

Reviewed By: moguri, sybren

Differential Revision:

6 years agoRevert part of D1074 related to acceleration taked into account.
Jorge Bernal [Sat, 21 Mar 2015 16:53:18 +0000 (17:53 +0100)]
Revert part of D1074 related to acceleration taked into account.
It has been reverted because it was affecting obstacle avoidance

This fix should be backported to 2.74

6 years agoCleanup: instantiate arg once in context macro
Campbell Barton [Sat, 21 Mar 2015 16:29:59 +0000 (03:29 +1100)]
Cleanup: instantiate arg once in context macro

6 years agoCleanup: minor edits to project generators
Campbell Barton [Sat, 21 Mar 2015 16:24:56 +0000 (03:24 +1100)]
Cleanup: minor edits to project generators

6 years agoOSX/GHOST: need one more release in error case
Jens Verwiebe [Sat, 21 Mar 2015 16:15:38 +0000 (17:15 +0100)]
OSX/GHOST: need one more release in error case

6 years agoFix T44065: fixed vehicle constraint
Sybren A. Stüvel [Sat, 21 Mar 2015 13:42:57 +0000 (14:42 +0100)]
Fix T44065: fixed vehicle constraint

Commit ffee7f1a58a18bc08add94176ddffe29809139a6 broke vehicle constraints; this fixes that.

6 years agoCleanup: constify view3d/camera
Campbell Barton [Sat, 21 Mar 2015 11:34:20 +0000 (22:34 +1100)]
Cleanup: constify view3d/camera

6 years agoCleanup: constify scene/modifiers
Campbell Barton [Sat, 21 Mar 2015 11:10:43 +0000 (22:10 +1100)]
Cleanup: constify scene/modifiers

6 years agoCleanup: use tabs
Campbell Barton [Sat, 21 Mar 2015 05:40:17 +0000 (16:40 +1100)]
Cleanup: use tabs

6 years agoView3D: fix view-selected zoom logic
Campbell Barton [Sat, 21 Mar 2015 04:11:30 +0000 (15:11 +1100)]
View3D: fix view-selected zoom logic

- Correct logic converting radius to view distance.
- Wasn't taking view-zoom into account converting lens to angle.
- Support framing the selection in the camera bounds (for camera locked views).

Add ED_view3d_radius_to_dist to handles these details.

6 years agoView3D: use defines for default zoom-levels
Campbell Barton [Sat, 21 Mar 2015 04:11:19 +0000 (15:11 +1100)]
View3D: use defines for default zoom-levels

6 years agoFix indentation in last commit, tab slipped in
Jens Verwiebe [Fri, 20 Mar 2015 19:26:51 +0000 (20:26 +0100)]
Fix indentation in last commit, tab slipped in

6 years agoReally fix scons with new glsl shaders
Jens Verwiebe [Fri, 20 Mar 2015 19:24:30 +0000 (20:24 +0100)]
Really fix scons with new glsl shaders

6 years agoFix scons build
Antony Riakiotakis [Fri, 20 Mar 2015 18:46:48 +0000 (19:46 +0100)]
Fix scons build

6 years agoPartly fix T44025, pixelFormat retain was left, for 2.74 backport
Jens Verwiebe [Fri, 20 Mar 2015 16:57:35 +0000 (17:57 +0100)]
Partly fix T44025, pixelFormat retain was left, for 2.74 backport

6 years agoCycles: Avoid memcpy of intersecting memory
Sergey Sharybin [Fri, 20 Mar 2015 16:14:50 +0000 (21:14 +0500)]
Cycles: Avoid memcpy of intersecting memory

Could happen when assignment happens to self during sorting.

6 years agoCorrection to previous commit, initialization of needs_free got lost by accident
Sergey Sharybin [Fri, 20 Mar 2015 16:09:52 +0000 (21:09 +0500)]
Correction to previous commit, initialization of needs_free  got lost by accident

6 years agoDisable IME for headless builds
Campbell Barton [Fri, 20 Mar 2015 16:02:09 +0000 (03:02 +1100)]
Disable IME for headless builds

6 years agoFix link error with GLEW
Antony Riakiotakis [Fri, 20 Mar 2015 15:35:26 +0000 (16:35 +0100)]
Fix link error with GLEW

6 years agoCorrect recent commit
Campbell Barton [Fri, 20 Mar 2015 15:25:28 +0000 (02:25 +1100)]
Correct recent commit

6 years agoFix for building win32 headless
Campbell Barton [Fri, 20 Mar 2015 15:16:39 +0000 (02:16 +1100)]
Fix for building win32 headless

6 years agoRemove unused armature code
Campbell Barton [Fri, 20 Mar 2015 12:55:47 +0000 (23:55 +1100)]
Remove unused armature code

ED_armature_deselect_all now simply de-selects

6 years agoAvoid per-draw allocation when drawing currently rendering tiles
Sergey Sharybin [Fri, 20 Mar 2015 14:56:09 +0000 (19:56 +0500)]
Avoid per-draw allocation when drawing currently rendering tiles

6 years agoOnly create vertex buffers if supported and clean them up properly.
Antony Riakiotakis [Fri, 20 Mar 2015 14:43:34 +0000 (15:43 +0100)]
Only create vertex buffers if supported and clean them up properly.

6 years agoFix high quality depth of field on the Mac.
Antony Riakiotakis [Fri, 20 Mar 2015 14:26:13 +0000 (15:26 +0100)]
Fix high quality depth of field on the Mac.

Quite a few things wrong here:

* Mac did not support EXT_draw_instanced, only ARB_draw_instanced
* Draw instanced did not work unless data came from vertex buffer, which
is second time we see weird things with vertex arrays in mac
* There were a few stupid mistakes by me as well, such as binding to
uniform locations for the wrong shaders (it's a wonder it ever worked

6 years agoFix race condition and bad memory access highlighting render tiles
Sergey Sharybin [Fri, 20 Mar 2015 12:48:45 +0000 (17:48 +0500)]
Fix race condition and bad memory access highlighting render tiles

Is was possible that interface will be refreshed at thesame time
as render engine will start freeing render parts.

Not sure if we can get away without RW mutex here, seems we need
one way of synchronization or another..

6 years agoFix/Improve FKey bone creation
Campbell Barton [Fri, 20 Mar 2015 12:38:08 +0000 (23:38 +1100)]
Fix/Improve FKey bone creation

- new bone is now made active
- previous selection cleared
- bone direction places the tip on the active bone (if available)

6 years agoFix T43986: VSE Mask Modifier don't move with video-Clip.
Bastien Montagne [Fri, 20 Mar 2015 11:39:25 +0000 (12:39 +0100)]
Fix T43986: VSE Mask Modifier don't move with video-Clip.

Now mask animation is offset to start of strip, instead of staying at frame 1!

Warning: this may break existing files, in case some would be using (hacking around!)
current bad behavior...

6 years agoCmake: Some more tweaks to building from branch without upstream
Sergey Sharybin [Fri, 20 Mar 2015 09:07:56 +0000 (14:07 +0500)]
Cmake: Some more tweaks to building from branch without upstream

6 years agoSCons: Attempt to deal with branches without upstream configured
Sergey Sharybin [Fri, 20 Mar 2015 09:03:54 +0000 (14:03 +0500)]
SCons: Attempt to deal with branches without upstream configured

6 years agoCMake: Suppress unconfigured branch upstream error in the output
Sergey Sharybin [Fri, 20 Mar 2015 08:59:05 +0000 (13:59 +0500)]
CMake: Suppress unconfigured branch upstream error in the output

6 years agoFix T43786: Cycles bake disregards Auto Smooth (vertex per-face normals)
Sergey Sharybin [Fri, 20 Mar 2015 07:41:31 +0000 (12:41 +0500)]
Fix T43786: Cycles bake disregards Auto Smooth (vertex per-face normals)

Added an utility function which performs vertex split based on the loop
normal so now backing API matches to what's happening in Cycles and BI
in terms of autosplit.

Reviewers: dfelinto, campbellbarton

Reviewed By: campbellbarton

Differential Revision:

6 years agoFix stupid strict flags in math_color_inline.c
Sergey Sharybin [Fri, 20 Mar 2015 07:25:14 +0000 (12:25 +0500)]
Fix stupid strict flags in math_color_inline.c

It was unleashed with recent ghash commit and issue seems to
be the same as fixed in 69065b5b.

6 years agoAdd missing update adding a shape-key
Campbell Barton [Fri, 20 Mar 2015 04:50:56 +0000 (15:50 +1100)]
Add missing update adding a shape-key

Noticeable when pin is enabled.

6 years agoCleanup: warnings bit-shift int overflow
Campbell Barton [Fri, 20 Mar 2015 04:26:47 +0000 (15:26 +1100)]
Cleanup: warnings bit-shift int overflow

6 years agoCleanup remove unused variable
Antony Riakiotakis [Thu, 19 Mar 2015 20:11:33 +0000 (21:11 +0100)]
Cleanup remove unused variable

6 years agoMissed this last commit.
Antony Riakiotakis [Thu, 19 Mar 2015 20:10:05 +0000 (21:10 +0100)]
Missed this last commit.

6 years agoFix T43989: Sequencer - Ctrl snapping a sequencer strip does not work if you specify...
Bastien Montagne [Thu, 19 Mar 2015 19:47:38 +0000 (20:47 +0100)]
Fix T43989: Sequencer - Ctrl snapping a sequencer strip does not work if you specify the x axis.

New 'strip' snapping was simply not computed in case of constrained transform, hence init
'0' value was used as frame offset in this case.

This commit reorganizes a bit that snapping, to keep it more 'confined' into `snapSequenceBounds()`
dedicated function. It still needs a minor hack (setting snapping mode to something else than
defualt `SCE_SNAP_MODE_INCREMENT`, to avoid this snapping to be called by contraint code).

Thanks to Antony for review and enhancements.

This fix should be backported to 2.74.

6 years agoFix cycles dof settings
Antony Riakiotakis [Thu, 19 Mar 2015 19:48:43 +0000 (20:48 +0100)]
Fix cycles dof settings

6 years agoRemove deleted list for palette colors
Campbell Barton [Thu, 19 Mar 2015 19:07:22 +0000 (06:07 +1100)]
Remove deleted list for palette colors

was used because of UI memory access only.

6 years agoUI: minor re-organization of dof options
Campbell Barton [Thu, 19 Mar 2015 17:00:05 +0000 (04:00 +1100)]
UI: minor re-organization of dof options

6 years agoBlender will now use trilinear filtering by default
Antony Riakiotakis [Thu, 19 Mar 2015 19:04:55 +0000 (20:04 +0100)]
Blender will now use trilinear filtering by default

6 years agoBLI GHash: add some basic gtests.
Bastien Montagne [Thu, 19 Mar 2015 17:06:15 +0000 (18:06 +0100)]
BLI GHash: add some basic gtests.

We could likely add much more, but those already covers basic behavior and should be able
to catch most errors when editing this code.

Also added some performances tests as well (timing ghash insert/lookup under heavy loads,
for different kinds of keys).

6 years agoGHash - code reorganization, performance enhancements, add a few missing utils to...
Bastien Montagne [Thu, 19 Mar 2015 16:36:59 +0000 (17:36 +0100)]
GHash - code reorganization, performance enhancements, add a few missing utils to API.

This patch is the root of the GHash rework, all other diff will be based on it:

Reduce average load from 3.0 to 0.75

This is the big performance booster part, e.g. makes tracing a dyntopo stroke between 25% and 30% faster.

Not much to say about it, aside that it obviously increase memory footprint (about 25% - 30% too).

Add optional shrinking

I.e. ghashes/gsets can now shrink their buckets array when you remove enough entries. This remains optional and OFF by default.

Add code to use masking instead of modulo

Buckets indices are obtained from hashes by “reducing” the hash value into the valid bucket range. This can be done either by bit-masking, or using modulo operation.
The former is quicker, but requires real hashes, while the later is slower (average 10% impact on ghash operations) but can also be used as a 'fake' hashing on raw values, like e.g. indices.

In Blender currently not all ghash usages actually hash their keys, so we stick to modulo for now (masking is ifdef’ed out), we may however investigate the benefits of switching to masking with systematic very basic hashing later…

Add various missing API helpers

I.e. a way to deep-copy a ghash/gset, and a way to (re-)reserve entries (i.e. manually grow or shrink the ghash after its creation).

Various code refactoring

* Get rid of the 'hack' regarding ghash size when used as gset (it’s simpler and safer to have two structs defined here, and cast pointers as needed).
* Various re-shuffle and factorization in low-level internal code.
* Some work on hashing helpers, introducing some murmur2a-based hashing too.

Thanks a bunch to Campbell for the extensive review work. :)

Reviewers: sergey, campbellbarton

Subscribers: psy-fi, lukastoenne

Projects: #bf_blender

Maniphest Tasks: T43766

Differential Revision:

6 years agoArmature select-hierarchy now uses connected bones
Campbell Barton [Thu, 19 Mar 2015 14:37:29 +0000 (01:37 +1100)]
Armature select-hierarchy now uses connected bones

Traverse down connected child bones (when available)

Also remove redundant bone loops.

6 years agoDepth of field high quality:
Antony Riakiotakis [Tue, 3 Mar 2015 16:47:31 +0000 (17:47 +0100)]
Depth of field high quality:

A new checkbox "High quality" is provided in camera settings to enable
this. This creates a depth of field that is much closer to the rendered
result and even supports aperture blades in the effect, but it's more
expensive too. There are optimizations to do here since the technique is
very fill rate heavy.

People, be careful, this -can- lock up your screen if depth of field
blurring is too extreme.

Technical details:

This uses geometry shaders + instancing and is an adaptation of
techniques gathered from


* Support dithering to minimize banding.
* Optimize fill rate in geometry shader.

6 years agoFix compilation error of blenderplayer after recent constraint commit
Sergey Sharybin [Thu, 19 Mar 2015 14:10:09 +0000 (19:10 +0500)]
Fix compilation error of blenderplayer after recent constraint commit

6 years agoCorrect recent armature symmetrize
Campbell Barton [Thu, 19 Mar 2015 13:41:29 +0000 (00:41 +1100)]
Correct recent armature symmetrize

Duplicating part of a chain could have invalid 'connected' flag.

6 years agoSpeedup for constraints update from python script
Sergey Sharybin [Thu, 19 Mar 2015 13:28:49 +0000 (18:28 +0500)]
Speedup for constraints update from python script

General idea is to avoid actual calculation from property update()
callback and tag things for update later instead.

That said, pose constraint flags are now tagged for update and
handled as a part of object update. In the new depsgraph it'll
be a nice dedicated operation node.

Also avoid updating disabled flags for all the modifiers. This
part of the path is not totally optimal since it'll still need
to iterate over bones in order to get pchan, but to optimize it
further would be nice to find a way to avoid pchan requirement
all together.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

6 years agoFix T44040: Blender crashes when nodes are muted
Sergey Sharybin [Thu, 19 Mar 2015 11:04:49 +0000 (16:04 +0500)]
Fix T44040: Blender crashes when nodes are muted

It was actually an old issue with wrong conversion happening for muted
nodes, which wasn't visible before memory optimization commit.

This is to be backported to the final release.

6 years agoCleanup
Campbell Barton [Thu, 19 Mar 2015 09:34:02 +0000 (20:34 +1100)]

6 years agoTransform: Shift for precision PET adjustment
Campbell Barton [Thu, 19 Mar 2015 09:09:34 +0000 (20:09 +1100)]
Transform: Shift for precision PET adjustment

Patch T36753 by @hjaarnio

6 years agoArmature Symmetrize tool
Campbell Barton [Thu, 19 Mar 2015 06:57:17 +0000 (17:57 +1100)]
Armature Symmetrize tool

D1147 by @julien, with fixes/improvements

Duplicate bones where needed, otherwise use existing.
Keeps parent relations intact, can operate on parts of an armature.

6 years agoCleanup: style (armature duplicate)
Campbell Barton [Thu, 19 Mar 2015 06:29:46 +0000 (17:29 +1100)]
Cleanup: style (armature duplicate)

6 years agoFix out-of-bounds read BKE_deform_flip_side_name
Campbell Barton [Thu, 19 Mar 2015 07:00:10 +0000 (18:00 +1100)]
Fix out-of-bounds read BKE_deform_flip_side_name

6 years agoCMake: unbundle eigen3
Campbell Barton [Thu, 19 Mar 2015 04:41:41 +0000 (15:41 +1100)]
CMake: unbundle eigen3

Optionally use systems eigen3 library.

T41989 by @hasufell with edits

6 years agoCMake: exclude Colamd when OpenNL's disabled
Campbell Barton [Thu, 19 Mar 2015 03:48:52 +0000 (14:48 +1100)]
CMake: exclude Colamd when OpenNL's disabled

6 years agoFreestyle: pass Main struct to new/copy
Campbell Barton [Thu, 19 Mar 2015 03:33:05 +0000 (14:33 +1100)]
Freestyle: pass Main struct to new/copy

6 years agoCleanup: spelling grey -> gray
Campbell Barton [Thu, 19 Mar 2015 03:14:48 +0000 (14:14 +1100)]
Cleanup: spelling grey -> gray

6 years agoRevert part of recent color-management commit
Campbell Barton [Thu, 19 Mar 2015 03:09:01 +0000 (14:09 +1100)]
Revert part of recent color-management commit

This adds back rgb_to_grayscale,
not all color is managed or depends on the current loaded blend file's CM options.

Noted in comments that this is only to be used outside the CM pipeline.

6 years agoColor managed luminance for shader ramp-in-energy
Campbell Barton [Thu, 19 Mar 2015 01:59:36 +0000 (12:59 +1100)]
Color managed luminance for shader ramp-in-energy

6 years agoCleanup: better not pass function call to FTOCHAR
Campbell Barton [Thu, 19 Mar 2015 01:42:34 +0000 (12:42 +1100)]
Cleanup: better not pass function call to FTOCHAR

also use rgb_uchar_to_float

6 years agoUse fabsf for floats
Campbell Barton [Wed, 18 Mar 2015 19:13:50 +0000 (06:13 +1100)]
Use fabsf for floats

6 years agoSelect nth option to skip steps
Campbell Barton [Wed, 18 Mar 2015 17:40:43 +0000 (04:40 +1100)]
Select nth option to skip steps

Patch T43752 @codemanx, added matching curve option.

6 years agoFix for crash adding mask modifier
Campbell Barton [Wed, 18 Mar 2015 14:09:41 +0000 (01:09 +1100)]
Fix for crash adding mask modifier

6 years agoSimplify math in mix_linear glsl function. Thanks to valentin for
Antony Riakiotakis [Wed, 18 Mar 2015 13:09:03 +0000 (14:09 +0100)]
Simplify math in mix_linear glsl function. Thanks to valentin for
pointing out on irc.

6 years agoFix T44029 textures disappear in viewport if GPU mipmap generation is
Antony Riakiotakis [Wed, 18 Mar 2015 12:48:37 +0000 (13:48 +0100)]
Fix T44029 textures disappear in viewport if GPU mipmap generation is

GPUs need a full tree of mipmaps up to dimension 1xn to work. This will
make it so for all imbufs but cost is negligible and it's unlikely that
something could break due to that.

6 years agoFix bad memory access freeing viewport which uses movie clip
Sergey Sharybin [Wed, 18 Mar 2015 12:17:04 +0000 (17:17 +0500)]
Fix bad memory access freeing viewport which uses movie clip

6 years agoSupport UV island selection in UV synch and face select mode.
Antony Riakiotakis [Wed, 18 Mar 2015 11:40:53 +0000 (12:40 +0100)]
Support UV island selection in UV synch and face select mode.

Enough said, people wanted this for ages, enjoy!

6 years agoFix crash using "Copy to selected" on ID-props
Campbell Barton [Wed, 18 Mar 2015 07:50:33 +0000 (18:50 +1100)]
Fix crash using "Copy to selected" on ID-props

6 years agoRNA: palette colors api
Campbell Barton [Wed, 18 Mar 2015 04:09:04 +0000 (15:09 +1100)]
RNA: palette colors api

Methods so Python can manage colors.

6 years agoRNA: move palette into its own file
Campbell Barton [Wed, 18 Mar 2015 03:03:59 +0000 (14:03 +1100)]
RNA: move palette into its own file

6 years agoFix crash using removed data as function arguments
Campbell Barton [Wed, 18 Mar 2015 04:50:29 +0000 (15:50 +1100)]
Fix crash using removed data as function arguments

6 years agoFix RNA active spline assignment
Campbell Barton [Wed, 18 Mar 2015 04:14:32 +0000 (15:14 +1100)]
Fix RNA active spline assignment

6 years agoFix T44028: Vertex Colors Baking error
Sergey Sharybin [Tue, 17 Mar 2015 19:09:54 +0000 (00:09 +0500)]
Fix T44028: Vertex Colors Baking error

Was wrong color management flag used for some bakers.
Actually goes back to 7997e38.