blender.git
22 months agoFix T52401: "Export Keying Set" operator generated incorrect ID's for shapekeys v2.79-rc2
Joshua Leung [Thu, 17 Aug 2017 13:03:28 +0000 (01:03 +1200)]
Fix T52401: "Export Keying Set" operator generated incorrect ID's for shapekeys

To be backported.

22 months agoBlender 2.79: Point subodules to updated hash
Sergey Sharybin [Fri, 18 Aug 2017 12:12:04 +0000 (14:12 +0200)]
Blender 2.79: Point subodules to updated hash

22 months agoPyAPI: Fix memory leak w/ empty, allocated enums
Campbell Barton [Fri, 18 Aug 2017 08:29:27 +0000 (18:29 +1000)]
PyAPI: Fix memory leak w/ empty, allocated enums

22 months agoFix T46329: scene_update_{pre,post} doc needs clarification
Sybren A. Stüvel [Tue, 8 Aug 2017 13:13:54 +0000 (15:13 +0200)]
Fix T46329: scene_update_{pre,post} doc needs clarification

The documentation for the bpy.app.handlers.scene_update_{pre,post}
handlers states that they're called "on updating the scenes data".
However, they're called even when the data hasn't changed. Of course
such handlers are useful, but the documentation should reflect the
current behaviour.

Reviewers: mont29, sergey

Subscribers: Blendify

Maniphest Tasks: T46329

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

22 months agoFixed Alembic unit test
Sybren A. Stüvel [Wed, 9 Aug 2017 11:59:27 +0000 (13:59 +0200)]
Fixed Alembic unit test

Commit b6d7cdd3cee9312156e20783248a3b12420b7a53 changed how the mesh data
is deformed, which wasn't taken into account yet in this unit test.

Instead of directly reading the mesh vertices (which aren't animated any
more), we convert the modified mesh to a new one, and inspect those
vertices instead.

22 months agoFix T52240: Alembic Not Transferring Materials Per Frame
Sybren A. Stüvel [Wed, 9 Aug 2017 11:05:22 +0000 (13:05 +0200)]
Fix T52240: Alembic Not Transferring Materials Per Frame

When a mesh changes its number of vertices during the animation,
Blender rebuilds the DerivedMesh, after which the materials weren't
applied any more (causing the default to the first material slot).

22 months agoAlembic: Renamed variable assigned_name → assigned_mat
Sybren A. Stüvel [Wed, 9 Aug 2017 09:44:22 +0000 (11:44 +0200)]
Alembic: Renamed variable assigned_name → assigned_mat

The variable is a pointer to a Material, not to a name/string.

22 months agoFix OSX duplicate path in Python's sys.path
Campbell Barton [Thu, 10 Aug 2017 22:42:27 +0000 (08:42 +1000)]
Fix OSX duplicate path in Python's sys.path

The '..' in the path caused simple comparisons to fail.

D2780 by @akitula

22 months agoBlender 2.79: We are entering RC2 stage
Sergey Sharybin [Thu, 17 Aug 2017 12:20:30 +0000 (14:20 +0200)]
Blender 2.79: We are entering RC2 stage

22 months agoFix T52255: New Depsgraph - Constraint and Drivers not working together when the...
Sergey Sharybin [Tue, 8 Aug 2017 13:27:11 +0000 (15:27 +0200)]
Fix T52255: New Depsgraph - Constraint and Drivers not working together when the driver references itself

22 months agoAlembic import: report object name in face color index out of bounds error
Sybren A. Stüvel [Tue, 15 Aug 2017 10:43:17 +0000 (12:43 +0200)]
Alembic import: report object name in face color index out of bounds error

22 months agoAlembic import: fix crash when face color index is out of bounds.
Sybren A. Stüvel [Tue, 15 Aug 2017 10:34:40 +0000 (12:34 +0200)]
Alembic import: fix crash when face color index is out of bounds.

This can happen with Alembic files exported from Maya. I'm unsure as to the
root cause, but at least this fixes the crash itself.

Thanks to @looch for reporting this with a test file. The test file has to
remain confidential, though, so it's on my workstation only.

22 months agoFix T51701: Alembic cache screws up mesh.
Bastien Montagne [Tue, 8 Aug 2017 16:21:08 +0000 (18:21 +0200)]
Fix T51701: Alembic cache screws up mesh.

Use same trick as in DataTransfer modifier e.g. to avoid modifying
existing mesh's data.

22 months agoForgot to change magicnumber of OIIO built lib in previous commit...
Bastien Montagne [Wed, 9 Aug 2017 16:21:35 +0000 (18:21 +0200)]
Forgot to change magicnumber of OIIO built lib in previous commit...

22 months agoinstall_deps: disable PTex in our OIIO building for now, broken on newest systems.
Bastien Montagne [Wed, 9 Aug 2017 16:16:21 +0000 (18:16 +0200)]
install_deps: disable PTex in our OIIO building for now, broken on newest systems.

22 months agoFix compilation error when building without Blender
Sergey Sharybin [Tue, 8 Aug 2017 09:32:33 +0000 (11:32 +0200)]
Fix compilation error when building without Blender

Simply disabled python tests, they can't be run anyway (since blender target is
not enabled) and we don't have any player-related tests in that folder.

22 months agoCMake: test build configuration support
Campbell Barton [Thu, 3 Aug 2017 22:11:42 +0000 (08:11 +1000)]
CMake: test build configuration support

D2765 by @akitula

22 months agoFix T52278: 'Default' application template fails
Campbell Barton [Mon, 7 Aug 2017 11:17:14 +0000 (21:17 +1000)]
Fix T52278: 'Default' application template fails

Own error in 7398b3b7

22 months agoFix T52329: Boolean with aligned shapes failed
Campbell Barton [Sat, 12 Aug 2017 08:14:50 +0000 (18:14 +1000)]
Fix T52329: Boolean with aligned shapes failed

Creating ngons with multiple axis aligned shapes in the middle of a
single face would fail in some cases.

This exposed multiple problems in BM_face_split_edgenet_connect_islands

- Islands needed to be sorted on Y axis when X was aligned.
- Checking edge intersections needed increased endpoint bias.
- BVH epsilon needed to be increased.

22 months agoMath Lib: add isect_seg_seg_v2_point_ex
Campbell Barton [Sat, 12 Aug 2017 08:12:29 +0000 (18:12 +1000)]
Math Lib: add isect_seg_seg_v2_point_ex

This exposes end-point bias argument, needed in rare cases.

22 months agoCycles: Fixed broken camera motion blur when motion was not set to center on frame
Stefan Werner [Sat, 12 Aug 2017 20:04:42 +0000 (22:04 +0200)]
Cycles: Fixed broken camera motion blur when motion was not set to center on frame

Reviewers: #cycles, sergey

Reviewed By: #cycles, sergey

Subscribers: sergey

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

22 months agoCycles: Guard memcpy to potentially re-allocating memory with lock
Sergey Sharybin [Mon, 14 Aug 2017 12:55:47 +0000 (14:55 +0200)]
Cycles: Guard memcpy to potentially re-allocating memory with lock

Basically, make re-alloc and memcpy from the same lock, otherwise one
thread might be re-allocating thread while another one is trying to
copy data there.

Reported by Mohamed Sakr in IRC, thanks!

22 months agoFix width estimation for buttons with short labels in pie menus
Aleksandr Zinovev [Sat, 12 Aug 2017 08:00:19 +0000 (11:00 +0300)]
Fix width estimation for buttons with short labels in pie menus

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

To be backported to 2.79 branch

22 months agoiFix T52050: Empty VSE preview for scene strips with OpenGL preview + Rendered settings.
Bastien Montagne [Fri, 11 Aug 2017 16:02:54 +0000 (18:02 +0200)]
iFix T52050: Empty VSE preview for scene strips with OpenGL preview + Rendered settings.

'OpenGL Preview' checkbox was redundant now, just use seq_prev_type
value only.

Might be OK for 2.79, but should be double-checked first...

22 months agoFix T52327: Entering/Exiting NLA Tweakmode disables Scene -> Only Keyframes from...
Joshua Leung [Fri, 11 Aug 2017 13:40:28 +0000 (01:40 +1200)]
Fix T52327: Entering/Exiting NLA Tweakmode disables Scene -> Only Keyframes from Selected Channels

The tweakmode flag and the selected-channels flag accidentally
used the same value, due to confusion over where these flags were
supposed to be set. The selected-channels flag has now been moved
to use a different value, so that there shouldn't be any further
conflicts.

To be ported to 2.79.

22 months agoFix T52344: Softbody on Text.
Bastien Montagne [Fri, 11 Aug 2017 12:25:36 +0000 (14:25 +0200)]
Fix T52344: Softbody on Text.

Own previous fix (rBd5d626df236b) was not valid, curves are actually
supported by SoftBodies. It was rather a mere UI bug, which was not
including Surfaces and Font obect types in those valid for softbody UI.

Thanks to @brecht for the head up!

Also, fix safe for 2.79, btw.

22 months agoPie menu's sub-rows ignore 'EXPAND' flag
Aleksandr Zinovev [Fri, 11 Aug 2017 10:18:30 +0000 (13:18 +0300)]
Pie menu's sub-rows ignore 'EXPAND' flag

Regression, to be backported in 2.79.

22 months agoFix T52344: Softbody on Text.
Bastien Montagne [Fri, 11 Aug 2017 08:24:57 +0000 (10:24 +0200)]
Fix T52344: Softbody on Text.

For some reasons (c) softbody modifier was marked as compatible with
curves... Would need much more work though, so for now just removing
that flag!

22 months agoDPI: add back option to control line width, tweak default width.
Brecht Van Lommel [Mon, 7 Aug 2017 20:42:47 +0000 (22:42 +0200)]
DPI: add back option to control line width, tweak default width.

Adds thin/default/thick modes to add -1/0/1 to the auto detected line width,
while leaving the overall UI scale unchanged.

Also tweaks the default line width threshold, so thicker lines start from
slightly high UI scales.

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

22 months agoFix T52334: images with non-color data should not change color space on save.
Brecht Van Lommel [Thu, 10 Aug 2017 12:11:18 +0000 (14:11 +0200)]
Fix T52334: images with non-color data should not change color space on save.

22 months agoTweak and extend POV syntax hilghting.
Bastien Montagne [Thu, 10 Aug 2017 13:29:19 +0000 (15:29 +0200)]
Tweak and extend POV syntax hilghting.

*Changed categories of some keywords
*reordered some longer keywords that didn't appear
*Activated another color (reserved builtins) by Leonid
*added some HGPOV and UberPOV missing keywords

Patch by Maurice Raybaud (@mauriceraybaud). Thanks to Leonid for additions, feedback and Linux testing.
Related diffs: D2754 and D2755.

While not a regression, this is new feature and would be nice to have it
backported to final 2.79.

22 months agoFix T52324: Metaball disappears when deleting first metaball object.
Bastien Montagne [Thu, 10 Aug 2017 10:32:50 +0000 (12:32 +0200)]
Fix T52324: Metaball disappears when deleting first metaball object.

Lost specific MBall 'need update' case here in last year's refactor.

While technically not a regression, nice to have in 2.79.

22 months agoFix T52315: Crash on duplicating Scene without world.
Bastien Montagne [Wed, 9 Aug 2017 08:43:04 +0000 (10:43 +0200)]
Fix T52315: Crash on duplicating Scene without world.

Regression from rBa7b3047cefcbf, to be backported to 2.79.

Like... seriously... :|

22 months agoFix T52280: The Image node in Compositing can't read Z buffer of openEXR in 2.79
Lukas Stockner [Tue, 8 Aug 2017 21:00:02 +0000 (23:00 +0200)]
Fix T52280: The Image node in Compositing can't read Z buffer of openEXR in 2.79

As part of the fix for T51587, I removed the Depth output for non-Multilayer
images since it seemed weird that PNGs etc. that don't have a Z pass still get
a socket for it.
However, I forgot about non-multilayer EXRs, which are a special case that can
actually have a Z pass.

Therefore, this commit brings back the Depth output for non-multilayer images
just like it was in 2.78.

22 months agoFix fixed width box layouts
Aleksandr Zinovev [Tue, 8 Aug 2017 14:37:21 +0000 (17:37 +0300)]
Fix fixed width box layouts

Regression, to be backported in 2.79.

22 months agoFix T52260: Blender 2.79 Objects made duplicates real still refer armature proxy.
Bastien Montagne [Tue, 8 Aug 2017 14:01:48 +0000 (16:01 +0200)]
Fix T52260: Blender 2.79 Objects made duplicates real still refer armature proxy.

New code was handling correctly ID's internal references to self, but
not references between 'made real' different objects...

Regression, to be backported in 2.79.

22 months agoFix width estimation for empty layouts in pie menus
Aleksandr Zinovev [Tue, 8 Aug 2017 12:52:14 +0000 (15:52 +0300)]
Fix width estimation for empty layouts in pie menus

22 months agoFix T52263: Crash When Splitting and Merging Areas with Header Text Set.
Bastien Montagne [Tue, 8 Aug 2017 12:06:56 +0000 (14:06 +0200)]
Fix T52263: Crash When Splitting and Merging Areas with Header Text Set.

Not a regression, but safe enough to be included in 2.79.

22 months agoFix broken API doc generation: Partially revert rBa372638a76e0
Bastien Montagne [Sun, 6 Aug 2017 15:35:41 +0000 (17:35 +0200)]
Fix broken API doc generation: Partially revert rBa372638a76e0

Making those arrays static remove them from exported symbols, which
breaks API doc generation script.

To be backported to 2.79 branch.

22 months agoFix T52250: Glitch in UI in the addon panel regression
Aleksandr Zinovev [Wed, 2 Aug 2017 14:41:26 +0000 (17:41 +0300)]
Fix T52250: Glitch in UI in the addon panel regression

22 months ago2.79 release: point submodules to correct branches and versions. v2.79-rc1
Bastien Montagne [Tue, 1 Aug 2017 17:31:37 +0000 (19:31 +0200)]
2.79 release: point submodules to correct branches and versions.

22 months ago2.79 release: new splash, yeah!
Bastien Montagne [Tue, 1 Aug 2017 17:23:19 +0000 (19:23 +0200)]
2.79 release: new splash, yeah!

22 months ago2.79 release: update version numbers & readfile versionning code.
Bastien Montagne [Tue, 1 Aug 2017 17:22:31 +0000 (19:22 +0200)]
2.79 release: update version numbers & readfile versionning code.

22 months agoTweak multi-units tests to match new precision handling in conversion from raw value...
Bastien Montagne [Tue, 1 Aug 2017 14:43:40 +0000 (16:43 +0200)]
Tweak multi-units tests to match new precision handling in conversion from raw value to prety-printed one.

Note that new code allows to enable again the '1 million miles' tests.

22 months agoFix multi-units drawing re precision handling.
Bastien Montagne [Tue, 1 Aug 2017 14:35:07 +0000 (16:35 +0200)]
Fix multi-units drawing re precision handling.

This is still far from prefect, but yet much better than what we had so
far (more consistent with inheritent precision available in floats).

Note that this fixes some (currently commented out) units unittests, and
requires adjusting some others, will be done in next commit.

22 months agoBLI_math: add simple helper to get amount of 'integer' digits in a float number.
Bastien Montagne [Tue, 1 Aug 2017 14:34:02 +0000 (16:34 +0200)]
BLI_math: add simple helper to get amount of 'integer' digits in a float number.

22 months agoCleanup: warnings from last commit
Campbell Barton [Tue, 1 Aug 2017 02:31:19 +0000 (12:31 +1000)]
Cleanup: warnings from last commit

22 months agoCleanup: use static vars where appropriate
Campbell Barton [Mon, 31 Jul 2017 23:06:34 +0000 (09:06 +1000)]
Cleanup: use static vars where appropriate

22 months agoFix fcurve color assignment
Campbell Barton [Mon, 31 Jul 2017 22:27:35 +0000 (08:27 +1000)]
Fix fcurve color assignment

22 months agoCorrect accidental variable declaration
Campbell Barton [Mon, 31 Jul 2017 21:55:01 +0000 (07:55 +1000)]
Correct accidental variable declaration

22 months agoFix T52224: auto IK not respecting length, after recent bugfix.
Brecht Van Lommel [Mon, 31 Jul 2017 17:22:03 +0000 (19:22 +0200)]
Fix T52224: auto IK not respecting length, after recent bugfix.

22 months agoCode cleanup: fix warning with clang.
Brecht Van Lommel [Mon, 31 Jul 2017 17:07:29 +0000 (19:07 +0200)]
Code cleanup: fix warning with clang.

22 months agoFix T52232: Crash in RNA_enum_from_value while inspecting compositor image node prope...
Bastien Montagne [Mon, 31 Jul 2017 14:50:36 +0000 (16:50 +0200)]
Fix T52232: Crash in RNA_enum_from_value while inspecting compositor image node properties in outliner.

Bug was in RNA nodes code actually, itemf functions shall never, ever
return NULL!

Note that there were other itemf functions there that were potentially
buggy. Also harmonized a bit their code.

22 months agoFix two issues with recent changes to number display while editing them.
Bastien Montagne [Mon, 31 Jul 2017 13:40:26 +0000 (15:40 +0200)]
Fix two issues with recent changes to number display while editing them.

* Numbers with units (especially, angles) where not handled correctly
regarding number of significant digits (spotted by @brecht in T52222
comment, thanks).
* Zero value has no valid log, need to take that into account!

22 months agoProperty path generation fixes
Aleksandr Zinovev [Sat, 29 Jul 2017 12:23:01 +0000 (15:23 +0300)]
Property path generation fixes

22 months agoCleanup: quiet picky ubsan warnings
Campbell Barton [Fri, 28 Jul 2017 22:42:32 +0000 (08:42 +1000)]
Cleanup: quiet picky ubsan warnings

22 months agoCleanup: multistatement-macros warning
Campbell Barton [Fri, 28 Jul 2017 22:18:20 +0000 (08:18 +1000)]
Cleanup: multistatement-macros warning

22 months agoReplace magic numbers with deprecated names
Campbell Barton [Fri, 28 Jul 2017 20:25:54 +0000 (06:25 +1000)]
Replace magic numbers with deprecated names

The names aren't meaningful but means it wont
accidentally use valid names.

Also remove textured-font setting

22 months agoFix T52195: Sculpt from Python fails
Campbell Barton [Fri, 28 Jul 2017 19:59:17 +0000 (05:59 +1000)]
Fix T52195: Sculpt from Python fails

When calling sculpt from Python,
setting 3D 'location' but not 2D 'mouse' stopped working in 2.78.

Now check if the operator is running non-interactively and
skip the mouse-over check.

22 months agoWM: OP_IS_INVOKE was being incorrectly set
Campbell Barton [Fri, 28 Jul 2017 19:40:33 +0000 (05:40 +1000)]
WM: OP_IS_INVOKE was being incorrectly set

Calling an operator with EXEC_* context would still set the invoke flag.

22 months agoFix T52213: Enum drivers no longer work
Campbell Barton [Fri, 28 Jul 2017 16:39:16 +0000 (02:39 +1000)]
Fix T52213: Enum drivers no longer work

Regression in D1812: PyDriver variables as Objects

Taking the Python representation is nice in general
but for enums it would convert them into strings,
breaking some existing drivers.

22 months agoResolve T45301 by adding option for old behavior
Campbell Barton [Fri, 28 Jul 2017 15:35:07 +0000 (01:35 +1000)]
Resolve T45301 by adding option for old behavior

Some users really liked previous behavior,
so making it an option.

Cursor Lock Adjustment can be disabled to give something close to
2.4x behavior of cursor locking.

When lock-adjustment is disabled placing the cursor the view.
This avoids the issue reported in T40353
where the cursor could get *lost*.

22 months agoCleanup: clear deprecated UI flags
Campbell Barton [Fri, 28 Jul 2017 15:28:58 +0000 (01:28 +1000)]
Cleanup: clear deprecated UI flags

Also adds cursor-lock flag, to be used in next commit.

22 months agoFix T52156: Hair dynamics broken with density texture
Luca Rood [Fri, 28 Jul 2017 13:24:48 +0000 (15:24 +0200)]
Fix T52156: Hair dynamics broken with density texture

Even strands that were excluded by the density texture were being added
to the DM passed to cloth, but these ended up having some invalid data,
because they were not fully constructed.

This simply excludes `UNEXISTED` particles from the DM generation, as
would be expected.

22 months agoFix T52148: Point Density Texture ID User decrement error related to the Object field.
Bastien Montagne [Fri, 28 Jul 2017 10:43:06 +0000 (12:43 +0200)]
Fix T52148: Point Density Texture ID User decrement error related to the Object field.

Note that fix is not perfect, systematically make refcounting of all IDs
assigned to node's id pointer, which breaks the 'do not refcount
scene/object/text datablocks' principle...

But besides that principle being far from ideal in general, it becomes
pretty much impossible to apply when using //generic// ID pointer,
unless we add some kind of type data to that pointer somehow.

So for now, better to live with that, than having broken usercount.

22 months agoFix T52212: Vgroups doesn't work after Carve Boolean
Sergey Sharybin [Fri, 28 Jul 2017 09:55:24 +0000 (11:55 +0200)]
Fix T52212: Vgroups doesn't work after Carve Boolean

22 months agoFix potential 'divide-by-zero' in our UI fitting code.
Bastien Montagne [Fri, 28 Jul 2017 08:56:41 +0000 (10:56 +0200)]
Fix potential 'divide-by-zero' in our UI fitting code.

Reported by coverity, better fix even if highly unlikely to happen...

22 months agoFix T52208: Using UI_BUT_REDALERT flag for UI_BTYPE_KEY_EVENT buttons crashes Blender.
Bastien Montagne [Fri, 28 Jul 2017 08:38:47 +0000 (10:38 +0200)]
Fix T52208: Using UI_BUT_REDALERT flag for UI_BTYPE_KEY_EVENT buttons crashes Blender.

but pointer was not assigned in that case...

22 months agoCleanup: Remove gitignore for api images
Aaron Carlisle [Thu, 27 Jul 2017 20:04:42 +0000 (16:04 -0400)]
Cleanup: Remove gitignore for api images

22 months agoFix UI messages...
Bastien Montagne [Thu, 27 Jul 2017 13:20:44 +0000 (15:20 +0200)]
Fix UI messages...

22 months agoFix factory setup using user scripts path still
Campbell Barton [Thu, 27 Jul 2017 12:22:26 +0000 (22:22 +1000)]
Fix factory setup using user scripts path still

22 months agoFix T51776: Make sure button icons are updated on Ctrl-ScrollWheel
Jeff Knox [Thu, 27 Jul 2017 10:55:17 +0000 (12:55 +0200)]
Fix T51776: Make sure button icons are updated on Ctrl-ScrollWheel

22 months agoFix button text overlapping with shortcut text in popups
Julian Eisel [Thu, 27 Jul 2017 09:49:41 +0000 (11:49 +0200)]
Fix button text overlapping with shortcut text in popups

The purpose of the keymap strings is probably for un-embossed menu items
like seen in most pulldowns. I can't see a reason for also adding that
string for regularly drawn buttons within popups, we don't add it
anywhere else in the UI either. So this commit makes sure shortcut
strings are only added to buttons that are drawn like pulldown-menu
items.

22 months agoMinor code style corrections
Julian Eisel [Thu, 27 Jul 2017 09:44:51 +0000 (11:44 +0200)]
Minor code style corrections

22 months agoFix Label colors in popups
Aleksandr Zinovev [Thu, 27 Jul 2017 07:27:29 +0000 (10:27 +0300)]
Fix Label colors in popups

22 months agoFix: use click style if a pie was spawned by release or click event
Aleksandr Zinovev [Thu, 27 Jul 2017 07:13:40 +0000 (10:13 +0300)]
Fix: use click style if a pie was spawned by release or click event

22 months agoCleanup: remove check for old GCC&PPC
Campbell Barton [Wed, 26 Jul 2017 21:28:29 +0000 (07:28 +1000)]
Cleanup: remove check for old GCC&PPC

22 months agoCleanup: Py3.7x warning
Campbell Barton [Wed, 26 Jul 2017 21:23:36 +0000 (07:23 +1000)]
Cleanup: Py3.7x warning

22 months agoMinor template code patch. (objectHitList =/= hitObjectList)
Aaron Carlisle [Wed, 26 Jul 2017 19:56:43 +0000 (15:56 -0400)]
Minor template code patch. (objectHitList =/= hitObjectList)

The Blender text editor's built in python template "Gamelogic" has a reference near the bottom to "objectHitList" as an alleged attribute to the KX_TouchSensor. This name is incorrect, it's correct name is "hitObjectList."

Attempting to access the suggested objectHitList returns error...
```
AttributeError: 'KX_TouchSensor' object has no attribute 'objectHitList'
```

The provided diff corrects this minor error.

Reviewers: kupoman, moguri, campbellbarton, Blendify

Reviewed By: Blendify

Tags: #game_engine, #game_python

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

22 months agoFix T52176: Bevel doesn't correctly work with default empty Vgroup.
Bastien Montagne [Wed, 26 Jul 2017 14:23:24 +0000 (16:23 +0200)]
Fix T52176: Bevel doesn't correctly work with default empty Vgroup.

`defvert_array_find_weight_safe()` was confusing 'invalid vgroup' and
'valid but totally empty vgroup' cases.

Note that this also affected at least ShrinkWrap and SimpleDeform
modifiers.

22 months agoPyAPI: Skip user scripts w/ factory-startup
Campbell Barton [Tue, 25 Jul 2017 10:50:12 +0000 (20:50 +1000)]
PyAPI: Skip user scripts w/ factory-startup

Adds bpy.app.factory_startup,
used to check if user scripts should be loaded.

22 months agoPython module test: Don't cfail the test when import failure happens in preset
Sergey Sharybin [Tue, 25 Jul 2017 09:38:33 +0000 (11:38 +0200)]
Python module test: Don't cfail the test when import failure happens in preset

22 months agoPyAPI: utility for creating register, unregister
Campbell Barton [Tue, 25 Jul 2017 07:34:34 +0000 (17:34 +1000)]
PyAPI: utility for creating register, unregister

This simplifies creation of register, unregister functions that
simply forward calls submodules.

22 months agoFix T51450: viewport render time keeps increasing after render is done.
Jeff Knox [Mon, 24 Jul 2017 23:35:33 +0000 (01:35 +0200)]
Fix T51450: viewport render time keeps increasing after render is done.

Reviewed By: brecht

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

22 months agoFix compositor Glare node with Simpler Star resulting in uneven rays.
Matheus de Sousa Faria [Mon, 24 Jul 2017 22:29:25 +0000 (00:29 +0200)]
Fix compositor Glare node with Simpler Star resulting in uneven rays.

Reviewed By: brecht

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

22 months agoCleanup: trailing space
Campbell Barton [Mon, 24 Jul 2017 15:27:43 +0000 (01:27 +1000)]
Cleanup: trailing space

22 months agoCleanup: remove scons config
Campbell Barton [Mon, 24 Jul 2017 13:59:41 +0000 (23:59 +1000)]
Cleanup: remove scons config

22 months agoRevert "ransform: fix unreported bug: geometry hidden by clipping border (alt + b...
mano-wii [Mon, 24 Jul 2017 15:08:23 +0000 (12:08 -0300)]
Revert "ransform: fix unreported bug: geometry hidden by clipping border (alt + b) is not bypassed in snap to faces"

This reverts commit 7f09b55d01c248a741e967af597b7519f095983b.

22 months agoransform: fix unreported bug: geometry hidden by clipping border (alt + b) is not...
mano-wii [Mon, 24 Jul 2017 14:13:33 +0000 (11:13 -0300)]
ransform: fix unreported bug: geometry hidden by clipping border (alt + b) is not bypassed in snap to faces

The geometry behind the farther clip_plane is not bypassed

22 months agoFix T50039: texture paint soften strength not working with float images.
Brecht Van Lommel [Mon, 24 Jul 2017 13:02:39 +0000 (15:02 +0200)]
Fix T50039: texture paint soften strength not working with float images.

22 months agoFix T51948: pen pressure not detected with some Wacom tablets.
James Fulop [Mon, 24 Jul 2017 11:32:16 +0000 (13:32 +0200)]
Fix T51948: pen pressure not detected with some Wacom tablets.

Generalizes current conditions, QT implements it the same way.

22 months agoCorrect invalid assert use
Campbell Barton [Mon, 24 Jul 2017 07:32:09 +0000 (17:32 +1000)]
Correct invalid assert use

22 months agoFix Cycles multi scatter GGX different render results with Clang and GCC.
Brecht Van Lommel [Sun, 23 Jul 2017 20:43:55 +0000 (22:43 +0200)]
Fix Cycles multi scatter GGX different render results with Clang and GCC.

The order of evaluation of function arguments is undefined, and the order
was reversed between these compilers. This was causing regressions tests
to give different results between Linux and macOS.

22 months agoFix T52152: allow zero roughness for Cycles principled BSDF, don't clamp.
Brecht Van Lommel [Sat, 22 Jul 2017 19:38:44 +0000 (21:38 +0200)]
Fix T52152: allow zero roughness for Cycles principled BSDF, don't clamp.

22 months agoFix Cycles denoising NaNs with a 1 sample renders.
Brecht Van Lommel [Fri, 21 Jul 2017 19:43:49 +0000 (21:43 +0200)]
Fix Cycles denoising NaNs with a 1 sample renders.

This was causing different render results with different compilers. We
can't do much useful with 1 sample, but better for debugging.

22 months agoFix use of uninitialized value in Cycles, probably did not cause a bug.
Brecht Van Lommel [Fri, 21 Jul 2017 02:18:11 +0000 (04:18 +0200)]
Fix use of uninitialized value in Cycles, probably did not cause a bug.

22 months agoTransform: remove unused argument
mano-wii [Fri, 21 Jul 2017 21:04:05 +0000 (18:04 -0300)]
Transform: remove unused argument

22 months agoUI: Add Open Image button to Mask Stencil Image panel
Aaron Carlisle [Fri, 21 Jul 2017 20:46:35 +0000 (16:46 -0400)]
UI: Add Open Image button to Mask Stencil Image panel

In the future we should make these two buttons on one line
However because we need `gen_context = 'PAINT_STENCIL'`
this is a little hard and we need to find a proper solution.
One might be using `context_pointer_set`

Patch by @craig_jones with edits by @blendify

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

22 months agoUI: Add Open Image button to Mask Stencil Image panel
Aaron Carlisle [Fri, 21 Jul 2017 20:46:35 +0000 (16:46 -0400)]
UI: Add Open Image button to Mask Stencil Image panel

In the future we should make these two buttons on one line
However because we need `gen_context = 'PAINT_STENCIL'`
this is a little hard and we need to find a proper solution.
One might be using `context_pointer_set`

Patch by @craig_jones with edits by @blendify

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

22 months agoAnother solution to bug T38358 and related
mano-wii [Fri, 21 Jul 2017 17:02:16 +0000 (14:02 -0300)]
Another solution to bug T38358 and related

Moving the ray_start_local to the new position does not lose as much precision as moving the ray_org_local to the corresponding position.

The problem of inaccuracy is within the functions: `bvhtree_ray_cast_data_precalc` and` fast_ray_nearest_hit`. And not directly in the values of the rays.