blender.git
3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 25 Jul 2017 10:53:10 +0000 (20:53 +1000)]
Merge branch 'master' into blender2.8

3 years 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.

3 years agoManipulator: break after an event is handled
Campbell Barton [Tue, 25 Jul 2017 10:17:54 +0000 (20:17 +1000)]
Manipulator: break after an event is handled

Now works the same as other event handling functions.

3 years agoFix PyManipulators having keymaps registered twice
Campbell Barton [Tue, 25 Jul 2017 09:59:38 +0000 (19:59 +1000)]
Fix PyManipulators having keymaps registered twice

Manipulators which are registered before UI initialized would have their
keymaps initalized twice (duplicate keymap items).

3 years 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

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 25 Jul 2017 07:36:49 +0000 (17:36 +1000)]
Merge branch 'master' into blender2.8

3 years 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.

3 years 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

3 years 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

3 years agoFix crahs when doing preview from a scene withotu world
Sergey Sharybin [Mon, 24 Jul 2017 15:42:55 +0000 (17:42 +0200)]
Fix crahs when doing preview from a scene withotu world

3 years agoDepsgraph: Avoid assert failure in some harmless cases
Sergey Sharybin [Mon, 24 Jul 2017 15:41:29 +0000 (17:41 +0200)]
Depsgraph: Avoid assert failure in some harmless cases

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

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

3 years 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.

3 years agoDepsgraph: Synchronize collection visibility after copy
Sergey Sharybin [Mon, 24 Jul 2017 15:03:53 +0000 (17:03 +0200)]
Depsgraph: Synchronize collection visibility after copy

BKE_scene_copy explicitly ignores visibility of "source" collections make all
collections visible. This is also tested by regression tests.

While it seems more logical to simply preserve all possible visibility flags
and overrides, don't feel like submitting to a behavior-changes without talking
to author of those guards first.

This commit fixes cycles material preview.

3 years agoFix compilation error of alembic test after recent eval_ctx changes
Sergey Sharybin [Mon, 24 Jul 2017 14:50:47 +0000 (16:50 +0200)]
Fix compilation error of alembic test after recent eval_ctx changes

3 years agoEevee: Silence printfs.
Clément Foucault [Mon, 24 Jul 2017 14:36:32 +0000 (16:36 +0200)]
Eevee: Silence printfs.

3 years agoDepsgraph: Fix typo in comment
Sergey Sharybin [Mon, 24 Jul 2017 14:32:07 +0000 (16:32 +0200)]
Depsgraph: Fix typo in comment

3 years agoDepsgraph: Fix crash when trying to create full copy of scene
Sergey Sharybin [Mon, 24 Jul 2017 14:10:59 +0000 (16:10 +0200)]
Depsgraph: Fix crash when trying to create full copy of scene

3 years agoDepsgraph: Textures and images are actually covered by depsgraph
Sergey Sharybin [Mon, 24 Jul 2017 13:54:57 +0000 (15:54 +0200)]
Depsgraph: Textures and images are actually covered by depsgraph

Might be missing relation links tho.

3 years agoDepsgraph: Avoid creating ID nodes for objects which are coming from collections...
Sergey Sharybin [Mon, 24 Jul 2017 13:39:31 +0000 (15:39 +0200)]
Depsgraph: Avoid creating ID nodes for objects which are coming from collections and not layers

If object is only listed in collection but not added to any of layers we shouldn't create
placeholder for it, because otherwise we'll leave lots of placeholder ID nodes.

Question: can we make this exception to be more reliable?

3 years agoDepsgraph: Be consistent about id type variable name
Sergey Sharybin [Mon, 24 Jul 2017 13:33:35 +0000 (15:33 +0200)]
Depsgraph: Be consistent about id type variable name

3 years agoDepsgraph: Cleanup, use utility function to clear lists
Sergey Sharybin [Mon, 24 Jul 2017 13:28:27 +0000 (15:28 +0200)]
Depsgraph: Cleanup, use utility function to clear lists

3 years agoDepsgraph: Ignore palettes from copy-on-write routines
Sergey Sharybin [Mon, 24 Jul 2017 13:12:36 +0000 (15:12 +0200)]
Depsgraph: Ignore palettes from copy-on-write routines

They are not covered by dependency graph.

3 years agoEevee: Fix crash when saving file with motion blur.
Clément Foucault [Mon, 24 Jul 2017 14:21:43 +0000 (16:21 +0200)]
Eevee: Fix crash when saving file with motion blur.

3 years 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

3 years agoEevee: Fix double buffer issue.
Clément Foucault [Mon, 24 Jul 2017 13:55:21 +0000 (15:55 +0200)]
Eevee: Fix double buffer issue.

3 years agoEevee: SSR: Refactor multiple rays. Plus other changes...
Clément Foucault [Mon, 24 Jul 2017 09:18:11 +0000 (11:18 +0200)]
Eevee: SSR: Refactor multiple rays. Plus other changes...

-Allow a maximum of 4 rays per trace pixel.
-Removes parameter Normalize: use normalization all the time now.
-Add firefly clamp slider.

3 years agoEevee: Make MinmaxZ compatible with textureArray
Clément Foucault [Sun, 23 Jul 2017 18:33:29 +0000 (20:33 +0200)]
Eevee: Make MinmaxZ compatible with textureArray

3 years agoEevee: Planar Reflection: Remove distance approximation.
Clément Foucault [Sun, 23 Jul 2017 12:03:27 +0000 (14:03 +0200)]
Eevee: Planar Reflection: Remove distance approximation.

This commit separate the depth texture into another texture array.
This remove the need to output radial depth into alpha.
Unfortunatly it's difficult to recover position from the non linear depth buffer when applying reflection without adding a bunch of stuff.
This is in preparation of SSR planar reflections.

3 years agoEevee: SSR: Add two hit option.
Clément Foucault [Sat, 22 Jul 2017 22:03:45 +0000 (00:03 +0200)]
Eevee: SSR: Add two hit option.

This option add another raytrace per pixel, clearing some noise.
But multiplying the raytrace cost.

3 years agoEevee: SSR: Fix Opengl Render.
Clément Foucault [Sat, 22 Jul 2017 18:36:34 +0000 (20:36 +0200)]
Eevee: SSR: Fix Opengl Render.

Add a constant number of 4 drawing loop to accumulate 4 "bounce" of light in SSRs.

3 years agoEevee: SSR: Fixed problem with un-initialized texture.
Clément Foucault [Sat, 22 Jul 2017 14:22:01 +0000 (16:22 +0200)]
Eevee: SSR: Fixed problem with un-initialized texture.

Also add another debug buffer and cleanup in effect_ssr_frag.glsl

3 years agoEevee: SSR: Small fixes
Clément Foucault [Mon, 24 Jul 2017 13:36:22 +0000 (15:36 +0200)]
Eevee: SSR: Small fixes

- Encode normals for other opaque bsdf so they are not rejected by the normal facing test.
- Early out non reflective surfaces.
- Add small offset to raytrace to avoid self intersection.
- Fix fallback probes not appearing.

3 years agoEevee: SSR: Add Weight Normalization option.
Clément Foucault [Sat, 22 Jul 2017 12:41:34 +0000 (14:41 +0200)]
Eevee: SSR: Add Weight Normalization option.

3 years agoEevee: SSR: Add View Facing fadeout.
Clément Foucault [Sat, 22 Jul 2017 12:39:35 +0000 (14:39 +0200)]
Eevee: SSR: Add View Facing fadeout.

Also make hit boolean depends on hit coord not on pdf.

3 years agoEevee: SSR: Add fullscreen raytrace option and Screen border factor.
Clément Foucault [Fri, 21 Jul 2017 23:13:33 +0000 (01:13 +0200)]
Eevee: SSR: Add fullscreen raytrace option and Screen border factor.

3 years agoEevee: SSR: Use noise to dither the stride banding.
Clément Foucault [Fri, 21 Jul 2017 22:22:39 +0000 (00:22 +0200)]
Eevee: SSR: Use noise to dither the stride banding.

3 years agoEevee: SSR: Add stride and thickness parameters.
Clément Foucault [Fri, 21 Jul 2017 21:48:48 +0000 (23:48 +0200)]
Eevee: SSR: Add stride and thickness parameters.

Also polished the raytracing algorithm.

3 years agoEevee: SSR: Add fullscreen raytrace.
Clément Foucault [Fri, 21 Jul 2017 13:06:29 +0000 (15:06 +0200)]
Eevee: SSR: Add fullscreen raytrace.

3 years agoEevee: HiZ buffer: Split into two 24bit depth buffer
Clément Foucault [Fri, 21 Jul 2017 12:27:16 +0000 (14:27 +0200)]
Eevee: HiZ buffer: Split into two 24bit depth buffer

This way we don't have float precision issue we had before and we save some bandwidth.

3 years agoEevee: SSR: Add firefly filter and refine noise reduction.
Clément Foucault [Thu, 20 Jul 2017 22:24:16 +0000 (00:24 +0200)]
Eevee: SSR: Add firefly filter and refine noise reduction.

Push to 9 resolve sample.
Add an normalization as an option since it gives harsh limits.

3 years agoEevee: Codestyle.
Clément Foucault [Thu, 20 Jul 2017 22:20:05 +0000 (00:20 +0200)]
Eevee: Codestyle.

3 years agoEevee: SSR: Do the SSR pass only for probes if there is no valid double buffer.
Clément Foucault [Thu, 20 Jul 2017 22:19:23 +0000 (00:19 +0200)]
Eevee: SSR: Do the SSR pass only for probes if there is no valid double buffer.

This prevent black reflection when initializing SSR.

3 years agoEevee: SSR: Add mipmap filtering and bias to reduce noise.
Clément Foucault [Thu, 20 Jul 2017 16:40:23 +0000 (18:40 +0200)]
Eevee: SSR: Add mipmap filtering and bias to reduce noise.

Also fix the roughness factors.

3 years agoEevee: Fix glossy node roughness.
Clément Foucault [Thu, 20 Jul 2017 14:54:57 +0000 (16:54 +0200)]
Eevee: Fix glossy node roughness.

3 years agoEevee: SSR: Don't block the ray if tracing behind object.
Clément Foucault [Wed, 19 Jul 2017 21:40:14 +0000 (23:40 +0200)]
Eevee: SSR: Don't block the ray if tracing behind object.

This requires to check for backface after a hit.

3 years agoEevee: SSR: Add per pixel resolve of multiple rays.
Clément Foucault [Wed, 19 Jul 2017 17:21:16 +0000 (19:21 +0200)]
Eevee: SSR: Add per pixel resolve of multiple rays.

3 years agoEevee: SSR: Add roughness random rays.
Clément Foucault [Wed, 19 Jul 2017 13:39:37 +0000 (15:39 +0200)]
Eevee: SSR: Add roughness random rays.

3 years agoEevee: SSR: Add double buffer so we can read previous frame color.
Clément Foucault [Wed, 19 Jul 2017 12:22:03 +0000 (14:22 +0200)]
Eevee: SSR: Add double buffer so we can read previous frame color.

Also add simple reprojection and screen fade to the SSR resolve pass.

3 years agoEevee: SSR: Make raymarch step bigger.
Clément Foucault [Wed, 19 Jul 2017 12:19:03 +0000 (14:19 +0200)]
Eevee: SSR: Make raymarch step bigger.

3 years agoEevee: Fix Shader compilation.
Clément Foucault [Tue, 18 Jul 2017 14:48:45 +0000 (16:48 +0200)]
Eevee: Fix Shader compilation.

3 years agoEevee: SSR: Add simple raytracing.
Clément Foucault [Tue, 18 Jul 2017 14:48:24 +0000 (16:48 +0200)]
Eevee: SSR: Add simple raytracing.

Still imprecise.

3 years agoEevee: Fix clip/hashed alpha prepass/shadow crash.
Clément Foucault [Mon, 17 Jul 2017 13:43:24 +0000 (15:43 +0200)]
Eevee: Fix clip/hashed alpha prepass/shadow crash.

3 years agoEevee: SSR: Encode Normal in buffer and add cubemap fallback.
Clément Foucault [Mon, 17 Jul 2017 11:39:03 +0000 (13:39 +0200)]
Eevee: SSR: Encode Normal in buffer and add cubemap fallback.

Normals can point away from the camera so we cannot just put XY in the buffer and reconstruct Z later as we would not know the sign of Z.

3 years agoEevee: SSR: Output ssr datas to buffers.
Clément Foucault [Sun, 16 Jul 2017 21:49:25 +0000 (23:49 +0200)]
Eevee: SSR: Output ssr datas to buffers.

Output in 2 buffers Normals, Specular Color and roughness.
This way we can raytrace in a defered fashion and blend the exact contribution of the specular lobe on top of the opaque pass.

3 years agoEevee: Ssr: Add ssr id to glossy nodes.
Clément Foucault [Sat, 15 Jul 2017 14:09:44 +0000 (16:09 +0200)]
Eevee: Ssr: Add ssr id to glossy nodes.

An id is given to each glossy node in order to determine which specular lobe is using ssr.

3 years 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.

3 years agoInitialize scene layer for evaluation context used by preview renderer
Sergey Sharybin [Mon, 24 Jul 2017 13:00:44 +0000 (15:00 +0200)]
Initialize scene layer for evaluation context used by preview renderer

Ideally need to clean and sane and impossible-to-break way of making sure
evaluation context is fully initialized, but that would need some thoughts
and experimentation.

3 years agoRender preview: Always make sure all ID datablocks references by objects are in bmain
Sergey Sharybin [Mon, 24 Jul 2017 12:50:26 +0000 (14:50 +0200)]
Render preview: Always make sure all ID datablocks references by objects are in bmain

Otherwise we'll have confused dependency graph builder, which wouldn't be able to
build proper graph.

Didn't find a way to avoid world copy here, we can probably escape with some shallow
copy here, but that will currently complicate code a lot.

Ideas to consider here:

- Use shallow copy of existing world after new ID management API is in place.

  Downside would be thread safety, kind of nice to have everything local.

- Switch depsgraph away from ID_TAG and do hash lookup or so.

  This will slow down depsgraph builder, but will make code more reliable.

3 years 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.

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

3 years agoManipulator: view-selected support
Campbell Barton [Mon, 24 Jul 2017 05:28:14 +0000 (15:28 +1000)]
Manipulator: view-selected support

Only applies to selected manipulators
(currently not used for regular manipulators).

3 years agoManipulator: Expose Context.manipulator_group
Campbell Barton [Sun, 23 Jul 2017 19:19:13 +0000 (05:19 +1000)]
Manipulator: Expose Context.manipulator_group

Needed for operators run by the manipulator keymap
so they can access their selected manipulators.

3 years agoManipulator: handle keymaps for selected items
Campbell Barton [Sun, 23 Jul 2017 17:28:57 +0000 (03:28 +1000)]
Manipulator: handle keymaps for selected items

Was only handling keymap items when the cursor
was hovering over a manipulator.

3 years 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.

3 years agoManipulator: setup_keymap callback
Campbell Barton [Sun, 23 Jul 2017 17:27:57 +0000 (03:27 +1000)]
Manipulator: setup_keymap callback

Also remove manipulator_group argument, the info's in the class.

3 years 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.

3 years 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.

3 years 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.

3 years agoManipulator: use select keymap when enabled
Campbell Barton [Sat, 22 Jul 2017 16:43:55 +0000 (02:43 +1000)]
Manipulator: use select keymap when enabled

3 years agoFix error in previous merge
Aaron Carlisle [Fri, 21 Jul 2017 22:32:27 +0000 (18:32 -0400)]
Fix error in previous merge

3 years agoMerge branch 'master' into blender2.8
Aaron Carlisle [Fri, 21 Jul 2017 22:28:32 +0000 (18:28 -0400)]
Merge branch 'master' into blender2.8

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

3 years 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

3 years 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

3 years agoMerge branch 'master' into blender2.8
mano-wii [Fri, 21 Jul 2017 17:20:24 +0000 (14:20 -0300)]
Merge branch 'master' into blender2.8

# Conflicts:
# source/blender/editors/transform/transform_snap_object.c

3 years 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.

3 years agoFix manipulator handles getting added each refresh
Campbell Barton [Fri, 21 Jul 2017 15:25:45 +0000 (01:25 +1000)]
Fix manipulator handles getting added each refresh

The same manipulator map handler would accumulate,
slowing down interactions.

3 years agoFix compilation error with Collada enabled
Sergey Sharybin [Fri, 21 Jul 2017 15:44:11 +0000 (17:44 +0200)]
Fix compilation error with Collada enabled

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 21 Jul 2017 14:08:31 +0000 (16:08 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix strict compiler warning in BGE when linking directly to SDL
Sergey Sharybin [Fri, 21 Jul 2017 14:07:59 +0000 (16:07 +0200)]
Fix strict compiler warning in BGE when linking directly to SDL

3 years agoFix function declaration of some modifiers
Sergey Sharybin [Fri, 21 Jul 2017 13:54:42 +0000 (15:54 +0200)]
Fix function declaration of some modifiers

Those functions did not use evaluation context.

Also fixed lots of unused variables warnings caused by commented out code which
needs to be ported away from DerivedMesh and to evaluation context.

3 years agoDepsgraph: Cleanup, remove unused function argument
Sergey Sharybin [Fri, 21 Jul 2017 13:37:51 +0000 (15:37 +0200)]
Depsgraph: Cleanup, remove unused function argument

3 years agoFix compilation error with smoke and rigid body disabled
Sergey Sharybin [Fri, 21 Jul 2017 13:36:59 +0000 (15:36 +0200)]
Fix compilation error with smoke and rigid body disabled

3 years agoPass EvaluationContext argument everywhere
Luca Rood [Fri, 21 Jul 2017 09:53:13 +0000 (11:53 +0200)]
Pass EvaluationContext argument everywhere

Note that some little parts of code have been dissabled because eval_ctx
was not available there. This should be resolved once DerivedMesh is
replaced.

3 years agoDepsgraph: Fix missing material update when changing links in node tree
Sergey Sharybin [Fri, 21 Jul 2017 12:20:30 +0000 (14:20 +0200)]
Depsgraph: Fix missing material update when changing links in node tree

3 years agoFix T51724: Blender 2.80 EEVEE, Cycles, Clay Black Wall Graphical Glitch
Sergey Sharybin [Fri, 21 Jul 2017 10:08:25 +0000 (12:08 +0200)]
Fix T51724: Blender 2.80 EEVEE, Cycles, Clay Black Wall Graphical Glitch

3 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 21 Jul 2017 09:16:37 +0000 (11:16 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix T52134: New depsgraph crashes when evaluating several psys on from object
Sergey Sharybin [Fri, 21 Jul 2017 09:12:34 +0000 (11:12 +0200)]
Fix T52134: New depsgraph crashes when evaluating several psys on from object

3 years agoFix strict compiler error after recent UI changes
Sergey Sharybin [Fri, 21 Jul 2017 08:52:36 +0000 (10:52 +0200)]
Fix strict compiler error after recent UI changes

3 years agoFix T52136: Blender segfault (stack overflow most certainly) when converting to mesh.
Bastien Montagne [Fri, 21 Jul 2017 08:24:20 +0000 (10:24 +0200)]
Fix T52136: Blender segfault (stack overflow most certainly) when converting to mesh.

Stupid mistake in own recent refactor.

3 years agoUI/floats: Reduce our UI_PRECISION_FLOAT_MAX by one to avoid most rounding issues.
Bastien Montagne [Fri, 21 Jul 2017 08:10:36 +0000 (10:10 +0200)]
UI/floats: Reduce our UI_PRECISION_FLOAT_MAX by one to avoid most rounding issues.

The way we use it, UI_PRECISION_FLOAT_MAX is actually + 1 to get total
number of digits, and float only has 7 meaningful digits, so that define
shall be at 6.

3 years agoSet face-map to active when selecting
Campbell Barton [Fri, 21 Jul 2017 05:50:58 +0000 (15:50 +1000)]
Set face-map to active when selecting

It was annoying have to use select operator to know which facemap
applies to the active face. This behavior follows materials.

3 years agoFix a few harmless maybe uninitialized warnings with GCC 5.4.
Brecht Van Lommel [Thu, 20 Jul 2017 21:51:15 +0000 (23:51 +0200)]
Fix a few harmless maybe uninitialized warnings with GCC 5.4.

GCC seems to detect uninitialized into function calls now, but then isn't
always smart enough to see that it is actually initialized. Disabling this
warning entirely seems a bit too much, so initialize a bit more now.

3 years agoFix T46560: 2D paint smear and soften brushes not working with alpha.
Brecht Van Lommel [Thu, 20 Jul 2017 22:16:59 +0000 (00:16 +0200)]
Fix T46560: 2D paint smear and soften brushes not working with alpha.

Interpolate rather than do alpha over mix, matching projection paint.

3 years agoFix T52135: Cycles should not keep generated/packed images in memory after render.
Brecht Van Lommel [Thu, 20 Jul 2017 20:31:46 +0000 (22:31 +0200)]
Fix T52135: Cycles should not keep generated/packed images in memory after render.

3 years agoFix potential memory leak in Cycles loading of packed/generated images.
Brecht Van Lommel [Thu, 20 Jul 2017 20:31:02 +0000 (22:31 +0200)]
Fix potential memory leak in Cycles loading of packed/generated images.

3 years agoDepsgraph: Fix crash when updating materials with copy on write enabled
Sergey Sharybin [Thu, 20 Jul 2017 15:45:00 +0000 (17:45 +0200)]
Depsgraph: Fix crash when updating materials with copy on write enabled

The code was freeing GPU materials from non-main thread.

3 years agoFix T51925: Eevee: Animated Eevee values slowdown
Sergey Sharybin [Thu, 20 Jul 2017 14:13:08 +0000 (16:13 +0200)]
Fix T51925: Eevee: Animated Eevee values slowdown

Move material update from RNA callback to dependency graph.