blender.git
3 years agoSimple Deform modifier: invert vgroup option
Campbell Barton [Mon, 7 Mar 2016 00:28:21 +0000 (11:28 +1100)]
Simple Deform modifier: invert vgroup option

D1839 from @Orgold

3 years agoShrink Wrap modifier: invert vgroup option
Campbell Barton [Mon, 7 Mar 2016 00:24:03 +0000 (11:24 +1100)]
Shrink Wrap modifier: invert vgroup option

D1839 from @Orgold

3 years agoBMesh: avoid assert dissolving degenerate faces
Campbell Barton [Sun, 6 Mar 2016 06:24:11 +0000 (17:24 +1100)]
BMesh: avoid assert dissolving degenerate faces

For dissolving 2-sided faces, theres no need to check they are valid before removal.

3 years agoFix T47670: cycles GLSL incorrect normal map node.
Brecht Van Lommel [Sun, 6 Mar 2016 05:54:40 +0000 (06:54 +0100)]
Fix T47670: cycles GLSL incorrect normal map node.

3 years agoPython docs: minor cleanup and adding missing parenthesis to a code sample
Ines Almeida [Sat, 5 Mar 2016 19:46:01 +0000 (19:46 +0000)]
Python docs: minor cleanup and adding missing parenthesis to a code sample

3 years agoFix T47670: cycles GLSL incorrect layer weight / fresnel.
Brecht Van Lommel [Sat, 5 Mar 2016 13:29:32 +0000 (14:29 +0100)]
Fix T47670: cycles GLSL incorrect layer weight / fresnel.

World space and view space normals were mixed up, we should only convert from
world to view space if a custom normal is connected, otherwise it is already in
view space.

3 years agoFix for missing update changing VFont.filepath
Campbell Barton [Sat, 5 Mar 2016 06:40:33 +0000 (17:40 +1100)]
Fix for missing update changing VFont.filepath

Changing the filepath wouldn't reload the font even after calling scene.update().

3 years agoCleanup: quiet -Wcomma, cast to void where needed
Campbell Barton [Fri, 4 Mar 2016 22:16:12 +0000 (09:16 +1100)]
Cleanup: quiet -Wcomma, cast to void where needed

3 years agoCleanup: unnecessary comma use
Campbell Barton [Fri, 4 Mar 2016 22:13:16 +0000 (09:13 +1100)]
Cleanup: unnecessary comma use

Also use SWAP macro

3 years agoCleanup: unnecessary comma use
Campbell Barton [Fri, 4 Mar 2016 22:09:05 +0000 (09:09 +1100)]
Cleanup: unnecessary comma use

3 years agoAlternate fix for virtual-pixel update not working
Campbell Barton [Fri, 4 Mar 2016 19:37:56 +0000 (06:37 +1100)]
Alternate fix for virtual-pixel update not working

On changing, clear drawable window to force update.

3 years agoRevert "Fix changing virtual pixelsize having no affect if only main window is open"
Campbell Barton [Fri, 4 Mar 2016 19:30:51 +0000 (06:30 +1100)]
Revert "Fix changing virtual pixelsize having no affect if only main window is open"

This reverts commit fe7bab13439fe6f0181f6661fbf7bb7ae18f5310.

Setting correct context is important,
but this is setting DPI and widget unit on *every* mouse move.

3 years agoFix changing virtual pixelsize having no affect if only main window is open
Julian Eisel [Fri, 4 Mar 2016 16:58:35 +0000 (17:58 +0100)]
Fix changing virtual pixelsize having no affect if only main window is open

Changing virtual pixelsize only had an affect when a second window was open. (Was also possible to trigger update by opening another window.)

Steps to reproduce:
* Change any editor into user preferences *in main window*
* Change virtual pixel size -> nothing happens

3 years agoFix typo in 'Vietnamese' language label (must have sneaked in while adding Basque...
Bastien Montagne [Fri, 4 Mar 2016 16:46:39 +0000 (17:46 +0100)]
Fix typo in 'Vietnamese' language label (must have sneaked in while adding Basque one, grr).

3 years agoFix menu aliged to right side of screen in UserPref window
Julian Eisel [Fri, 4 Mar 2016 15:44:38 +0000 (16:44 +0100)]
Fix menu aliged to right side of screen in UserPref window

Only applied in a really few cases actually.

To reproduce:
* Open User Preferences *in own window*
* Search for node wrangler add-on (it's one of the few cases where this happens)
* Enable and open details
* Click on one of the menues in the add-on preferences

Actually this was reproducable in any window, user preference area just had to take up most/all of the width.

Note: I'm not totally sure if just disabling these lines is correct, but I didn't find any issues or any information why this was needed. So it seems to be redundant.

3 years agoFix T47683: broken BBox logic when drawing duplis.
Bastien Montagne [Fri, 4 Mar 2016 11:32:35 +0000 (12:32 +0100)]
Fix T47683: broken BBox logic when drawing duplis.

Once a dupli had a valid bbox, that bbox would be used for all following objects
without bbox, instead of skipping clipping check.

Issue unveiled by rB3fa0a1a5bc0ff2, but not related at all (in fact, bug was present before that commit).

3 years agoFix uninitialized memory use lattice-boundbox
Campbell Barton [Fri, 4 Mar 2016 10:50:54 +0000 (21:50 +1100)]
Fix uninitialized memory use lattice-boundbox

Many other places weren't clearing boundbox dirty flag after calculation.

3 years agoCleanup: suspicious use of commas
Campbell Barton [Fri, 4 Mar 2016 05:38:41 +0000 (16:38 +1100)]
Cleanup: suspicious use of commas

3 years agoCurve/line width change broke outline drawing
Campbell Barton [Fri, 4 Mar 2016 03:43:39 +0000 (14:43 +1100)]
Curve/line width change broke outline drawing

Partially revert e29a5ba6

3 years agoDocs: include mathutils.interpolate
Campbell Barton [Thu, 3 Mar 2016 21:40:22 +0000 (08:40 +1100)]
Docs: include mathutils.interpolate

3 years agoDocs: example for writing blend file libraries
Campbell Barton [Thu, 3 Mar 2016 20:50:17 +0000 (07:50 +1100)]
Docs: example for writing blend file libraries

3 years agoCorrect image format args (remove 'MOVIE')
Campbell Barton [Thu, 3 Mar 2016 19:32:52 +0000 (06:32 +1100)]
Correct image format args (remove 'MOVIE')

3 years agoDocs: minor comment correction
Campbell Barton [Thu, 3 Mar 2016 19:35:17 +0000 (06:35 +1100)]
Docs: minor comment correction

3 years agoDocs: comment on poly flipping w/ solidify
Campbell Barton [Thu, 3 Mar 2016 19:17:32 +0000 (06:17 +1100)]
Docs: comment on poly flipping w/ solidify

3 years agoDocs: add comment on reloading modules
Campbell Barton [Thu, 3 Mar 2016 19:14:02 +0000 (06:14 +1100)]
Docs: add comment on reloading modules

3 years agoUse IOError exception failing to write blend file
Campbell Barton [Thu, 3 Mar 2016 19:10:25 +0000 (06:10 +1100)]
Use IOError exception failing to write blend file

3 years agoFix T47676, take two: also do some 'regular file' versionning (allows to handle users...
Bastien Montagne [Thu, 3 Mar 2016 15:06:49 +0000 (16:06 +0100)]
Fix T47676, take two: also do some 'regular file' versionning (allows to handle users own default startup files, among others...).

3 years agoFix T47676: Broken default values for particle brush strength.
Bastien Montagne [Thu, 3 Mar 2016 14:48:50 +0000 (15:48 +0100)]
Fix T47676: Broken default values for particle brush strength.

Current startup .blend has old (percent?) values for particle brush strength.

Since rBe4e21480d6331903c90ab073746484498441e1ac, UI controls do not clamp automatically values anymore,
which means when you first enable comb (or any other brush) you get a 50 strength, waaaayyyy to powerful.

This commit fixes this in `BLO_update_defaults_startup_blend`, note that it does not fix custom users'
startup files, nothing to do here...

3 years agoFix T47644: crash (use-after-free) regression from rB7a74738914a66e.
Bastien Montagne [Thu, 3 Mar 2016 13:44:05 +0000 (14:44 +0100)]
Fix T47644: crash (use-after-free) regression from rB7a74738914a66e.

Handling `me` data here is not good idea anyway, we override it completly with data
from `tmp` (crash came from freeing already existing bb from me, while pointer still existed in tmp).

(rediscovered it while working on T47676...).

To be backported to 2.77.

3 years agoFix T47674: "Change Data/Files" setting incorrect filter
Julian Eisel [Thu, 3 Mar 2016 11:52:53 +0000 (12:52 +0100)]
Fix T47674: "Change Data/Files" setting incorrect filter

Image filter was not set, but only if invoked from toolbar (image strip needs to be selected to see the button).
Caused by rB7fa72b8970, Wasn't aware there's another button for this for image strips.

3 years agoFix player (c)
Sergey Sharybin [Thu, 3 Mar 2016 11:11:05 +0000 (16:11 +0500)]
Fix player (c)

3 years agoMake texture node threaded
Sergey Sharybin [Thu, 3 Mar 2016 10:59:20 +0000 (15:59 +0500)]
Make texture node threaded

Quite trivial idea -- just pass tread ID to the texture sampling function.

Implemented as a TLS to avoid passing huge amount of extra contexts around.
Should be working on all platforms, but compilation test is required.

Reviewers: juicyfruit, campbellbarton

Reviewed By: campbellbarton

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

3 years agoAdd utility macro to work with thread local storage
Sergey Sharybin [Thu, 3 Mar 2016 10:53:42 +0000 (15:53 +0500)]
Add utility macro to work with thread local storage

3 years agoPyAPI: API for selectively writing data-blocks
Campbell Barton [Thu, 3 Mar 2016 02:11:07 +0000 (13:11 +1100)]
PyAPI: API for selectively writing data-blocks

Useful for writing asset-libraries to a file, eg.

`bpy.data.libraries.write(filepath, datablocks, relative_remap=False, fake_user=False)`

3 years agoRefactor BKE_copybuffer for general partial saving
Campbell Barton [Thu, 3 Mar 2016 10:11:22 +0000 (21:11 +1100)]
Refactor BKE_copybuffer for general partial saving

Move to re-usable BKE_blendfile_write_partial API

3 years agoAvoid some obvious crashes when running out memory allocating render result
Sergey Sharybin [Thu, 3 Mar 2016 08:21:04 +0000 (13:21 +0500)]
Avoid some obvious crashes when running out memory allocating render result

3 years agoRender Save Buffers: Use proper memory buffer size for a display buffer
Sergey Sharybin [Thu, 3 Mar 2016 08:13:42 +0000 (13:13 +0500)]
Render Save Buffers: Use proper memory buffer size for a display buffer

3 years agoCMake: Remove redundant print of Git Found message
Sergey Sharybin [Thu, 3 Mar 2016 08:04:31 +0000 (13:04 +0500)]
CMake: Remove redundant print of Git Found message

find_package(Git) will already print this.

3 years agoUI: move checkbox for missing add-ons to LHS
Campbell Barton [Thu, 3 Mar 2016 07:50:15 +0000 (18:50 +1100)]
UI: move checkbox for missing add-ons to LHS

3 years agoExperimental option to build Blender with C11 support
Sergey Sharybin [Fri, 29 Jan 2016 16:43:40 +0000 (17:43 +0100)]
Experimental option to build Blender with C11 support

It'll be nice to eventually go C11/C++11 by default, but for until
then it's kinda handy to be able to build locally with C11 support,

Reviewers: mont29, campbellbarton

Reviewed By: mont29, campbellbarton

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

3 years agoCleanup: take Main argument for copy
Campbell Barton [Thu, 3 Mar 2016 02:35:21 +0000 (13:35 +1100)]
Cleanup: take Main argument for copy

3 years agoFix RNA property clamp assigning in Python
Campbell Barton [Thu, 3 Mar 2016 01:33:43 +0000 (12:33 +1100)]
Fix RNA property clamp assigning in Python

On first assignment the value was clamped, but successive assignments weren't.

3 years agoCleanup: comments for creator_args & line length
Campbell Barton [Thu, 3 Mar 2016 01:35:33 +0000 (12:35 +1100)]
Cleanup: comments for creator_args & line length

3 years agoArmature edit-mode: Add clear-roll operator, Alt-R
Campbell Barton [Thu, 3 Mar 2016 00:45:43 +0000 (11:45 +1100)]
Armature edit-mode: Add clear-roll operator, Alt-R

3 years agoIncrease max-frame to 500,000
Campbell Barton [Wed, 2 Mar 2016 21:43:22 +0000 (08:43 +1100)]
Increase max-frame to 500,000

Note that we could increase to 524286 without loosing subframe precision,
however this is a round number allowing for longer video export / animations.

See T46859 for details.

3 years agoCleanup: replace dict /w list for module reload
Campbell Barton [Wed, 2 Mar 2016 19:31:11 +0000 (06:31 +1100)]
Cleanup: replace dict /w list for module reload

Never used keys and better reload in same order loaded.

3 years agoCorrection to own previous rB9c0de0084bfe.
Bastien Montagne [Wed, 2 Mar 2016 17:09:32 +0000 (18:09 +0100)]
Correction to own previous rB9c0de0084bfe.

'1mm+1m' would fail with original fix, now consuming all alpha chars before checking unit again...

3 years agoFix bplayer (c)
Bastien Montagne [Wed, 2 Mar 2016 17:04:26 +0000 (18:04 +0100)]
Fix bplayer (c)

Seriously...

3 years agoFix T47661: cm (centimeter) unit breaks m (meter) unit in Metric.
Bastien Montagne [Wed, 2 Mar 2016 16:57:03 +0000 (17:57 +0100)]
Fix T47661: cm (centimeter) unit breaks m (meter) unit in Metric.

`m` unit when used after `cm`/`mm`/etc. ones would get ignored, and the alt version of miles
would be used instead.

The root of the issue is that, in `unit_find_str`, once we get a 'hit' for a unit, we check
it's actual unit (since 'm' would also hit on 'cm', 'mm', etc.). In case that hit is not a
valid unit one, we would just return NULL, breaking the cycle of checks over that unit, and
hence missing all later usages of it.

So now, in case we have an 'invalid unit hit', we immediately retry to find it within remaining string.

3 years agoFix crash accessing nodes search menu
Sergey Sharybin [Wed, 2 Mar 2016 12:57:16 +0000 (17:57 +0500)]
Fix crash accessing nodes search menu

Was caused by d49985c.

3 years agoAvoid node tree update tag when changed nodes which are not affecting result
Sergey Sharybin [Thu, 4 Feb 2016 20:39:42 +0000 (01:39 +0500)]
Avoid node tree update tag when changed nodes which are not affecting result

This was we don't have re-compo or viewport re-rendering happening when changing
nodes which are not connected to the output at all (for example when adding new
nodes or changing settings for unconnected nodes).

Only basic operations are covered for now. checks could be added to more tools
when needed.

Currently it's not fully optimal implementation, but seems to work fast enough.
Don't see reliable alternative to that -- keeping tag in the node wouldn't work
because of the node groups (which are probably already broken, but should be
easy to solve with current approach). So guess it's more matter of optimizing
path search from a node to output.

Before processing forward let's check whether it's indeed something we want
and whether the approach is indeed not fully bad.

Reviewers: campbellbarton, mont29

Subscribers: sebastian_k

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

3 years agoFix T47564: Unwrapping the same mesh results in different UVs.
Bastien Montagne [Wed, 2 Mar 2016 11:21:53 +0000 (12:21 +0100)]
Fix T47564: Unwrapping the same mesh results in different UVs.

Pointers of faces were passed as face keys during parametrizer's face creation. Since those
addresses were different for every run, the layout of the faces ended up being different
in the internal hash, leading to inconsistent order of their evaluation during LSCM solving,
and slightly different UV maps.

Solved by simply using faces' indices as key instead, which ensures we always get same results
with exact same input data now.

Many thanks to Roman Nagornov (RomanN) for raising the issue, investigating it and finding
the solution! And thanks to Brecht for quick review too.

3 years agoFix bplayer (c)
Bastien Montagne [Wed, 2 Mar 2016 10:06:23 +0000 (11:06 +0100)]
Fix bplayer (c)

3 years agoCycles: Fix wrong default value for volume samples
Sergey Sharybin [Wed, 2 Mar 2016 09:53:36 +0000 (14:53 +0500)]
Cycles: Fix wrong default value for volume samples

3 years agoFix T47610: Texture node in compositing nodes does not update
Sergey Sharybin [Wed, 2 Mar 2016 07:45:46 +0000 (12:45 +0500)]
Fix T47610: Texture node in compositing nodes does not update

The issue was caused by some code accessing R from a functions which
are marked as safe for use from outside of render pipeline.

Now those functions are safe(er) for use.

3 years agoCleanup: style, and --help edits
Campbell Barton [Wed, 2 Mar 2016 06:01:38 +0000 (17:01 +1100)]
Cleanup: style, and --help edits

3 years agoUI: Show categories in operator search popup
Campbell Barton [Wed, 2 Mar 2016 03:05:49 +0000 (14:05 +1100)]
UI: Show categories in operator search popup

Gives better context especially when operators have generic names.

3 years agoUI: Add search-create callback
Campbell Barton [Wed, 2 Mar 2016 02:57:16 +0000 (13:57 +1100)]
UI: Add search-create callback

Needed to support alternate search UI's, no functional changes.

3 years agoFix assert in UI code
Campbell Barton [Wed, 2 Mar 2016 01:53:55 +0000 (12:53 +1100)]
Fix assert in UI code

Dont attempt to clip empty string

3 years agoFix T47642: Crash baking w/ cycles
Campbell Barton [Wed, 2 Mar 2016 01:32:42 +0000 (12:32 +1100)]
Fix T47642: Crash baking w/ cycles

3 years agoUse render path as initial location when saving renders
Campbell Barton [Wed, 2 Mar 2016 01:14:23 +0000 (12:14 +1100)]
Use render path as initial location when saving renders

3 years agoGHash: BLI_ghash_ensure_p_ex now takes a pointer-to-key arg
Campbell Barton [Wed, 2 Mar 2016 00:12:48 +0000 (11:12 +1100)]
GHash: BLI_ghash_ensure_p_ex now takes a pointer-to-key arg

This is an alternative to passing a copy callback which is some times inconvenient.
Instead the caller can write to the key - needed when the key is duplicated memory.

Allows for minor optimization in ghash/gset use.

Also add BLI_gset_ensure_p_ex

3 years agoUPBGE: Fix light visibility
Ulysse Martin [Wed, 25 Nov 2015 19:53:45 +0000 (20:53 +0100)]
UPBGE: Fix light visibility

3 years agoUPBGE: Disallow shadow buffer render when the lamp is hidden.
Porteries Tristan [Sat, 6 Feb 2016 10:53:15 +0000 (11:53 +0100)]
UPBGE: Disallow shadow buffer render when the lamp is hidden.

It now allow the user to use multiple shadow lamps and hidden the culled lamps.

3 years agoFix T47635: Texture paint performance regression
Campbell Barton [Tue, 1 Mar 2016 19:57:26 +0000 (06:57 +1100)]
Fix T47635: Texture paint performance regression

Flipped bindcode check in D1414 caused projection paint to always do full updates.

3 years agoAdd Basque (Euskara) new language.
Bastien Montagne [Tue, 1 Mar 2016 19:04:49 +0000 (20:04 +0100)]
Add Basque (Euskara) new language.

Nothing critical, but would be nice to backport this to 2.77.

3 years agoFix T47643: Blender crash. Linked speaker issue.
Bastien Montagne [Tue, 1 Mar 2016 17:09:22 +0000 (18:09 +0100)]
Fix T47643: Blender crash. Linked speaker issue.

Speaker's localization func would not make direct-linked its used sound datablock...

3 years agoBatch-previews generation: add option to control whether we save backup .blend1 file...
Bastien Montagne [Tue, 1 Mar 2016 16:46:21 +0000 (17:46 +0100)]
Batch-previews generation: add option to control whether we save backup .blend1 file or not.

Requested by Aaron Carlisle (@blendify) over IRC.

3 years agoFix T47638: Bad auto-smooth value for new meshes
Sergey Sharybin [Tue, 1 Mar 2016 11:58:33 +0000 (12:58 +0100)]
Fix T47638: Bad auto-smooth value for new meshes

Code was using degrees as radians.

Still unclear why default cube will have 180 degrees angle, but new meshes 30,
but that's kinda separate topic which is to be addressed separately.

This is a subject for final 2.77 release.

3 years agoFix (unreported) crash when opening a file from splash screen when 'load UI' option...
Bastien Montagne [Tue, 1 Mar 2016 11:40:04 +0000 (12:40 +0100)]
Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled.

See rB935e241fa6ea095493 for details of the issue, but first fix caused regression T47632.

So for now handling the issue in a localized way, this is not a real solution (since this could happen
in other cases), but will do for 2.77.

This commit is to be backported to 2.77.

3 years agoFix T47632: Revert "Fix (unreported) crash when opening a file from splash screen...
Bastien Montagne [Tue, 1 Mar 2016 10:47:33 +0000 (11:47 +0100)]
Fix T47632: Revert "Fix (unreported) crash when opening a file from splash screen when 'load UI' option is disabled."

This reverts commit 935e241fa6ea095493ade5d5403c9ac55c18d5ef.

Issue will be fixed in a more localized way for now (not that nice, since this use-after-free can possibly happen
in other places too, but only safe solution for 2.77).

This commit is to be backported in 2.77.

3 years agoPy (addons) i18n: fix memleak, enhance msgid lookup.
Bastien Montagne [Tue, 1 Mar 2016 10:40:23 +0000 (11:40 +0100)]
Py (addons) i18n: fix memleak, enhance msgid lookup.

Probably did not happen yet (since nobody uses addons translations...), but there was an
nice memleak during creation of translation ghash in case a same msgid/msgctx would be
added more than once.

Also, no need to allocate (and free) a temp key each time we lookup a msgid, we can use
given const strings directly here!

3 years agoEdit Mesh: Edge tag toggle when no active path is found
Campbell Barton [Tue, 1 Mar 2016 05:33:04 +0000 (16:33 +1100)]
Edit Mesh: Edge tag toggle when no active path is found

User request, this matches 2.6x behavior more closely.

3 years agoEyedropper: Reset property on cancel and add enter to confirm
Julian Eisel [Mon, 29 Feb 2016 22:00:14 +0000 (23:00 +0100)]
Eyedropper: Reset property on cancel and add enter to confirm

3 years agoInclude modules needed for Python to run pip
Campbell Barton [Mon, 29 Feb 2016 20:34:18 +0000 (07:34 +1100)]
Include modules needed for Python to run pip

This means Python developers can install pip using Blender's bundled Python.

3 years agoUser customizable keymap for eyedropper (modal operator)
Julian Eisel [Mon, 29 Feb 2016 17:46:20 +0000 (18:46 +0100)]
User customizable keymap for eyedropper (modal operator)

3 years agoCleanup: Rename ED_button_operatortypes -> ED_operatortypes_ui
Julian Eisel [Mon, 29 Feb 2016 16:47:36 +0000 (17:47 +0100)]
Cleanup: Rename ED_button_operatortypes -> ED_operatortypes_ui

3 years agoAdd User Interface keymap (no items yet)
Julian Eisel [Mon, 29 Feb 2016 16:40:19 +0000 (17:40 +0100)]
Add User Interface keymap (no items yet)

Needed to allow modal UI keymaps, but I'm sure we'll need this more often in future.
First item will be modal eyedropper keymap coming in a following commit.

3 years agoFix a bunch of temp full-screen glitches
Julian Eisel [Mon, 29 Feb 2016 15:18:42 +0000 (16:18 +0100)]
Fix a bunch of temp full-screen glitches

Steps to reproduce fixed glitches were:
* Change any editor to be file browser from menu, Ctrl+O *from the file browser area*, Esc -> area reset to what it was before changing to file browser initially
* Ctrl+O from any area, F12, Esc -> returns to initial editor in full-screen (expected is file browser in full-screen)

Fixes T46229

Core of the fix is removing old area from spacedata list when going back to previous area (see ED_area_prevspace -> BKE_spacedata_remove). Also, when creating a new temp area we now don't exit old area anymore (needed so SpaceFile->op is kept, but it also makes sense in general)
Aaand finally removes some ugly hacks.

Tested quite a bit, so I think it's safe to apply (besides of remark below), just would like to get things double checked and confirmed. After all, this full-screen stuff finally starts to feel like it's working :P

Note, there's still a memory leak when quitting Blender with temp area open. Haven't found out how to solve yet, but it's not that important for review anyway.

Reviewers: campbellbarton, brecht

Reviewed By: brecht

Subscribers: plyczkowski, Blendify

Maniphest Tasks: T46229

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

3 years agoCleanup: Duplicated function
Julian Eisel [Mon, 29 Feb 2016 14:20:09 +0000 (15:20 +0100)]
Cleanup: Duplicated function

wmOrtho2_region_pixelspace and wmOrtho2_region_ui were doing exact same thing since rBSa86482f81cf3.

3 years agoBuildbot: Store latest master config from buildbot
Sergey Sharybin [Mon, 29 Feb 2016 10:33:06 +0000 (11:33 +0100)]
Buildbot: Store latest master config from buildbot

3 years agoFix T47604: Sculpt + Modifier undo gives invalid normals
Campbell Barton [Mon, 29 Feb 2016 09:37:19 +0000 (20:37 +1100)]
Fix T47604: Sculpt + Modifier undo gives invalid normals

3 years agoTests: improve RNA default reporting
Campbell Barton [Mon, 29 Feb 2016 00:55:44 +0000 (11:55 +1100)]
Tests: improve RNA default reporting

Float values were often reported with extra precision from float32 -> 64 conversion.

Add repr_float_32 to give cleaner output.

3 years agoRNA: add is_array property
Campbell Barton [Mon, 29 Feb 2016 00:02:08 +0000 (11:02 +1100)]
RNA: add is_array property

Needed since dynamic arrays would have zero length.

3 years agoPyAPI: correct function name w/ arg parsing
Campbell Barton [Sun, 28 Feb 2016 21:51:27 +0000 (08:51 +1100)]
PyAPI: correct function name w/ arg parsing

3 years agoMinor optimization: avoid 2x hash, adding to set
Campbell Barton [Sun, 28 Feb 2016 21:48:10 +0000 (08:48 +1100)]
Minor optimization: avoid 2x hash, adding to set

3 years agoMinor optimization to skin operators
Campbell Barton [Sun, 28 Feb 2016 21:45:03 +0000 (08:45 +1100)]
Minor optimization to skin operators

- store layer lookup
- single hash adding to set

3 years agoFix T47615: crash trying to use point density with lamp object.
Brecht Van Lommel [Sun, 28 Feb 2016 21:56:18 +0000 (22:56 +0100)]
Fix T47615: crash trying to use point density with lamp object.

3 years agoCycles: Fix compilation error of certain OpenCL split kernels
Sergey Sharybin [Sun, 28 Feb 2016 15:53:02 +0000 (16:53 +0100)]
Cycles: Fix compilation error of certain OpenCL split kernels

3 years agoFix T42536: Normals modifier: Generated normals can be opposed to face one, needs...
Bastien Montagne [Sun, 28 Feb 2016 14:48:08 +0000 (15:48 +0100)]
Fix T42536: Normals modifier: Generated normals can be opposed to face one, needs winding flipping in this case.

3 years agoBKE_mesh: add polygon flipping tools.
Bastien Montagne [Sun, 28 Feb 2016 14:29:56 +0000 (15:29 +0100)]
BKE_mesh: add polygon flipping tools.

Those new functions invert the winding of polygons, effectively inverting their normals.

A helper was also added to allow swapping two items in customdata layers.

Being able to invert normals outside of BMesh area is very important in several places,
like IO scripts or customnormals modifiers...

Reviewers: campbellbarton

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

3 years agoCleanup: rename `CustomData_swap` to `CustomData_swap_corners`.
Bastien Montagne [Sun, 28 Feb 2016 14:16:42 +0000 (15:16 +0100)]
Cleanup: rename `CustomData_swap` to `CustomData_swap_corners`.

More in line with our other func names handling sub-item data (mainly, tessfaces' UVs and VCol...).

3 years agoFix T47608: Cycles cage baking crash after recent uv derivative fixes.
Brecht Van Lommel [Sat, 27 Feb 2016 22:51:25 +0000 (23:51 +0100)]
Fix T47608: Cycles cage baking crash after recent uv derivative fixes.

3 years agoFix T47605: Elsyiun theme info text hard to read
Campbell Barton [Sat, 27 Feb 2016 20:22:12 +0000 (07:22 +1100)]
Fix T47605: Elsyiun theme info text hard to read

3 years agoFix T47582: Curve handle thickness regression
Campbell Barton [Sat, 27 Feb 2016 19:29:14 +0000 (06:29 +1100)]
Fix T47582: Curve handle thickness regression

3 years agoFix T47586: Nurbs handle thickness regression
Campbell Barton [Sat, 27 Feb 2016 18:57:22 +0000 (05:57 +1100)]
Fix T47586: Nurbs handle thickness regression

3 years agoFix T47583: Mesh wire edge thickness regression
Campbell Barton [Sat, 27 Feb 2016 18:45:46 +0000 (05:45 +1100)]
Fix T47583: Mesh wire edge thickness regression

3 years agoCleanup split creator.c
Campbell Barton [Sat, 27 Feb 2016 18:10:00 +0000 (05:10 +1100)]
Cleanup split creator.c

creator.c was getting hard to follow.

- Split off argument and signal handling into own files.
- Move docstrings next to functions (to keep docs grouped with code).

3 years agoFix T47592: Wrong line width w/ custom-bones
Campbell Barton [Sat, 27 Feb 2016 18:03:49 +0000 (05:03 +1100)]
Fix T47592: Wrong line width w/ custom-bones

3 years agoDocs: early exist build process on error
Campbell Barton [Sat, 27 Feb 2016 17:24:22 +0000 (04:24 +1100)]
Docs: early exist build process on error

Don't attempt to build docs when generation fails.