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

also print html name.

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

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

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

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

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

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

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

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

Only allow non instanced renderobjects to be baked.

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

7 years agoBMesh: shrink/fatten faces-normals in face mode
Campbell Barton [Thu, 13 Nov 2014 15:37:32 +0000 (16:37 +0100)]
BMesh: shrink/fatten faces-normals in face mode

nice for solid-modeling, gives better results for partial selections.

7 years agoWindows (MSVC2013) move to SDL2
Martijn Berger [Thu, 13 Nov 2014 15:19:57 +0000 (16:19 +0100)]
Windows (MSVC2013) move to SDL2

7 years agoFix T42571,T42572 snapping ignores linked objects
Antony Riakiotakis [Thu, 13 Nov 2014 14:41:29 +0000 (15:41 +0100)]
Fix T42571,T42572 snapping ignores linked objects

Make sure to use edit object if objects share the same data.

7 years agoCleanup: cmake
Campbell Barton [Thu, 13 Nov 2014 14:03:30 +0000 (15:03 +0100)]
Cleanup: cmake

7 years agoFix T42587 rotation curves not setting jump to cursor position
Antony Riakiotakis [Thu, 13 Nov 2014 14:03:44 +0000 (15:03 +0100)]
Fix T42587 rotation curves not setting jump to cursor position

7 years agoBooleans: Boost is no longer a dependency for Carve
Sergey Sharybin [Thu, 13 Nov 2014 12:36:33 +0000 (17:36 +0500)]
Booleans: Boost is no longer a dependency for Carve

SCons is currently broken on my laptop, so can't test if it works for sure,
so please do tests of that.

7 years agoOnly do the portable fix on linux - thanks to Martijn Berger for
Antony Riakiotakis [Thu, 13 Nov 2014 13:10:30 +0000 (14:10 +0100)]
Only do the portable fix on linux - thanks to Martijn Berger for

7 years agoCMake: manpage creation is now optional
Campbell Barton [Thu, 13 Nov 2014 13:07:34 +0000 (14:07 +0100)]
CMake: manpage creation is now optional

7 years agoCorrectly support non-portable case
Antony Riakiotakis [Thu, 13 Nov 2014 12:52:20 +0000 (13:52 +0100)]
Correctly support non-portable case

7 years agoFix cmake install of blenderplayer for linux.
Antony Riakiotakis [Thu, 13 Nov 2014 12:37:27 +0000 (13:37 +0100)]
Fix cmake install of blenderplayer for linux.

7 years agoFix T42538 Brush cleanup:
Antony Riakiotakis [Thu, 13 Nov 2014 10:35:20 +0000 (11:35 +0100)]
Fix T42538 Brush cleanup:

Some brushes really do the same thing and we have agreed not to offer
extra presets for one brush type. Removed those brushes from default
.blend. They are Polish (Flatten Contrast does the same), Brush (Does
the same as draw) and Draw from texpaint (where texdraw/draw does the

7 years agoCycles: Update some comments in volume code.
Thomas Dinges [Thu, 13 Nov 2014 10:29:54 +0000 (11:29 +0100)]
Cycles: Update some comments in volume code.

7 years agoGHOST/X11: correct USE_X11_ERROR_HANDLERS define
Campbell Barton [Thu, 13 Nov 2014 09:58:01 +0000 (10:58 +0100)]
GHOST/X11: correct USE_X11_ERROR_HANDLERS define

7 years agoFix missing UV field in Wave modifier.
Bastien Montagne [Thu, 13 Nov 2014 07:56:39 +0000 (08:56 +0100)]
Fix missing UV field in Wave modifier.

7 years agocmake: fix generation / install on OS X,
Martijn Berger [Wed, 12 Nov 2014 19:54:48 +0000 (20:54 +0100)]
cmake: fix generation / install on OS X,
N.B. needs cmake cache rebuild

7 years agoCycles: Prevent NaN and inf in area lamp sampling caused by precision issues
Sergey Sharybin [Wed, 12 Nov 2014 16:23:33 +0000 (21:23 +0500)]
Cycles: Prevent NaN and inf in area lamp sampling caused by precision issues

This doesn't have noticeable affect on the render times, but avoids possible
numerical issues.

7 years agocmake buildbot. Create the zip archive with the name as expected
Martijn Berger [Wed, 12 Nov 2014 14:23:24 +0000 (15:23 +0100)]
cmake buildbot. Create the zip archive with the name as expected

7 years agoFix bad 'COLOR' replacement in recent UI refactor.
Bastien Montagne [Wed, 12 Nov 2014 11:40:53 +0000 (12:40 +0100)]
Fix bad 'COLOR' replacement in recent UI refactor.

7 years agoFix T41066: MSVC + AVX2 kernel causes artifacts in hair render.
Thomas Dinges [Wed, 12 Nov 2014 10:51:49 +0000 (11:51 +0100)]
Fix T41066: MSVC + AVX2 kernel causes artifacts in hair render.

The issue lies in the FMA functions, so disable them on Windows for now.

7 years agoCleanup, please follow existing style when adding new flags. ;)
Thomas Dinges [Wed, 12 Nov 2014 08:43:23 +0000 (09:43 +0100)]
Cleanup, please follow existing style when adding new flags. ;)

7 years agoCleanup, typo fixes.
Thomas Dinges [Wed, 12 Nov 2014 08:14:07 +0000 (09:14 +0100)]
Cleanup, typo fixes.

7 years agoFix: T42553 Linux cmake install now also without absolute path's
Martijn Berger [Tue, 11 Nov 2014 20:44:26 +0000 (21:44 +0100)]
Fix: T42553 Linux cmake install now also without absolute path's
OS X cmake probably needs more checking.

7 years agoFix T41783: Cycles baking ignores displacement
Dalai Felinto [Tue, 11 Nov 2014 20:21:56 +0000 (18:21 -0200)]
Fix T41783: Cycles baking ignores displacement

Create unique flag for output shaders with displacement data and use it
to calculate transformed normal. Implementation suggested by Brecht Van

Reviewers: brecht

Differential Revision:

7 years agoFix T42009: Cyclic set-scenes with linked libs
Campbell Barton [Tue, 11 Nov 2014 18:39:20 +0000 (19:39 +0100)]
Fix T42009: Cyclic set-scenes with linked libs

Check linked libs on file load, Thanks to Sergey for the initial patch.

7 years agoCleanup: remove inline list-count
Campbell Barton [Tue, 11 Nov 2014 18:32:46 +0000 (19:32 +0100)]
Cleanup: remove inline list-count

7 years agoUI: Cleanup, replace enum with function
Campbell Barton [Tue, 11 Nov 2014 18:02:18 +0000 (19:02 +0100)]
UI: Cleanup, replace enum with function

7 years agoUI: cleanup odd string-width check
Campbell Barton [Tue, 11 Nov 2014 17:39:43 +0000 (18:39 +0100)]
UI: cleanup odd string-width check

7 years agoUI: Cleanup (line length)
Campbell Barton [Tue, 11 Nov 2014 15:52:03 +0000 (16:52 +0100)]
UI: Cleanup (line length)

7 years agoUI: order & comment eButType
Campbell Barton [Tue, 11 Nov 2014 15:46:03 +0000 (16:46 +0100)]
UI: order & comment eButType

7 years agoUI: remove unused emboss-table define
Campbell Barton [Tue, 11 Nov 2014 09:55:07 +0000 (10:55 +0100)]
UI: remove unused emboss-table define

7 years agoAvoid calling powf with integer exponent in more places
Sergej Reich [Tue, 11 Nov 2014 17:16:20 +0000 (18:16 +0100)]
Avoid calling powf with integer exponent in more places

Move powX functions from particle code into math library and use them.

7 years agocloth: Avoid calling powf with integer exponent
Sergej Reich [Tue, 11 Nov 2014 17:08:15 +0000 (18:08 +0100)]
cloth: Avoid calling powf with integer exponent

This is pretty slow and even shows up in profiling.

7 years agocloth: Fix overallocation for collisions
Sergej Reich [Tue, 11 Nov 2014 17:05:00 +0000 (18:05 +0100)]
cloth: Fix overallocation for collisions

This was introduced when eltopo was added, but not reverted when it was

7 years agocmake. refactor installing python things to not have absolute path's
Martijn Berger [Tue, 11 Nov 2014 14:47:22 +0000 (15:47 +0100)]
cmake. refactor installing python things to not have absolute path's
buildbot. add rudementatry cpack based packing for cmake path

7 years agobuildbot: fix: cmake generator is kind of sensitive
Martijn Berger [Tue, 11 Nov 2014 10:35:38 +0000 (11:35 +0100)]
buildbot: fix: cmake generator is kind of sensitive

7 years agoFix T41873: Different 'seed' values do not yield different noise patterns when using...
Dalai Felinto [Tue, 11 Nov 2014 12:52:58 +0000 (10:52 -0200)]
Fix T41873: Different 'seed' values do not yield different noise patterns when using cycles texture bake

As per instructions by Brecht Van Lommel.

7 years agoAdd msbuild for windows cmake buildbots
Martijn Berger [Tue, 11 Nov 2014 10:22:49 +0000 (11:22 +0100)]
Add msbuild for windows cmake buildbots

7 years agoFix T42557: Crash on delete or separate vertices with subsurf modifier + vertex parenting
Bastien Montagne [Tue, 11 Nov 2014 08:45:27 +0000 (09:45 +0100)]
Fix T42557: Crash on delete or separate vertices with subsurf modifier + vertex parenting

Only fixes the crash actually, real issue is, vparent does not handle deletion of vertices
at all currently... We'd need either some kind of static uuid for vertices, or some
mapping helpers used each time we remove or reorder verts... ugh.

Org patch by Severin (Julian Eisel).

7 years agoUI Refactor T41640
Campbell Barton [Sun, 9 Nov 2014 20:20:40 +0000 (21:20 +0100)]
UI Refactor T41640

Make the UI API more consistent and reduce confusion with some naming.

- API function calls
- enum values

some internal static functions have been left for now

7 years agoFix T39144: text-select scrolling too fast
Campbell Barton [Mon, 10 Nov 2014 19:56:17 +0000 (20:56 +0100)]
Fix T39144: text-select scrolling too fast

Use a timer to get predictable speed.

7 years agoFix T42498: Disable Renaming for Read-Only Files in File Browser
julianeisel [Mon, 10 Nov 2014 19:29:44 +0000 (20:29 +0100)]
Fix T42498: Disable Renaming for Read-Only Files in File Browser

7 years agoSequencer: undefine SEQ_BEGIN/SEQ_END (see comment)
Campbell Barton [Mon, 10 Nov 2014 18:39:20 +0000 (19:39 +0100)]
Sequencer: undefine SEQ_BEGIN/SEQ_END (see comment)

7 years agoSphinx doc script: server path has changed
Campbell Barton [Mon, 10 Nov 2014 18:27:23 +0000 (19:27 +0100)]
Sphinx doc script: server path has changed

7 years agoFix T42499: Make sure directories are not interpreted as libraries
julianeisel [Mon, 10 Nov 2014 17:51:56 +0000 (18:51 +0100)]
Fix T42499: Make sure directories are not interpreted as libraries

7 years agoCycles: Speedup for homogenous volumes in decoupled volume sampling
Sergey Sharybin [Mon, 10 Nov 2014 08:54:55 +0000 (09:54 +0100)]
Cycles: Speedup for homogenous volumes in decoupled volume sampling

The idea is to avoid memory allocation when only one segment step is to be allocated.
This gives some speedup which is difficult to measure on this trashcan from hell, but
it's about from 7% to 10% in the extreme case with single volume filling the whole of
the viewport. This seems to depends on the phase of the bug-o-meter in the studio.

On the linux boxes it's not that spectacular speedup, it's about 2% on my laptop and
about 3% on the studio desktop. This is likely because of the awesomeness of jemalloc.

7 years agoFix T4256: Connect tool hangs
Campbell Barton [Mon, 10 Nov 2014 17:38:46 +0000 (18:38 +0100)]
Fix T4256: Connect tool hangs

7 years agoFix/workaround T37073: Crash updating custom props visible in the UI
Campbell Barton [Mon, 10 Nov 2014 16:10:58 +0000 (17:10 +0100)]
Fix/workaround T37073: Crash updating custom props visible in the UI

7 years agoFix T42199: PET displays when transforming around centers
Campbell Barton [Mon, 10 Nov 2014 13:37:53 +0000 (14:37 +0100)]
Fix T42199: PET displays when transforming around centers

Old code only worked for faces.

7 years agoFix T42221: 'Shadow Width' influences tooltip size
Campbell Barton [Mon, 10 Nov 2014 12:58:03 +0000 (13:58 +0100)]
Fix T42221: 'Shadow Width' influences tooltip size

Positioning of popups was using shadow width for placement,
could give some quite odd results.

7 years agoCorrect last commit
Campbell Barton [Mon, 10 Nov 2014 12:48:27 +0000 (13:48 +0100)]
Correct last commit

7 years agoFix: Shapekey Basis not updated on editmode exit
Campbell Barton [Mon, 10 Nov 2014 12:32:39 +0000 (13:32 +0100)]
Fix: Shapekey Basis not updated on editmode exit

7 years agoFix T42486: Array modifier cap-end crash
Campbell Barton [Mon, 10 Nov 2014 08:55:25 +0000 (09:55 +0100)]
Fix T42486: Array modifier cap-end crash

Thanks to @PatB for the fix.

7 years agoCleanup: remove unused UI_SHIFT_FLIPPED (2.4x toolbox)
Campbell Barton [Sun, 9 Nov 2014 16:16:46 +0000 (17:16 +0100)]
Cleanup: remove unused UI_SHIFT_FLIPPED (2.4x toolbox)

7 years agoGLSL: specular transparency support for Blender internal materials
Dontsov Valentin [Sun, 9 Nov 2014 14:22:44 +0000 (15:22 +0100)]
GLSL: specular transparency support for Blender internal materials

Reviewed By: brecht

Differential Revision:

7 years agoFix T42540: save_pre and save_post handlers not called when saving startup.blend.
Brecht Van Lommel [Sun, 9 Nov 2014 14:11:40 +0000 (15:11 +0100)]
Fix T42540: save_pre and save_post handlers not called when saving startup.blend.

7 years agoFix T42548: crash showing subsurf modifier UI on hidden object.
Brecht Van Lommel [Sun, 9 Nov 2014 13:52:52 +0000 (14:52 +0100)]
Fix T42548: crash showing subsurf modifier UI on hidden object.

7 years agoCode cleanup: Remove unused functions from implicit.c
Sergey Sharybin [Fri, 31 Oct 2014 22:26:50 +0000 (03:26 +0500)]
Code cleanup: Remove unused functions from implicit.c

Most of the unused functions were removed. Some of them were if-defed
because they are referenced from the code which was already if-defed.

Reviewers: lukastoenne, campbellbarton

Differential Revision:

7 years agoCmake cleanup
Martijn Berger [Sat, 8 Nov 2014 20:17:04 +0000 (21:17 +0100)]
Cmake cleanup
Move compiler warnings for msvc to common compilerwarnings.

7 years agoPut latest buildbot config files to git
Sergey Sharybin [Sat, 8 Nov 2014 19:11:50 +0000 (00:11 +0500)]
Put latest buildbot config files to git

7 years agoCycles: Remove dead branch for Distant lamps, ls->t is always FLT_MAX here.
Thomas Dinges [Sat, 8 Nov 2014 15:47:56 +0000 (16:47 +0100)]
Cycles: Remove dead branch for Distant lamps, ls->t is always FLT_MAX here.

7 years agoReadme for Blender 2.73.
Thomas Dinges [Sat, 8 Nov 2014 15:47:05 +0000 (16:47 +0100)]
Readme for Blender 2.73.

7 years agoAdd safe_normalize to cycles, avoid checking length first
Campbell Barton [Sat, 8 Nov 2014 12:35:21 +0000 (13:35 +0100)]
Add safe_normalize to cycles, avoid checking length first

This won't give any big speedup,
just avoids redundant sqrtf and may be useful in future.

Differential Revision:

7 years agoCleanup: cycles whitespace
Campbell Barton [Sat, 8 Nov 2014 12:28:40 +0000 (13:28 +0100)]
Cleanup: cycles whitespace

7 years agocmake buildfiles Cleanup / Refactor, no functional changes.
Martijn Berger [Sat, 8 Nov 2014 10:32:32 +0000 (11:32 +0100)]
cmake buildfiles Cleanup / Refactor, no functional changes.
Move away from using hardcoded ${target} when calling install() in cmake

7 years agoFix T42531: Setting 'Undo' steps to '1' causes weirdness.
Bastien Montagne [Fri, 7 Nov 2014 09:24:11 +0000 (10:24 +0100)]
Fix T42531: Setting 'Undo' steps to '1' causes weirdness.

Do not allow '1' value here, it's useless.

Thanks to Campbell for suggested solution here!

7 years agoCycles: Tweak to the expf() speed workaround
Sergey Sharybin [Fri, 7 Nov 2014 08:35:45 +0000 (13:35 +0500)]
Cycles: Tweak to the expf() speed workaround

Add compile-time check for particular glibc version which fixed the issue.
This makes it so own-compiled blender is the fastest in the world, and the
only issue remains what should we do for release builds.

After some discussion with Campbell we decided to keep it as is for now
because slowdown is not that much noticeable. We'll disable this workaround
for release builds when all the majority of the distros will switch to the
new version of glibc.

7 years agoFix assert failure in GPU codegen
Sergey Sharybin [Fri, 7 Nov 2014 08:17:26 +0000 (13:17 +0500)]
Fix assert failure in GPU codegen

Even though GLSL allows to have polymorphic functions our codegen
is not aware of this at all.

Let's rename the functions for now, but in the future would be handy
to make codegen aware of the polymorphic functions.

7 years agoFix T42208 color pickers are coupled.
Antony Riakiotakis [Thu, 6 Nov 2014 19:19:21 +0000 (20:19 +0100)]
Fix T42208 color pickers are coupled.

Decouple color picker hsv data from the whole block. Basically, each
color picker now takes care of creating its own color picker role. For
this bug report it can be seen that probably HSV is not the best space
for gamma/lift/gain workflow because it is bounded at 1.0 but this is a
separate issue.

7 years agobetter fix for fix T42525 (tm)
Antony Riakiotakis [Thu, 6 Nov 2014 16:55:55 +0000 (17:55 +0100)]
better fix for fix T42525 (tm)

Looks like material node trees are stored directly in the material. The
reason I thought this was fixed was because my test file didn't connect
the lamp data node in the rest of the tree.

Thanks to Campbell for catching this :)

7 years agoFix T42497: Enlarge rename text field in File Browser
julianeisel [Thu, 6 Nov 2014 16:45:32 +0000 (17:45 +0100)]
Fix T42497: Enlarge rename text field in File Browser

To ensure there's space for more than a few characters in the rename text fields of the File Browser, we now use a width relative to the column width (for all display modes).

Includes some edits from @campbellbarton - thanks for this!

7 years agoFix T42525 crash when deleting lamp attached to Lamp Data material node
Antony Riakiotakis [Thu, 6 Nov 2014 15:38:31 +0000 (16:38 +0100)]
Fix T42525 crash when deleting lamp attached to Lamp Data material node
in material shading mode.

7 years agoEditmesh: select more/less can now step over adjacent faces
Campbell Barton [Thu, 6 Nov 2014 14:17:16 +0000 (15:17 +0100)]
Editmesh: select more/less can now step over adjacent faces

This keeps a square shaped selection when using grid topology.

7 years agoFix T42492, Shading error with fresnel weight node.
Antony Riakiotakis [Thu, 6 Nov 2014 14:03:34 +0000 (15:03 +0100)]
Fix T42492, Shading error with fresnel weight node.

Orthographic case needs different handling.

7 years agoRevert "Metastrips: disallow making a metastrip with only one strip present."
Antony Riakiotakis [Thu, 6 Nov 2014 13:06:24 +0000 (14:06 +0100)]
Revert "Metastrips: disallow making a metastrip with only one strip present."

This reverts commit a1578f08dc442b0c64f05a1ab18ef0fd90a9f6e4.

Looks like some workflows benefit from being able to do this

7 years agoSlight corrections to the string formatting of autosave, thanks to
Antony Riakiotakis [Thu, 6 Nov 2014 12:08:43 +0000 (13:08 +0100)]
Slight corrections to the string formatting of autosave, thanks to
Campbell for the help!

7 years agoGooseberry request, append the file name to autosaves as well as the pid
Antony Riakiotakis [Thu, 6 Nov 2014 11:42:47 +0000 (12:42 +0100)]
Gooseberry request, append the file name to autosaves as well as the pid

7 years agoCorrect recent refactor (use generic callback)
Campbell Barton [Thu, 6 Nov 2014 10:47:08 +0000 (11:47 +0100)]
Correct recent refactor (use generic callback)

7 years agoCycles: Add "Max Bounce" control for lamps
Thomas Dinges [Wed, 5 Nov 2014 21:48:45 +0000 (22:48 +0100)]
Cycles: Add "Max Bounce" control for lamps

With this setting, we can limit the influence of a lamp to a certain amount of bounces.
0 = Only direct light contribution
1 = 1 light bounce

Differential revision:

You can find an example render in the release logs:

7 years agoFixed warning about redefining the __SSE__ macro in VS2013
Sybren A. Stüvel [Wed, 5 Nov 2014 16:09:27 +0000 (17:09 +0100)]
Fixed warning about redefining the __SSE__ macro in VS2013

7 years agoFix T42255: "Copy Constraints" operator has to tag the affected object
Lukas Tönne [Wed, 5 Nov 2014 13:51:02 +0000 (14:51 +0100)]
Fix T42255: "Copy Constraints" operator has to tag the affected object
and pose for depsgraph.

Otherwise the update order can be incorrect until the next sort is

7 years agoEditmesh: report a warning when fill fails
Campbell Barton [Wed, 5 Nov 2014 13:19:14 +0000 (14:19 +0100)]
Editmesh: report a warning when fill fails

also prevent assert with zero normal

7 years agoDebug: print output on --debug-fpe
Campbell Barton [Wed, 5 Nov 2014 11:27:38 +0000 (12:27 +0100)]
Debug: print output on --debug-fpe

in practice often we want to breakpoint here (instead of flooding output)
but its confusing the option does nothing in release builds.

Devs can comment out locally.

7 years agoSimplify node frame detach operators, based on T34670 by @julien.
Lukas Tönne [Wed, 5 Nov 2014 10:35:48 +0000 (11:35 +0100)]
Simplify node frame detach operators, based on T34670 by @julien.

* The `NODE_OT_parent_clear` operator has been removed. This was a very
simplistic operator that detached every selected node, which is not very
useful in case of hierarchical frames. The `NODE_OT_detach` operator
only detaches the top parent nodes in the selection, keeping the
hierarchy of selected nodes intact.

* The `ALT+P` shortcut has been reassigned to the `NODE_OT_detach`
operator which replaces the previous `NODE_OT_clear` mapping with
similar behavior (also gives a menu entry shortcut now).

* Shortcuts for `NODE_OT_detach_translate_attach` have been removed, due
to crowded and messy keymap and unintuitive shortcut `ALT+F`. This macro
operator is still registered, in case hardcore users want to make their
own keymaps, but not mapped by default. Node keymaps may need some
redesign in the future for these things.

7 years agoCode cleanup: Replace magic number with verbose name for math node operations
Sergey Sharybin [Wed, 5 Nov 2014 10:27:52 +0000 (11:27 +0100)]
Code cleanup: Replace magic number with verbose name for math node operations

Should be no functional changes, just much less cryptic code.

7 years agoCycles: Don't check shader for volume when checking if camera is inside volume
Sergey Sharybin [Tue, 4 Nov 2014 18:57:15 +0000 (19:57 +0100)]
Cycles: Don't check shader for volume when checking if camera is inside volume

Intersection code already ignores objects without volume closure so checking it
afterwards is not needed.

7 years agoFix T42411: Camera inside volume + particle dupli (object/group) doesn't work
Sergey Sharybin [Tue, 4 Nov 2014 18:55:05 +0000 (19:55 +0100)]
Fix T42411: Camera inside volume + particle dupli (object/group) doesn't work

The issue was caused by missing current object instance initialization after
object was ignored for instance push.

7 years agoBMesh dissolve: enable use_verts for edge dissolve (by default)
Campbell Barton [Tue, 4 Nov 2014 16:05:23 +0000 (17:05 +0100)]
BMesh dissolve: enable use_verts for edge dissolve (by default)

7 years agoFix T42408: FSAA affects Cycles Image Compositing
Sergey Sharybin [Tue, 4 Nov 2014 15:41:12 +0000 (20:41 +0500)]
Fix T42408: FSAA affects Cycles Image Compositing

Use FSAA settings only if current render engine is BI or GE/

That's for until we'll support FSAA in Cycles or other render engines.

7 years agoFix T42289: 'Make single user' not registered in history
Sergey Sharybin [Tue, 4 Nov 2014 13:52:38 +0000 (18:52 +0500)]
Fix T42289: 'Make single user' not registered in history

7 years agoFix-for-fix ik-spline clamp existing files too
Campbell Barton [Tue, 4 Nov 2014 13:03:58 +0000 (14:03 +0100)]
Fix-for-fix ik-spline clamp existing files too

7 years agoFix T42445: Clamp flag has no effect on result value in Math and MixRGB shader nodes...
Sergey Sharybin [Tue, 4 Nov 2014 11:50:29 +0000 (16:50 +0500)]
Fix T42445: Clamp flag has no effect on result value in Math and MixRGB shader nodes (Blender Render)

Quite striaghtforward implementation, with the only weird thing that for some reason
my video driver wasn't happy with calling the function "clamp" giving some weirdo
shader compilation error messages.

Called the GPU function clamp_val which can handle float and vec3.

7 years agoAdd utility macros to clamp all elements of 2,3,4 component vectors
Sergey Sharybin [Tue, 4 Nov 2014 11:31:42 +0000 (16:31 +0500)]
Add utility macros to clamp all elements of 2,3,4 component vectors