blender.git
3 years agoFix use of uninitialized variable in some cases, in recent bugfix.
Brecht Van Lommel [Tue, 14 Aug 2018 13:27:25 +0000 (15:27 +0200)]
Fix use of uninitialized variable in some cases, in recent bugfix.

3 years agoFix T56363: Blender crash when deleting a curve object.
Bastien Montagne [Tue, 14 Aug 2018 12:05:09 +0000 (14:05 +0200)]
Fix T56363: Blender crash when deleting a curve object.

Conversion code could leave object with inconsistent material data
compared to its new obdata.

Ideally, various conversion code would handle that properly, conserving
materials when possible, but for now at least ensure we get valid
result!

3 years agoFix object copying not ensuring validity of material arrays.
Bastien Montagne [Tue, 14 Aug 2018 11:35:51 +0000 (13:35 +0200)]
Fix object copying not ensuring validity of material arrays.

Related to T56363, this is not fixing the root of the bug, but ID
copying should always be a good occasion to ensure sanity of our data
(and error checking is always better than a crash!).

3 years agoCleanup: vpaint face select de-selected twice
Campbell Barton [Tue, 14 Aug 2018 07:37:59 +0000 (17:37 +1000)]
Cleanup: vpaint face select de-selected twice

3 years agoCorrect vpaint vertex circle select
Campbell Barton [Tue, 14 Aug 2018 07:01:31 +0000 (17:01 +1000)]
Correct vpaint vertex circle select

Would run validate when not needed.

3 years agobuild_environment: opencollada 1.6.63
Ray Molenkamp [Tue, 14 Aug 2018 02:45:38 +0000 (20:45 -0600)]
build_environment: opencollada 1.6.63

3 years agobuild_environment: sdl 2.0.8
Ray Molenkamp [Tue, 14 Aug 2018 01:19:42 +0000 (19:19 -0600)]
build_environment: sdl 2.0.8

3 years agobuild_environment: opensubdiv 3.3.3 with PR975 + TBB 2018_U5
Ray Molenkamp [Tue, 14 Aug 2018 01:08:28 +0000 (19:08 -0600)]
build_environment: opensubdiv 3.3.3 with PR975 + TBB 2018_U5

3 years agoCleanup: use boolean argument
Campbell Barton [Tue, 14 Aug 2018 00:41:28 +0000 (10:41 +1000)]
Cleanup: use boolean argument

3 years agoCleanup: use braces w/ particle loop macros
Campbell Barton [Tue, 14 Aug 2018 00:14:05 +0000 (10:14 +1000)]
Cleanup: use braces w/ particle loop macros

3 years agoCleanup: style
Campbell Barton [Tue, 14 Aug 2018 00:00:15 +0000 (10:00 +1000)]
Cleanup: style

3 years agobuild_environment: Remove lapack
Ray Molenkamp [Mon, 13 Aug 2018 20:56:49 +0000 (14:56 -0600)]
build_environment: Remove lapack

3 years agobuild_environment: iconv 1.15
Ray Molenkamp [Mon, 13 Aug 2018 20:45:27 +0000 (14:45 -0600)]
build_environment: iconv 1.15

3 years agobuild_environment: fftw 3.3.8
Ray Molenkamp [Mon, 13 Aug 2018 19:21:36 +0000 (13:21 -0600)]
build_environment: fftw 3.3.8

3 years agobuild_environment: openexr support debug build.
Ray Molenkamp [Mon, 13 Aug 2018 18:37:12 +0000 (12:37 -0600)]
build_environment: openexr support debug build.

3 years agobuild_environment: alembic 1.7.8
Ray Molenkamp [Mon, 13 Aug 2018 17:35:58 +0000 (11:35 -0600)]
build_environment: alembic 1.7.8

3 years agoFix T55745: Pick Shortest Path tool, inconsistent selection.
Bastien Montagne [Mon, 13 Aug 2018 15:40:44 +0000 (17:40 +0200)]
Fix T55745: Pick Shortest Path tool, inconsistent selection.

To get consistent, user-expected results here, we need to 'fake'
starting immediately after a 'skip' block (such that we start with a
full block of selected elements).

Same issue affected vertices and edges selection of course, did not
check the other usages of WM_operator_properties_checker_interval_test()
though.

3 years agobuild_environment: fix windows ilmbase/openexr support.
Ray Molenkamp [Mon, 13 Aug 2018 15:27:57 +0000 (09:27 -0600)]
build_environment: fix windows ilmbase/openexr support.

seems like the openexr 2.3.0 release tarball has broken cmake support, latest from git works
we'll have to revisit this once they get a new release out.

3 years agobuild_environment: ffmpeg 4.0.2
Ray Molenkamp [Mon, 13 Aug 2018 13:57:09 +0000 (07:57 -0600)]
build_environment: ffmpeg 4.0.2

with
lame 3.100
ogg 1.3.3
vorbis 1.3.6
flac 1.3.2
vpx 1.7.0
x264 20180811
xvidcore 1.3.5
faad 2.8.8

3 years agobuild_environment: update ilmbase and openexr to 2.3.0
Arto Kitula [Mon, 13 Aug 2018 13:12:30 +0000 (16:12 +0300)]
build_environment: update ilmbase and openexr to 2.3.0

3 years agoCleanup: avoid too close namings, prone to typo mistakes!
Bastien Montagne [Mon, 13 Aug 2018 11:47:06 +0000 (13:47 +0200)]
Cleanup: avoid too close namings, prone to typo mistakes!

3 years agoFix T56224: Blender2.8 will force a quit when trying to open a scene containing clip...
Bastien Montagne [Mon, 13 Aug 2018 11:43:35 +0000 (13:43 +0200)]
Fix T56224: Blender2.8 will force a quit when trying to open a scene containing clip track created by blender 2.79.

Beautiful example of typo going unoticed and firing back up in totally
unexpected place years later. Guess nobody actually duplicated a Clip
data-block before! :P

Most likely own fault, during refactor of ID copying code.

3 years agoFix T56344: Crash when used Twist for Emitter type of Particles System.
Bastien Montagne [Mon, 13 Aug 2018 09:57:18 +0000 (11:57 +0200)]
Fix T56344: Crash when used Twist for Emitter type of Particles System.

That effect is NOP with emitter particles anyway...

3 years agobuild_environment: blosc 1.14.4
Ray Molenkamp [Sat, 11 Aug 2018 21:34:11 +0000 (15:34 -0600)]
build_environment: blosc 1.14.4

3 years agobuild_environment: zlib move harvesting to zlib.cmake
Ray Molenkamp [Sat, 11 Aug 2018 21:13:39 +0000 (15:13 -0600)]
build_environment: zlib move harvesting to zlib.cmake

3 years agobuild_environment:openal 1.18.2
Ray Molenkamp [Sat, 11 Aug 2018 20:44:02 +0000 (14:44 -0600)]
build_environment:openal 1.18.2

3 years agobuild_environment: zlib 1.2.11
Ray Molenkamp [Sat, 11 Aug 2018 20:34:29 +0000 (14:34 -0600)]
build_environment: zlib 1.2.11

3 years agoFix T56293: Particle Instance Modifier Axis Buttons UX.
Bastien Montagne [Sat, 11 Aug 2018 13:35:22 +0000 (15:35 +0200)]
Fix T56293: Particle Instance Modifier Axis Buttons UX.

Those axis buttons indeed affect instances orientation even when Create
Along Path is not defined...

3 years agodeplibs: disable functions that can be found on 10.13 sdk but aren't available on...
Arto Kitula [Sat, 11 Aug 2018 10:59:13 +0000 (13:59 +0300)]
deplibs: disable functions that can be found on 10.13 sdk but aren't available on 10.9 target

3 years agodeplibs: python use pkg-config from homebrew for ssl + xz
Arto Kitula [Fri, 10 Aug 2018 22:45:46 +0000 (01:45 +0300)]
deplibs: python use pkg-config from homebrew for ssl + xz

3 years agodeplibs: get freetype tar.gz rather than zip to get unix line endings
Arto Kitula [Fri, 10 Aug 2018 20:31:27 +0000 (23:31 +0300)]
deplibs: get freetype tar.gz rather than zip to get unix line endings

3 years agodeplibs: let cmake do normal install on webp
Arto Kitula [Fri, 10 Aug 2018 18:17:45 +0000 (21:17 +0300)]
deplibs: let cmake do normal install on webp

3 years agobuild_environment: python 3.7.0 + numpy 1.15.0
Ray Molenkamp [Fri, 10 Aug 2018 16:35:42 +0000 (10:35 -0600)]
build_environment: python 3.7.0 + numpy 1.15.0

3 years agoupdate image libraries, D3005 with few mods
Arto Kitula [Fri, 10 Aug 2018 15:50:15 +0000 (18:50 +0300)]
update image libraries, D3005 with few mods

3 years agobuild_environment: remove unneeded boost patch on windows.
Ray Molenkamp [Fri, 10 Aug 2018 15:13:48 +0000 (09:13 -0600)]
build_environment: remove unneeded boost patch on windows.

3 years agobuild_environment: update freetype to 2.9.1
Ray Molenkamp [Fri, 10 Aug 2018 13:48:27 +0000 (07:48 -0600)]
build_environment: update freetype to 2.9.1

3 years agolibs: boost 1.68
Arto Kitula [Fri, 10 Aug 2018 00:08:18 +0000 (03:08 +0300)]
libs: boost 1.68

3 years agobuild_environment: move llvm/clang to ninja on windows.
Ray Molenkamp [Thu, 9 Aug 2018 18:53:39 +0000 (12:53 -0600)]
build_environment: move llvm/clang to ninja on windows.

3 years agoupdate llvm + clang to 6.0.1 and add openmp for macOS
Arto Kitula [Thu, 9 Aug 2018 14:57:12 +0000 (17:57 +0300)]
update llvm + clang to 6.0.1 and add openmp for macOS

3 years agoCycles: Append compute units for RX Vega card names
fclem [Thu, 9 Aug 2018 13:41:24 +0000 (15:41 +0200)]
Cycles: Append compute units for RX Vega card names

Makes it more clear whether compute device is Vega 56 or Vega 64.

3 years agoCycles: Report more details about OpenCL devices
fclem [Thu, 9 Aug 2018 13:31:44 +0000 (15:31 +0200)]
Cycles: Report more details about OpenCL devices

3 years agoCycles: Util, add to_string() with some helper
fclem [Thu, 9 Aug 2018 13:27:19 +0000 (15:27 +0200)]
Cycles: Util, add to_string() with some helper

Currently unused, but will allow to convert unknown
argument type to a string for reporting and such.

3 years agoMath Lib: varied size vector multiply
Andrew Hale [Wed, 8 Aug 2018 22:10:27 +0000 (08:10 +1000)]
Math Lib: varied size vector multiply

Needed for Python mathutils elementwise multiply.

3 years agoOpenJPEG: support building against both 1.5 and 2.3.
Brecht Van Lommel [Wed, 8 Aug 2018 17:48:12 +0000 (19:48 +0200)]
OpenJPEG: support building against both 1.5 and 2.3.

Patch porting to OpenJPEG 2.3 is by Campbell.

Once all platforms are upgraded we can remove the code for 1.5, and upgrade
or remove the openjpeg version from extern/. This intermediate step makes it
possible for platform maintainers to upgrade to 2.3 without breaking other
platforms.

3 years agoBuild: fix ffmpeg using system crystalhd library.
Brecht Van Lommel [Wed, 8 Aug 2018 18:26:14 +0000 (20:26 +0200)]
Build: fix ffmpeg using system crystalhd library.

3 years agoFix T55095: Undo crash w/ linked library data
Campbell Barton [Wed, 8 Aug 2018 09:16:43 +0000 (19:16 +1000)]
Fix T55095: Undo crash w/ linked library data

3 years agoGhost/X11: correct function signature
Campbell Barton [Wed, 8 Aug 2018 07:54:41 +0000 (17:54 +1000)]
Ghost/X11: correct function signature

3 years agoFix T54584: Crash w/ image undo
Campbell Barton [Wed, 8 Aug 2018 07:08:53 +0000 (17:08 +1000)]
Fix T54584: Crash w/ image undo

Using accumulation undo type (eg painting)
as the first undo step, broke code which adds an initial memfile undo.

3 years agoCleanup: correct header guard
Campbell Barton [Wed, 8 Aug 2018 03:10:53 +0000 (13:10 +1000)]
Cleanup: correct header guard

Header guard was duplicated before renaming.

3 years agoCleanup: use conforming header guard
Campbell Barton [Wed, 8 Aug 2018 01:49:51 +0000 (11:49 +1000)]
Cleanup: use conforming header guard

3 years agoCleanup: indentation
Campbell Barton [Wed, 8 Aug 2018 01:31:28 +0000 (11:31 +1000)]
Cleanup: indentation

3 years agoCleanup: use static variables
Campbell Barton [Wed, 8 Aug 2018 01:00:57 +0000 (11:00 +1000)]
Cleanup: use static variables

3 years agoPyAPI: Make skin modifier roots settable
Andrew Hale [Mon, 6 Aug 2018 09:37:49 +0000 (11:37 +0200)]
PyAPI: Make skin modifier roots settable

This make the root flag writable using the Python API, using the
generic skin vertex flag setter function.

Reviewed By: Campbell Barton

Differential Revision: http://developer.blender.org/D3583

3 years agoFix T55012: Corruption editing screen keymap
Campbell Barton [Mon, 6 Aug 2018 07:08:39 +0000 (17:08 +1000)]
Fix T55012: Corruption editing screen keymap

3 years agoFix Cycles crash rendering mix of instanced and non-instanced volumes.
Brecht Van Lommel [Sun, 5 Aug 2018 09:58:31 +0000 (11:58 +0200)]
Fix Cycles crash rendering mix of instanced and non-instanced volumes.

3 years agoFix T56222: Bevel Modifier bug (uninitialized value).
Bastien Montagne [Sat, 4 Aug 2018 11:40:38 +0000 (13:40 +0200)]
Fix T56222: Bevel Modifier bug (uninitialized value).

3 years agoRNA: make particle enum public
Campbell Barton [Thu, 2 Aug 2018 07:49:03 +0000 (17:49 +1000)]
RNA: make particle enum public

3 years agoFix T56197: Cycles OpenCL build error after recent changes.
Brecht Van Lommel [Wed, 1 Aug 2018 17:31:27 +0000 (19:31 +0200)]
Fix T56197: Cycles OpenCL build error after recent changes.

3 years agoFix T56195: Typo in BLI_array_utils.h.
Bastien Montagne [Wed, 1 Aug 2018 14:12:36 +0000 (16:12 +0200)]
Fix T56195: Typo in BLI_array_utils.h.

3 years agoCleanup: remove unused array member
Campbell Barton [Wed, 1 Aug 2018 06:32:22 +0000 (16:32 +1000)]
Cleanup: remove unused array member

3 years agoCleanup: declare vars or make static
Campbell Barton [Tue, 31 Jul 2018 22:57:31 +0000 (08:57 +1000)]
Cleanup: declare vars or make static

3 years agoDNA: remove View3D.flag3
Campbell Barton [Tue, 31 Jul 2018 22:08:59 +0000 (08:08 +1000)]
DNA: remove View3D.flag3

Having 'flag, flag2, flag3' is getting out of hand especially
when we support increasing the size of types.

Make flag2 into an int.

Note, this looses the 'show world' option,
but it's not such an important setting.

3 years agoRevert "Gitignore: Ignore diffs in all subdirs"
Aaron Carlisle [Tue, 31 Jul 2018 17:03:48 +0000 (13:03 -0400)]
Revert "Gitignore: Ignore diffs in all subdirs"

This is an issue for some file in the extern dir

This reverts commit d940a081a9f1f4106a5d2d155682695b0a6b0cb6.

3 years agoGitignore: Ignore diffs in all subdirs
Aaron Carlisle [Tue, 26 Jun 2018 17:53:54 +0000 (13:53 -0400)]
Gitignore: Ignore diffs in all subdirs

3 years agoFix cmake external library build for blosc/freetype on some systems.
Brecht Van Lommel [Tue, 31 Jul 2018 12:22:32 +0000 (14:22 +0200)]
Fix cmake external library build for blosc/freetype on some systems.

3 years agoFix building w/ FreeBSD
Campbell Barton [Tue, 31 Jul 2018 10:52:36 +0000 (20:52 +1000)]
Fix building w/ FreeBSD

fileno could be a macro which can't take a void pointer.

3 years agoFix Shape Key retime starting at frame 10
Campbell Barton [Tue, 31 Jul 2018 08:42:22 +0000 (18:42 +1000)]
Fix Shape Key retime starting at frame 10

D3571 by @alm

3 years agoBLF: replace global aa pref w/ monochrome flag
Campbell Barton [Tue, 31 Jul 2018 06:57:05 +0000 (16:57 +1000)]
BLF: replace global aa pref w/ monochrome flag

Now disabling anti-aliasing doesn't impact sequencer, render stamp etc.

3 years agoUI: use text hinting (now user preference)
Campbell Barton [Tue, 31 Jul 2018 06:05:31 +0000 (16:05 +1000)]
UI: use text hinting (now user preference)

D3201 by @ambient w/ edits not to impact fonts used for rendering
(only change display for UI text).

3 years agoUI: add check for any kind of popup
Campbell Barton [Tue, 31 Jul 2018 00:37:46 +0000 (10:37 +1000)]
UI: add check for any kind of popup

Fixes T56155 when merging into 2.8

3 years agoBuild: require C11/C++11 for all operating systems in master.
Brecht Van Lommel [Wed, 25 Jul 2018 14:59:46 +0000 (16:59 +0200)]
Build: require C11/C++11 for all operating systems in 

This is in preparation of upgrading our library dependencies, some of which
need C++11. We already use C++11 in blender2.8 and for Windows and macOS, so
this just affects Linux.

On many distributions this will not require any changes, on some
install_deps.sh will need to be run again to rebuild libraries.

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

3 years agoCycles: Fixed OpenCL build. sqr(float4) is available on CUDA and CPU, but not on...
Stefan Werner [Mon, 30 Jul 2018 13:42:00 +0000 (15:42 +0200)]
Cycles: Fixed OpenCL build. sqr(float4) is available on CUDA and CPU, but not on OpenCL.

3 years agoSequencer: move text & color into own category
Campbell Barton [Mon, 30 Jul 2018 06:46:55 +0000 (16:46 +1000)]
Sequencer: move text & color into own category

Add 'Generate' menu, these aren't effects from a user perspective.

D3546 by @rudolf.ortner

3 years agoCleanup: id-property creation
Campbell Barton [Mon, 30 Jul 2018 06:36:07 +0000 (16:36 +1000)]
Cleanup: id-property creation

D3473 by @JacquesLucke

3 years agoUse Ctrl Snap to seconds w/ play-head drag
Campbell Barton [Mon, 30 Jul 2018 06:16:44 +0000 (16:16 +1000)]
Use Ctrl Snap to seconds w/ play-head drag

D3056 by @alourenco

3 years agoCleanup: trailing space
Campbell Barton [Mon, 30 Jul 2018 05:38:39 +0000 (15:38 +1000)]
Cleanup: trailing space

3 years agoCMake: omit superfluous Up-to-date messages
Campbell Barton [Mon, 30 Jul 2018 05:20:34 +0000 (15:20 +1000)]
CMake: omit superfluous Up-to-date messages

Causes a lot of noise when building the install target.

3 years agomake.bat : fix msvc 2017 detection.
Ray Molenkamp [Sun, 29 Jul 2018 17:24:49 +0000 (11:24 -0600)]
make.bat : fix msvc 2017 detection.

when 2017 was not found, it did not properly bail out of the rest of the detection process unless verbose mode was used.

3 years agoFix T56120: bad property access (from 2.8)
Campbell Barton [Sun, 29 Jul 2018 02:09:00 +0000 (12:09 +1000)]
Fix T56120: bad property access (from 2.8)

Thanks to @brita_ for the fix.

3 years agoCycles: speed up mesh volume bounds construction.
Stefan Werner [Sat, 28 Jul 2018 16:14:05 +0000 (18:14 +0200)]
Cycles: speed up mesh volume bounds construction.

Patch by Stefan, with minor tweaks by Brecht.

3 years agoCycles: Save a few instructions in area light sampling
Lukas Stockner [Fri, 27 Jul 2018 21:30:20 +0000 (23:30 +0200)]
Cycles: Save a few instructions in area light sampling

Just basic algebra - because all vectors have the same z coordinate, a lot of terms end up cancelling out.

Not exactly a massive improvement, but it's measurable with Branched PT and a high sample count on the lamp.

Reviewers: brecht, sergey

Reviewed By: brecht

Subscribers: swerner

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

3 years agoCycles: Initial implementation of detailed statistics
Sergey Sharybin [Fri, 27 Jul 2018 13:46:13 +0000 (15:46 +0200)]
Cycles: Initial implementation of detailed statistics

Gathers information about object geometry and textures. Very basic at
this moment, but need to start somewhere.

Things which needs to be included still:

- "Runtime" information, like BVH. While it is not directly controllable
  by artists, it's still important to know.

- Device array sizes. Again, not under artists control, but is added to
  the overall size.

- Memory peak at different synchronization stages.

At this point it simply prints info to the stdout after F12 is done,
need better control over that too.

Reviewers: brecht

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

3 years agoCycles: Add utility function to query graph node size in bytes
Sergey Sharybin [Fri, 27 Jul 2018 09:40:44 +0000 (11:40 +0200)]
Cycles: Add utility function to query graph node size in bytes

3 years agoFix T56092: command line arguments after -- beginning with -h don't work.
Brecht Van Lommel [Fri, 27 Jul 2018 09:34:52 +0000 (11:34 +0200)]
Fix T56092: command line arguments after -- beginning with -h don't work.

3 years agoCycles: Cleanup, indentation
Sergey Sharybin [Fri, 27 Jul 2018 09:19:29 +0000 (11:19 +0200)]
Cycles: Cleanup, indentation

3 years agoCycles: Cleanup, indentation
Sergey Sharybin [Fri, 27 Jul 2018 09:09:10 +0000 (11:09 +0200)]
Cycles: Cleanup, indentation

3 years agoCycles: Cleanup, spelling
Sergey Sharybin [Fri, 27 Jul 2018 08:30:10 +0000 (10:30 +0200)]
Cycles: Cleanup, spelling

3 years agoCycles: Cleanup, indentation
Sergey Sharybin [Fri, 27 Jul 2018 08:28:28 +0000 (10:28 +0200)]
Cycles: Cleanup, indentation

3 years agoCycles: Cleanup, line length
Sergey Sharybin [Fri, 27 Jul 2018 08:28:06 +0000 (10:28 +0200)]
Cycles: Cleanup, line length

3 years agoCycles: Cleanup, move functions outside of class methods
Sergey Sharybin [Fri, 27 Jul 2018 08:24:03 +0000 (10:24 +0200)]
Cycles: Cleanup, move functions outside of class methods

There is no reason or justification to have helper functions as
class methods: they do not depend on anything in the class itself.

There are probably more cases like that.

3 years agoCycles: Cleanup, remove unused function
Sergey Sharybin [Fri, 27 Jul 2018 08:22:45 +0000 (10:22 +0200)]
Cycles: Cleanup, remove unused function

3 years agoCycles: Cleanup in image manager, switch statement instead of if-else
Sergey Sharybin [Fri, 27 Jul 2018 08:16:30 +0000 (10:16 +0200)]
Cycles: Cleanup in image manager, switch statement instead of if-else

Allows to catch enumerator values which are missing from being handled.

Also use `const char*`, no need to construct string just to throw it away.

3 years agoFix Vector.project crash w/ >4 length vectors
Campbell Barton [Fri, 27 Jul 2018 07:40:01 +0000 (17:40 +1000)]
Fix Vector.project crash w/ >4 length vectors

3 years agoFix T55991: Python ignores scene switch argument
Campbell Barton [Fri, 27 Jul 2018 06:49:41 +0000 (16:49 +1000)]
Fix T55991: Python ignores scene switch argument

3 years agoCorrect arguments for callback
Campbell Barton [Fri, 27 Jul 2018 06:41:18 +0000 (16:41 +1000)]
Correct arguments for callback

3 years agoFix T56074: Remove doubles creates holes
Campbell Barton [Fri, 27 Jul 2018 00:51:42 +0000 (10:51 +1000)]
Fix T56074: Remove doubles creates holes

Own regression when moving remove-doubles to kd-tree
(seems to happen only in rare cases).

3 years agoCycles: Add reflection fix to Bump and Normal Map nodes
Lukas Stockner [Thu, 26 Jul 2018 14:48:15 +0000 (16:48 +0200)]
Cycles: Add reflection fix to Bump and Normal Map nodes

While changing the shading normal is a great way to add additional detail to a model, there are some problems with it.
One of them is that at grazing angles and/or strong changes to the normal, the reflected ray can end up pointing into the actual geometry, which results in a black spot.

This patch helps avoid this by automatically reducing the strength of the bump/normal map if the reflected direction would end up too shallow or inside the geometry.

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

3 years agoFix compiling after ui cleanups
Jens Verwiebe [Thu, 26 Jul 2018 12:21:15 +0000 (14:21 +0200)]
Fix compiling after ui cleanups

3 years agoWM: replace UI draw callbacks w/ property poll
Campbell Barton [Thu, 26 Jul 2018 07:35:33 +0000 (17:35 +1000)]
WM: replace UI draw callbacks w/ property poll

Custom drawing functions were used just to control property display.
Move to poll function.

3 years agoUI: hide transform constraints when not used
Campbell Barton [Thu, 26 Jul 2018 05:44:27 +0000 (15:44 +1000)]
UI: hide transform constraints when not used