blender.git
11 months agoGizmo: fix incorrect dial clip scaling
Campbell Barton [Fri, 21 Sep 2018 00:29:29 +0000 (10:29 +1000)]
Gizmo: fix incorrect dial clip scaling

Failed with obvious error when the dials scale wasn't 1.0

11 months agoUpdated gpu.types.GPUOffscreen.py example file
Dalai Felinto [Thu, 20 Sep 2018 22:06:51 +0000 (22:06 +0000)]
Updated gpu.types.GPUOffscreen.py example file

The image I get is a bit too dark, which is the same I get in the viewport
itself when there is no Display Device. So I believe for cases like this
we need to have color management on top of the buffer.

Also, on EEVEE it looks like it needs to clear some extra buffers. You can see
that, by rotating the camera view around.

That said, this is the first step to bring back fun addons
that use external offscreen buffers.

Note: When using gpu offscreen with POST_VIEW (as oppose to POST_PIXEL)
I get a crash with DST having 0xFF..

11 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 22:18:23 +0000 (08:18 +1000)]
Merge branch 'master' into blender2.8

11 months agoCleanup: style, use raw strings
Campbell Barton [Thu, 20 Sep 2018 22:15:46 +0000 (08:15 +1000)]
Cleanup: style, use raw strings

11 months agoCleanup: style
Campbell Barton [Thu, 20 Sep 2018 21:31:29 +0000 (07:31 +1000)]
Cleanup: style

11 months agoPreserve the actively bound framebuffer after using gpu.offscreen
Dalai Felinto [Thu, 20 Sep 2018 21:41:30 +0000 (21:41 +0000)]
Preserve the actively bound framebuffer after using gpu.offscreen

Otherwise we cannot draw anything after drawing in the offscreen buffer

11 months agoGP: Change lock axis property text
Antonioya [Thu, 20 Sep 2018 20:51:56 +0000 (22:51 +0200)]
GP: Change lock axis property text

11 months agoGP: Rename origin to stroke placement
Antonioya [Thu, 20 Sep 2018 20:51:34 +0000 (22:51 +0200)]
GP: Rename origin to stroke placement

11 months agoGPU Python API: shader.uniform_float
Dalai Felinto [Thu, 20 Sep 2018 19:51:02 +0000 (19:51 +0000)]
GPU Python API: shader.uniform_float

The existing alternative is to use a buffer and call
uniform_vector_float which is overkill for such a simple operation.

11 months agoTypo on pydoc for uniform_int
Dalai Felinto [Thu, 20 Sep 2018 19:49:08 +0000 (19:49 +0000)]
Typo on pydoc for uniform_int

11 months agogpu.batch module: keep shader reference in batch.
mano-wii [Thu, 20 Sep 2018 19:38:43 +0000 (16:38 -0300)]
gpu.batch module: keep shader reference in batch.

11 months agogpu.shader module: Do not free builtin shaders.
mano-wii [Thu, 20 Sep 2018 18:21:59 +0000 (15:21 -0300)]
gpu.shader module: Do not free builtin shaders.

11 months agoTexture Paint: unify missing data and slots panels, better auto position nodes.
Sebastian Parborg [Thu, 20 Sep 2018 17:53:16 +0000 (19:53 +0200)]
Texture Paint: unify missing data and slots panels, better auto position nodes.

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

11 months agoFix missing Eevee volume panel in material tab.
Brecht Van Lommel [Thu, 20 Sep 2018 17:26:41 +0000 (19:26 +0200)]
Fix missing Eevee volume panel in material tab.

11 months agoUI: add support for defining any icon as a mono icon.
Brecht Van Lommel [Thu, 20 Sep 2018 16:07:58 +0000 (18:07 +0200)]
UI: add support for defining any icon as a mono icon.

Previously it was hardcoded to one row. These icons are colored with the
text color. Changes include some refactoring.

11 months agoUI: default to single icon column toolbar in new 3D views.
Brecht Van Lommel [Thu, 20 Sep 2018 09:10:26 +0000 (11:10 +0200)]
UI: default to single icon column toolbar in new 3D views.

11 months agogpu.shader.builtin module: Add GPU_SHADER_2D_IMAGE.
mano-wii [Thu, 20 Sep 2018 16:55:43 +0000 (13:55 -0300)]
gpu.shader.builtin module: Add GPU_SHADER_2D_IMAGE.

11 months agoGP: Cleanup unused code
Antonioya [Thu, 20 Sep 2018 16:52:57 +0000 (18:52 +0200)]
GP: Cleanup unused code

11 months agoGP: Move origin selector to center and convert to popup
Antonioya [Thu, 20 Sep 2018 16:50:07 +0000 (18:50 +0200)]
GP: Move origin selector to center and convert to popup

11 months agoGP: Add new popover with layers panel
Antonioya [Thu, 20 Sep 2018 15:54:11 +0000 (17:54 +0200)]
GP: Add new popover with layers panel

11 months agoGPUCodegen: Remove unnecessary GLEW_VERSION_3_0 checks
Clément Foucault [Thu, 20 Sep 2018 15:43:11 +0000 (17:43 +0200)]
GPUCodegen: Remove unnecessary GLEW_VERSION_3_0 checks

11 months agoEevee: Implement Wireframe Node
Clément Foucault [Thu, 20 Sep 2018 15:41:07 +0000 (17:41 +0200)]
Eevee: Implement Wireframe Node

This implementation is a bit hacky but match cycles pretty close.

If pixel size is not enabled, it will use the geom shader to
compute distances between vertices. This will have a cost.

Implementation is a bit hacky in gpu_codegen to make the geom shader works
in an optional manner.

11 months agoFix compilation error in the stick bones shader for some Intel gpus.
mano-wii [Thu, 20 Sep 2018 15:11:23 +0000 (12:11 -0300)]
Fix compilation error in the stick bones shader for some Intel gpus.

11 months agoFix build for MSVC: Remove trailing double semicolon
Dalai Felinto [Thu, 20 Sep 2018 14:47:10 +0000 (14:47 +0000)]
Fix build for MSVC: Remove trailing double semicolon

Not sure why but MSVC is complaining for some of those.

In particular for the struct in BKE_subdiv_ccg.h. Those were the ones
crashing here..

11 months agoMultires: Cleanup, more proper variable name
Sergey Sharybin [Thu, 20 Sep 2018 14:35:50 +0000 (16:35 +0200)]
Multires: Cleanup, more proper variable name

11 months agoSculpt: Fix undo not working for multires
Sergey Sharybin [Thu, 20 Sep 2018 13:19:44 +0000 (15:19 +0200)]
Sculpt: Fix undo not working for multires

11 months agoSubdiv: CCG, implement averaging along edges and corners
Sergey Sharybin [Thu, 20 Sep 2018 12:30:16 +0000 (14:30 +0200)]
Subdiv: CCG, implement averaging along edges and corners

Makes it so smooth brush works properly, without causing grids
to become disconnected from each other.

This need to optimize the code for brush, to only average edges
and vertices which are adjacent to modified faces.

11 months agoSubdiv: CCG, store vertex adjacency information
Sergey Sharybin [Thu, 20 Sep 2018 12:01:35 +0000 (14:01 +0200)]
Subdiv: CCG, store vertex adjacency information

Similar to previous commit, but for vertices.

11 months agoSubdiv: CCG, store edge adjacency information
Sergey Sharybin [Thu, 20 Sep 2018 10:37:24 +0000 (12:37 +0200)]
Subdiv: CCG, store edge adjacency information

This information is stored for each non-loose edge.

For each of such edge we store:

- List of CCG faces it is adjacent to.

  This way we can easily check whether it is adjacent to
  any face which is tagged for update or so.

- List of boundary elements from adjacent grids.

  This allows to traverse along the edge and average all
  adjacent grids.

11 months agoOpenSubdiv: Add extra base level queries to topology refiner
Sergey Sharybin [Thu, 20 Sep 2018 09:45:22 +0000 (11:45 +0200)]
OpenSubdiv: Add extra base level queries to topology refiner

11 months agoSubdiv: CCG, fix memory leak
Sergey Sharybin [Thu, 20 Sep 2018 09:23:01 +0000 (11:23 +0200)]
Subdiv: CCG, fix memory leak

Forgot to free memory used by grid to face mapping array.

11 months agoSubdiv: CCG, fix crash going from sculpt to edit mode
Sergey Sharybin [Thu, 20 Sep 2018 09:21:45 +0000 (11:21 +0200)]
Subdiv: CCG, fix crash going from sculpt to edit mode

Was happening for "new" objects, which did not have MDisps
allocated yet.

11 months agoSubdiv: CCG, localize Mesh usage even more
Sergey Sharybin [Thu, 20 Sep 2018 08:27:07 +0000 (10:27 +0200)]
Subdiv: CCG, localize Mesh usage even more

11 months agoSubdiv: CCG, go away from Mesh
Sergey Sharybin [Thu, 20 Sep 2018 08:16:50 +0000 (10:16 +0200)]
Subdiv: CCG, go away from Mesh

Use topology refiner where possible, which will make code more
portable and less dependent on all the possibly outdated pointers.

11 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 20 Sep 2018 13:39:20 +0000 (15:39 +0200)]
Merge branch 'master' into blender2.8

11 months agoSculpt: Fix memory leak in undo system
Sergey Sharybin [Thu, 20 Sep 2018 13:38:15 +0000 (15:38 +0200)]
Sculpt: Fix memory leak in undo system

Was not freeing undo nodes themselves.

11 months agoGP: Remove Copy & Paste buttons
Antonioya [Thu, 20 Sep 2018 11:50:37 +0000 (13:50 +0200)]
GP: Remove Copy & Paste buttons

11 months agoGP: Fix problem with mode opening 2D Animation template
Antonioya [Thu, 20 Sep 2018 11:47:59 +0000 (13:47 +0200)]
GP: Fix problem with mode opening 2D Animation template

The grease pencil does not need a toggle of mode.

This fix also the problem when open grease pencil files that did not keep the mode saved.

11 months agoGP: Fix falloff curve using 2D animation template
Antonioya [Thu, 20 Sep 2018 11:10:56 +0000 (13:10 +0200)]
GP: Fix falloff curve using 2D animation template

11 months agoGP: Fix template name typo error
Antonioya [Thu, 20 Sep 2018 11:04:56 +0000 (13:04 +0200)]
GP: Fix template name typo error

11 months agoGP: Fix Alt+S problem with multiframe edition
Antonioya [Thu, 20 Sep 2018 10:54:04 +0000 (12:54 +0200)]
GP: Fix Alt+S problem with multiframe edition

The stroke must not be recalc, because the number of points does not change,so the triangulation of fill is the same.

11 months agoCleanup: move DerivedMesh wrappers for modifiers further down the hierarchy
Jacques Lucke [Thu, 20 Sep 2018 10:04:17 +0000 (12:04 +0200)]
Cleanup: move DerivedMesh wrappers for modifiers further down the hierarchy

The main goal of this patch is to cleanup the interface of every modifier. More specifically the interface of modifiers should be DerivedMesh-free.
Internally some modifiers still use DerivedMesh. However I think it is better when the wrappers are in the modifiers so that higher level functions can use the simplified interface.

This patch removes the applyModifier_DM and applyModifierEM_DM functions. In a previous patch (rB3614d9d) the other functions that used DerivedMesh have been removed.

Reviewers: brecht

11 months agoGP: Add keymap 1 and 2 for select mode
Antonioya [Thu, 20 Sep 2018 09:56:41 +0000 (11:56 +0200)]
GP: Add keymap 1 and 2 for select mode

11 months agoGP: New select mode
Antonioya [Thu, 20 Sep 2018 09:32:59 +0000 (11:32 +0200)]
GP: New select mode

Now it's possible select points or strokes

11 months agoPut the Radius property of Curve points under shape key control.
Alexander Gavrilov [Wed, 5 Sep 2018 13:17:59 +0000 (16:17 +0300)]
Put the Radius property of Curve points under shape key control.

Since shape keys are stored as raw floating point data, this
unfortunately requires changes to all code that works with it.

An additional complication is that bezier and nurbs control
points have different entry size, and can be mixed in the same
object (and hence shape key buffer).

Shape key entries are changed from:

  bezier: float v1[3], v2[3], v3[3], tilt, pad, pad;
  nurbs:  float vec[3], tilt;

To:

  bezier: float v1[3], v2[3], v3[3], tilt, radius, pad;
  nurbs:  float vec[3], tilt, radius, pad;

The official shape key element size is changed to 3 floats,
with 4 elements for  bezier nodes, and 2 for nurbs. This also
means that the element count is not equal to the vertex count
anymore.

While searching for all curve Shape Key code, I also found that
BKE_curve_transform_ex and BKE_curve_translate were broken. This
can be seen by trying to change the Origin of a Curve with keys.

Reviewers: campbellbarton, sergey

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

11 months agoGizmo: hide redo gizmo when any operator runs
Campbell Barton [Thu, 20 Sep 2018 05:41:18 +0000 (15:41 +1000)]
Gizmo: hide redo gizmo when any operator runs

11 months agoMissing from last commit
Campbell Barton [Thu, 20 Sep 2018 04:56:36 +0000 (14:56 +1000)]
Missing from last commit

11 months agoPyAPI: correct term for class property warning
Campbell Barton [Thu, 20 Sep 2018 04:55:07 +0000 (14:55 +1000)]
PyAPI: correct term for class property warning

11 months agoCleanup: use win_to_3d_on_plane function
Campbell Barton [Thu, 20 Sep 2018 02:53:39 +0000 (12:53 +1000)]
Cleanup: use win_to_3d_on_plane function

11 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 02:46:04 +0000 (12:46 +1000)]
Merge branch 'master' into blender2.8

11 months agoCleanup: use win_to_3d_on_plane for curve drawing
Campbell Barton [Thu, 20 Sep 2018 02:45:07 +0000 (12:45 +1000)]
Cleanup: use win_to_3d_on_plane for curve drawing

11 months ago3D View: add clip argument to win_to_3d_on_plane
Campbell Barton [Thu, 20 Sep 2018 02:42:00 +0000 (12:42 +1000)]
3D View: add clip argument to win_to_3d_on_plane

11 months agoGizmo: use simple unclipped win_to_ray function
Campbell Barton [Thu, 20 Sep 2018 02:13:11 +0000 (12:13 +1000)]
Gizmo: use simple unclipped win_to_ray function

When projecting the cursor onto a plane, clipping isn't important.

11 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 02:06:53 +0000 (12:06 +1000)]
Merge branch 'master' into blender2.8

11 months agoCleanup: renaming missed from merge
Campbell Barton [Thu, 20 Sep 2018 02:04:18 +0000 (12:04 +1000)]
Cleanup: renaming missed from merge

11 months ago3D View: add a simple un-clipped win_to_ray
Campbell Barton [Thu, 20 Sep 2018 02:00:02 +0000 (12:00 +1000)]
3D View: add a simple un-clipped win_to_ray

11 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 01:51:01 +0000 (11:51 +1000)]
Merge branch 'master' into blender2.8

11 months agoCleanup: rename 3D view ray calculation functions
Campbell Barton [Thu, 20 Sep 2018 01:47:17 +0000 (11:47 +1000)]
Cleanup: rename 3D view ray calculation functions

Using near far and optionally clipping planes is
involved and not needed in many cases.

Rename so a simpler version of this function can be added.

11 months agoGizmo: use ED_view3d_win_to_3d_on_plane
Campbell Barton [Thu, 20 Sep 2018 01:38:11 +0000 (11:38 +1000)]
Gizmo: use ED_view3d_win_to_3d_on_plane

11 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 01:26:31 +0000 (11:26 +1000)]
Merge branch 'master' into blender2.8

11 months ago3D View: point-on-plane from screen location utility
Campbell Barton [Thu, 20 Sep 2018 01:21:34 +0000 (11:21 +1000)]
3D View: point-on-plane from screen location utility

11 months agoFix spin/rotate gizmo not updating view orientation
Campbell Barton [Thu, 20 Sep 2018 00:19:10 +0000 (10:19 +1000)]
Fix spin/rotate gizmo not updating view orientation

Check for navigation didn't refresh when navigation was completed.

11 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 20 Sep 2018 00:11:01 +0000 (10:11 +1000)]
Merge branch 'master' into blender2.8

11 months agoCleanup: style
Campbell Barton [Thu, 20 Sep 2018 00:06:59 +0000 (10:06 +1000)]
Cleanup: style

11 months agoGPUTexture: Fix HDRI being clamped on OSX
Clément Foucault [Wed, 19 Sep 2018 21:59:00 +0000 (23:59 +0200)]
GPUTexture: Fix HDRI being clamped on OSX

Seems like GLEW_ARB_texture_float is not defined in core profile on OSX
even if float textures are part of the 3.3 core spec.

So removing uneeded backup cases.

11 months agoGP: Rename eraser brushes
Antonioya [Wed, 19 Sep 2018 21:24:35 +0000 (23:24 +0200)]
GP: Rename eraser brushes

11 months agoCleanup: style
Campbell Barton [Wed, 19 Sep 2018 21:11:01 +0000 (07:11 +1000)]
Cleanup: style

11 months agoFix T53745: Alembic exported with vertex colors not readable by other software.
Wybren van Keulen [Wed, 19 Sep 2018 08:55:49 +0000 (10:55 +0200)]
Fix T53745: Alembic exported with vertex colors not readable by other software.

Most other software expects to read indexed vertex colors, so write indices
along with the colors as we already do for UVs.

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

11 months agoDRW: Fix crash when new shader requires 0 customdata layers
Clément Foucault [Wed, 19 Sep 2018 18:02:03 +0000 (20:02 +0200)]
DRW: Fix crash when new shader requires 0 customdata layers

It was using last cache->auto_layer_len which led to a buffer overflow.

11 months agoDRW: Only trash UV and tangent data when using BKE_MESH_BATCH_DIRTY_SHADING
Clément Foucault [Wed, 19 Sep 2018 17:36:25 +0000 (19:36 +0200)]
DRW: Only trash UV and tangent data when using BKE_MESH_BATCH_DIRTY_SHADING

This improves the problem encountered when animating materials on static
meshes but does not fix the core issue. See T55326.

11 months agoCleanup: Remove "_new" from GPU_generate_pass_new
Clément Foucault [Wed, 19 Sep 2018 17:34:00 +0000 (19:34 +0200)]
Cleanup: Remove "_new" from GPU_generate_pass_new

Not needed anymore since old one has been deleted.

11 months agoFix T55059: EEVEE UV not available until you go in and out of edit mode
Clément Foucault [Wed, 19 Sep 2018 17:33:08 +0000 (19:33 +0200)]
Fix T55059: EEVEE UV not available until you go in and out of edit mode

This is a dirty hack that should become irrelevant when depsgraph will
support CD masks.

11 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 19 Sep 2018 16:42:17 +0000 (18:42 +0200)]
Merge branch 'master' into blender2.8

11 months agoCycles: Cleanup, double semicolon
Sergey Sharybin [Wed, 19 Sep 2018 16:41:43 +0000 (18:41 +0200)]
Cycles: Cleanup, double semicolon

11 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 19 Sep 2018 16:19:49 +0000 (18:19 +0200)]
Merge branch 'master' into blender2.8

11 months agoSpelling fixes in comments and descriptions, patch by luzpaz.
Brecht Van Lommel [Wed, 19 Sep 2018 15:48:11 +0000 (17:48 +0200)]
Spelling fixes in comments and descriptions, patch by luzpaz.

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

11 months agomake.bat: fix build error when there are spaces in the path to svn/git/cmake
Ray Molenkamp [Wed, 19 Sep 2018 16:16:46 +0000 (10:16 -0600)]
make.bat: fix build error when there are spaces in the path to svn/git/cmake

11 months agoDepsgraph: Another followup to the previous commit
Sergey Sharybin [Wed, 19 Sep 2018 16:03:15 +0000 (18:03 +0200)]
Depsgraph: Another followup to the previous commit

Apparently, only mesh objects has SHADING component.

11 months agoFix wrong pointer used in modifier stack
Sergey Sharybin [Wed, 19 Sep 2018 15:51:14 +0000 (17:51 +0200)]
Fix wrong pointer used in modifier stack

Was passing pointer to a pointer of context.

11 months agoDepsgraph: Correction for the previous commit
Sergey Sharybin [Wed, 19 Sep 2018 15:49:08 +0000 (17:49 +0200)]
Depsgraph: Correction for the previous commit

11 months agoCleanup: Remove some DerivedMesh wrappers for modifiers
Jacques Lucke [Wed, 19 Sep 2018 14:59:05 +0000 (16:59 +0200)]
Cleanup: Remove some DerivedMesh wrappers for modifiers

Specifically the deformVerts_DM, deformMatrices_DM, deformVertsEM_DM and deformMatricesEM_DM functions are not used anymore.

Reviewer: brecht

11 months agoGP: Verify weight data is correct before assigning
Antonioya [Wed, 19 Sep 2018 15:26:09 +0000 (17:26 +0200)]
GP: Verify weight data is correct before assigning

11 months agoGP: Fix crash when select vertex group in modifiers
Antonioya [Wed, 19 Sep 2018 15:20:39 +0000 (17:20 +0200)]
GP: Fix crash when select vertex group in modifiers

11 months agoDepsgraph: Ensure shading update order
Sergey Sharybin [Wed, 19 Sep 2018 15:14:27 +0000 (17:14 +0200)]
Depsgraph: Ensure shading update order

Previously it was possible to have geometry component to
tag batch for DIRTY_ALL and shading to tag with SHADING_UPDATE.

Now there is a relation between uber eval and shading, which
solves this issue.

11 months agoGP: Fix copy frame error in dopesheet
Antonioya [Wed, 19 Sep 2018 14:46:56 +0000 (16:46 +0200)]
GP: Fix copy frame error in dopesheet

11 months agoDepsgraph: Always assume scene camera is visible
Sergey Sharybin [Wed, 19 Sep 2018 14:43:59 +0000 (16:43 +0200)]
Depsgraph: Always assume scene camera is visible

Allows to disable camera collection to make objects to go out of
the way, but still be able to animate.

11 months agoFix wrong CUDA version warning in cmake.
Brecht Van Lommel [Wed, 19 Sep 2018 14:04:11 +0000 (16:04 +0200)]
Fix wrong CUDA version warning in cmake.

Fix suggested by Dalai.

11 months agoFix T56697: missing viewport update after keyframe edits in animation editors.
Brecht Van Lommel [Wed, 19 Sep 2018 14:17:24 +0000 (16:17 +0200)]
Fix T56697: missing viewport update after keyframe edits in animation editors.

It was updating during transform, but not a final time after keyframes get
reordered or merged.

11 months agoUI: make new icon consistent with other places.
Brecht Van Lommel [Wed, 19 Sep 2018 08:19:45 +0000 (10:19 +0200)]
UI: make new icon consistent with other places.

11 months agoFix own mistake in previous commit.
Bastien Montagne [Wed, 19 Sep 2018 14:09:52 +0000 (16:09 +0200)]
Fix own mistake in previous commit.

11 months agoDepsgraph: Make visible update to operate on per-component level
Sergey Sharybin [Wed, 19 Sep 2018 13:46:03 +0000 (15:46 +0200)]
Depsgraph: Make visible update to operate on per-component level

11 months agoDespgraph: Keep track of per-component visibility
Sergey Sharybin [Wed, 19 Sep 2018 13:21:51 +0000 (15:21 +0200)]
Despgraph: Keep track of per-component visibility

The idea of those flags is to avoid evaluation of operations
which are not needed to bring visible objects to an up to date
state.

Previously, dependency graph attempted to do combine those
into an ID level flag. In practice it proved to be rather
tricky, since there could be dependency cycles on ID level
which will not exist on component level.

11 months agoDepsgraph: Connect duplicating geometry to duplicator
Sergey Sharybin [Wed, 19 Sep 2018 13:09:55 +0000 (15:09 +0200)]
Depsgraph: Connect duplicating geometry to duplicator

This allows to force duplicated object to be fully evaluated for
display/draw.

Previously only transform component of duplicated object was
forced to become evaluated.

11 months agoDepsgraph: Make geoemtry to tag function more reusable
Sergey Sharybin [Wed, 19 Sep 2018 13:06:18 +0000 (15:06 +0200)]
Depsgraph: Make geoemtry to tag function more reusable

11 months agoDepsgraph: Correct early output in collections
Sergey Sharybin [Wed, 19 Sep 2018 10:12:02 +0000 (12:12 +0200)]
Depsgraph: Correct early output in collections

Need to ensure objects from collection which was built but
is became visible in the new "context" are poked for re-built.

This should be rather cheap, since this only will update
their visibility flag.

Can not rely on visibility flush here, since there is no
relations between collection and its objects.

11 months agoDepsgraph: Handle text datablock in ID builder
Sergey Sharybin [Wed, 19 Sep 2018 08:30:41 +0000 (10:30 +0200)]
Depsgraph: Handle text datablock in ID builder

Just silence the assert/print, we do not add text data blocks
to dependency graph.

11 months agoAddon Utils: Green light the uv layout addon
Dalai Felinto [Wed, 19 Sep 2018 13:57:37 +0000 (13:57 +0000)]
Addon Utils: Green light the uv layout addon

11 months agoDepsgraph/RNA: Fix broken 'dupliobject' RNA interface.
Bastien Montagne [Wed, 19 Sep 2018 13:44:10 +0000 (15:44 +0200)]
Depsgraph/RNA: Fix broken 'dupliobject' RNA interface.

Previous code would crash on whole lot of accessors in case current item
was not a real dupli instance.

And code was missing access to crucial dupli (world) matrix! Pretty
useless without that.

Also reordered a bit members in here, let's try to keep a bit of logic...

11 months agoFix possible misuse of `BLI_strncpy`.
mano-wii [Wed, 19 Sep 2018 12:04:55 +0000 (09:04 -0300)]
Fix possible misuse of `BLI_strncpy`.

Same issue as rB39f7c8256d58.

11 months agoGP: Fix stupid mistake
Antonioya [Wed, 19 Sep 2018 10:15:53 +0000 (12:15 +0200)]
GP: Fix stupid mistake