blender.git
3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 14 May 2018 07:01:07 +0000 (09:01 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: quiet GCC -Wtype-limits
Campbell Barton [Mon, 14 May 2018 06:58:09 +0000 (08:58 +0200)]
Cleanup: quiet GCC -Wtype-limits

While the warning can normally be disabled, we don't have have as much
control of warnings when macros are used.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 14 May 2018 06:41:15 +0000 (08:41 +0200)]
Merge branch 'master' into blender2.8

3 years agoBLI_utildefines: re-ordering array delete macro
Campbell Barton [Mon, 14 May 2018 05:37:17 +0000 (07:37 +0200)]
BLI_utildefines: re-ordering array delete macro

3 years agoEevee: Hair: Disable SSR for hairs.
Clément Foucault [Sun, 13 May 2018 22:18:00 +0000 (00:18 +0200)]
Eevee: Hair: Disable SSR for hairs.

SSR does not work with hair strands. Basically, the rays are too much
random to ever converge properly and just result in a soup of self
inter reflections.

So forcing it to not produce any SSR. Could potentially save some bandwidth
by not rendering hair to the SSR buffers.

3 years agoEevee: Hair: Fix normal distribution of previous commit.
Clément Foucault [Sun, 13 May 2018 21:12:45 +0000 (23:12 +0200)]
Eevee: Hair: Fix normal distribution of previous commit.

Now it starts to look correct!

3 years agoEevee: Hair: Remove old hack and replace by new hack.
Clément Foucault [Sun, 13 May 2018 20:20:44 +0000 (22:20 +0200)]
Eevee: Hair: Remove old hack and replace by new hack.

This is a hack to properly shade wire hairs. Use stochastic sampling and
let TAA solve the noise.

At least it's way more correct than the previous hack.

3 years agoGPUTexture: Add Texture Buffer support.
Clément Foucault [Sun, 13 May 2018 20:12:32 +0000 (22:12 +0200)]
GPUTexture: Add Texture Buffer support.

This is needed by opensubdiv and can be helpfull in a lot of other cases.

3 years agoEditMesh: Use tweak for extrude tool
Campbell Barton [Sun, 13 May 2018 19:19:22 +0000 (21:19 +0200)]
EditMesh: Use tweak for extrude tool

Could too easily click to extrude without any offset.

3 years agoEditMesh: show XYZ axis for extrude
Campbell Barton [Sun, 13 May 2018 15:53:31 +0000 (17:53 +0200)]
EditMesh: show XYZ axis for extrude

Always show normal axis since this is the most used,
even when another orientation is selected.

3 years agoEevee: Fix lamp defaulting to no specular.
Clément Foucault [Sun, 13 May 2018 19:07:25 +0000 (21:07 +0200)]
Eevee: Fix lamp defaulting to no specular.

Was missing a default value.

3 years agoFix missing path callback for new Object.display struct.
Bastien Montagne [Sun, 13 May 2018 17:06:37 +0000 (19:06 +0200)]
Fix missing path callback for new Object.display struct.

3 years agoFix issue w/ recent tool name use
Campbell Barton [Sun, 13 May 2018 16:39:15 +0000 (18:39 +0200)]
Fix issue w/ recent tool name use

Use the context space type, not the workspace.
Broke setting tools for the first time.

3 years agoIcons: updated transform icons
Campbell Barton [Sun, 13 May 2018 16:33:01 +0000 (18:33 +0200)]
Icons: updated transform icons

3 years agoUI: fix popovers not properly working with scroll arrows for long menus.
Brecht Van Lommel [Sun, 13 May 2018 16:23:21 +0000 (18:23 +0200)]
UI: fix popovers not properly working with scroll arrows for long menus.

3 years agoBuild deps: avoid ffmpeg external crystalhd library dependency.
Brecht Van Lommel [Sun, 13 May 2018 13:58:11 +0000 (15:58 +0200)]
Build deps: avoid ffmpeg external crystalhd library dependency.

3 years agoIcons: fix z-sorting
Campbell Barton [Sun, 13 May 2018 15:10:20 +0000 (17:10 +0200)]
Icons: fix z-sorting

Was depth sorting per mesh.

3 years agoFix/workaround crash when appending workspace in edit mode
Julian Eisel [Sun, 13 May 2018 14:49:05 +0000 (16:49 +0200)]
Fix/workaround crash when appending workspace in edit mode

Linking/appending in edit mode currently isn't supported. For workspaces it
should probably be, but we can look into supporting this later.

For now gray out buttons in "Add Workspace" menu while in edit mode.

3 years agoFix invisible scroll-bars after file read
Julian Eisel [Sun, 13 May 2018 14:36:41 +0000 (16:36 +0200)]
Fix invisible scroll-bars after file read

Own mistake from 51efeb683451d896.

3 years agoIcons: optionally use material color
Campbell Barton [Sun, 13 May 2018 14:21:11 +0000 (16:21 +0200)]
Icons: optionally use material color

The RGB node is used if it exists,
this is multiplied by the vertex color.

3 years agoFix build error with Visual Studio / Windows.
Nick Milios [Sun, 13 May 2018 13:48:55 +0000 (15:48 +0200)]
Fix build error with Visual Studio / Windows.

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

3 years agoRevert "UI: geometry-icon alpha blend over existing colors"
Campbell Barton [Sun, 13 May 2018 13:39:06 +0000 (15:39 +0200)]
Revert "UI: geometry-icon alpha blend over existing colors"

This reverts commit 9606d28d40809c58cfee7f817fd2c582da5030bd.

Caused issue w/ overlapping triangles,
since this isn't overly important reverting.

3 years agoUI: geometry-icon alpha blend over existing colors
Campbell Barton [Sun, 13 May 2018 13:14:06 +0000 (15:14 +0200)]
UI: geometry-icon alpha blend over existing colors

Useful to mix pre-defined material colors.

3 years agoFix compiler warnings.
Brecht Van Lommel [Sun, 13 May 2018 12:10:05 +0000 (14:10 +0200)]
Fix compiler warnings.

3 years agoUI/Python: layout API support for setting button emboss style.
Brecht Van Lommel [Sun, 13 May 2018 10:57:31 +0000 (12:57 +0200)]
UI/Python: layout API support for setting button emboss style.

3 years agoCleanup: deduplicate layout item initialization.
Brecht Van Lommel [Sun, 13 May 2018 10:28:35 +0000 (12:28 +0200)]
Cleanup: deduplicate layout item initialization.

3 years agoTool System: Support set w/ space-type argument
Campbell Barton [Sun, 13 May 2018 09:49:21 +0000 (11:49 +0200)]
Tool System: Support set w/ space-type argument

3 years agoUI: show toolbar shortcuts
Campbell Barton [Sun, 13 May 2018 08:25:18 +0000 (10:25 +0200)]
UI: show toolbar shortcuts

When toobar text is expanded, show shortcuts
(normally confined to menus).

3 years agoTool System: tools are now set by name
Campbell Barton [Sun, 13 May 2018 08:01:56 +0000 (10:01 +0200)]
Tool System: tools are now set by name

This avoids having to store the tool definition in the operator
properties (on redraw).

Now just set the name, note this means we can't show the keymap in the
tool-tip anymore. This will eventually be shown in the status bar.

3 years agoWM: utility to create tool keybindings
Campbell Barton [Sun, 13 May 2018 07:34:22 +0000 (09:34 +0200)]
WM: utility to create tool keybindings

3 years agoWM: Operator to set the tool by name
Campbell Barton [Sun, 13 May 2018 06:59:50 +0000 (08:59 +0200)]
WM: Operator to set the tool by name

Needed to bind keys to tools (T55036).

3 years agoCleanup: indentation
Campbell Barton [Sun, 13 May 2018 06:32:47 +0000 (08:32 +0200)]
Cleanup: indentation

3 years agoCleanup: add function to get class from space type
Campbell Barton [Sun, 13 May 2018 06:13:13 +0000 (08:13 +0200)]
Cleanup: add function to get class from space type

3 years agoCleanup: call toolsystem static methods directly
Campbell Barton [Sun, 13 May 2018 06:07:17 +0000 (08:07 +0200)]
Cleanup: call toolsystem static methods directly

Note, may move these static methods into their own module.

3 years agoVersioning: default scene to mean center pivot
Campbell Barton [Sun, 13 May 2018 05:25:25 +0000 (07:25 +0200)]
Versioning: default scene to mean center pivot

3 years agoTransform: fix regression in bound-box calculation
Campbell Barton [Sun, 13 May 2018 05:17:36 +0000 (07:17 +0200)]
Transform: fix regression in bound-box calculation

Error in multi-object merge.

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 13 May 2018 04:56:51 +0000 (06:56 +0200)]
Merge branch 'master' into blender2.8

3 years agoCleanup: trailing space
Campbell Barton [Sun, 13 May 2018 04:44:03 +0000 (06:44 +0200)]
Cleanup: trailing space

3 years agoFix 3D view axis align flag
Campbell Barton [Sun, 13 May 2018 04:37:36 +0000 (06:37 +0200)]
Fix 3D view axis align flag

Missed from recent pivot-point move to scene.

3 years agoCleanup: Remove unused member.
Germano [Sun, 13 May 2018 02:39:36 +0000 (23:39 -0300)]
Cleanup: Remove unused member.

3 years agoBKE_bvhutils: allow caching NULL bvh_trees.
Germano [Sat, 12 May 2018 22:43:36 +0000 (19:43 -0300)]
BKE_bvhutils: allow caching NULL bvh_trees.

This prevents zero-leafs bvhtrees from being recalculated multiple times.

3 years agotransform_snap_object: perf: Check the distance of the bound_box of objects of type...
Germano [Sat, 12 May 2018 22:39:21 +0000 (19:39 -0300)]
transform_snap_object: perf: Check the distance of the bound_box of objects of type armature and curve first.

And remove unused variables.

3 years agoCleanup: transform_snap_object: Remove unused variables and reuse the precalc used...
Germano [Sat, 12 May 2018 22:10:23 +0000 (19:10 -0300)]
Cleanup: transform_snap_object: Remove unused variables and reuse the precalc used to test the distance to the projected bound_box.

3 years agoEevee: Fix Dof shader compilation.
Clément Foucault [Sat, 12 May 2018 21:18:27 +0000 (23:18 +0200)]
Eevee: Fix Dof shader compilation.

3 years agoEevee: Depht Of Field: Merge Scatter passes together.
Clément Foucault [Sat, 12 May 2018 19:01:07 +0000 (21:01 +0200)]
Eevee: Depht Of Field: Merge Scatter passes together.

This means only one texture to draw to and only one sprite per pixel.

The texture is twice as large and near and far planes are side by side.

The sprite choose the biggest coc to expand to and is redirected to the
area (layer) it belongs to.

The fragment shader discard every pixel that does not belong to the correct
layer.

3 years agoEevee: Depth of field: Code style fixes.
Clément Foucault [Sat, 12 May 2018 10:10:20 +0000 (12:10 +0200)]
Eevee: Depth of field: Code style fixes.

3 years agoEevee: Depth of field: Smooth out bokeh shape.
Clément Foucault [Fri, 11 May 2018 22:58:53 +0000 (00:58 +0200)]
Eevee: Depth of field: Smooth out bokeh shape.

Due to the scatter operation being done at half resolution, undersampling
is visible at bokeh shape edges (because of the hard cut).

This commit adds a smoothing function to minimize the problem.

Also optimize the bokeh shape parametrization by precomputing a lot of
constants.

3 years agoEevee: Depth of field: Change final blending.
Clément Foucault [Fri, 11 May 2018 22:52:04 +0000 (00:52 +0200)]
Eevee: Depth of field: Change final blending.

This new blending allows background to fill the gaps left by forground
objects. However this has a drawback, background objects that should be
partially occluded in this case can be seen through the blurred objects.

This does not fix the problem of blurred foreground over sharp background.

Also cleanup code to be simpler and remove unused geometry shader.

3 years agoCleanup: BLI_math: Simplify dist_squared_to_projected_aabb functions.
Germano [Sat, 12 May 2018 21:18:32 +0000 (18:18 -0300)]
Cleanup: BLI_math: Simplify dist_squared_to_projected_aabb functions.

3 years agoEditMBall: multi-object select random
Campbell Barton [Sat, 12 May 2018 20:16:09 +0000 (22:16 +0200)]
EditMBall: multi-object select random

D3356 by @Quetzal

3 years agoUI: move pivot to the topbar
Campbell Barton [Sat, 12 May 2018 19:56:47 +0000 (21:56 +0200)]
UI: move pivot to the topbar

Pivot variables are now stored in scene toolsettings.

3 years agoUI: move snap & pet options into the topbar
Campbell Barton [Sat, 12 May 2018 17:13:38 +0000 (19:13 +0200)]
UI: move snap & pet options into the topbar

See: T55038

3 years agoUI: use icons for orientation types
Campbell Barton [Sat, 12 May 2018 17:02:38 +0000 (19:02 +0200)]
UI: use icons for orientation types

See: T55038

3 years agoRemove unused function: `BKE_bvhtree_from_mesh_looptri`.
Germano [Sat, 12 May 2018 15:05:54 +0000 (12:05 -0300)]
Remove unused function: `BKE_bvhtree_from_mesh_looptri`.

3 years agoReplace `BKE_bvhtree_from_mesh_looptri` with `BKE_bvhtree_from_mesh_get`.
Germano [Sat, 12 May 2018 14:53:27 +0000 (11:53 -0300)]
Replace `BKE_bvhtree_from_mesh_looptri` with `BKE_bvhtree_from_mesh_get`.

Must have had a conflict in commit rB82d59c6588d7 when merging branchs.

3 years agoUI: move GL render to view menu
Campbell Barton [Sat, 12 May 2018 12:59:51 +0000 (14:59 +0200)]
UI: move GL render to view menu

This was taking valuable header room for a rarely used operator.

3 years agoUI: move orientation to the topbar
Campbell Barton [Sat, 12 May 2018 12:54:57 +0000 (14:54 +0200)]
UI: move orientation to the topbar

Move manipulator toggle to overlay popover.

3 years agoUI: move general mode options to right of topbar
Campbell Barton [Sat, 12 May 2018 12:43:29 +0000 (14:43 +0200)]
UI: move general mode options to right of topbar

3 years agoEditMode: multi-object inset
Campbell Barton [Sat, 12 May 2018 08:45:51 +0000 (10:45 +0200)]
EditMode: multi-object inset

D3305 by @jfmichaud31

3 years agoEditMode: multi-object UV cube project
Campbell Barton [Sat, 12 May 2018 08:02:00 +0000 (10:02 +0200)]
EditMode: multi-object UV cube project

D3346 by @Cykyrios

3 years agoEditMode: multi-object UV cylinder project
Campbell Barton [Sat, 12 May 2018 07:53:41 +0000 (09:53 +0200)]
EditMode: multi-object UV cylinder project

D3345 by @Cykyrios

3 years agoEditMode: multi-object UV sphere project
Campbell Barton [Sat, 12 May 2018 07:50:28 +0000 (09:50 +0200)]
EditMode: multi-object UV sphere project

D3344 by @Cykyrios

3 years agoEditMode: multi-object UV reset
Campbell Barton [Sat, 12 May 2018 07:45:37 +0000 (09:45 +0200)]
EditMode: multi-object UV reset

D3343 by @Cykyrios

3 years agoModifiers: port Remesh from DerivedMesh to Mesh
Campbell Barton [Sat, 12 May 2018 07:31:44 +0000 (09:31 +0200)]
Modifiers: port Remesh from DerivedMesh to Mesh

D3331 by @alikendarfen

3 years agoModifiers: ported Wave from DerivedMesh to Mesh
Campbell Barton [Sat, 12 May 2018 07:21:38 +0000 (09:21 +0200)]
Modifiers: ported Wave from DerivedMesh to Mesh

D3350 by @alikendarfen

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 12 May 2018 06:21:07 +0000 (08:21 +0200)]
Merge branch 'master' into blender2.8

3 years agoFix missing fallback in recent aabb precalc func
Campbell Barton [Sat, 12 May 2018 06:19:20 +0000 (08:19 +0200)]
Fix missing fallback in recent aabb precalc func

Also comment unused vars

3 years agoCleanup: modifier arg wrapping
Campbell Barton [Sat, 12 May 2018 06:04:56 +0000 (08:04 +0200)]
Cleanup: modifier arg wrapping

3 years agoRefactor: Move functions to get the distance to a projected aabb to BLI_match and...
Germano [Fri, 11 May 2018 23:20:51 +0000 (20:20 -0300)]
Refactor: Move functions to get the distance to a projected aabb to BLI_match and remove confusing parameters.

3 years agoIcons: simpler flattened icon style
Campbell Barton [Fri, 11 May 2018 20:28:39 +0000 (22:28 +0200)]
Icons: simpler flattened icon style

Update from @billreynish

3 years agoUI: tweaks to icon defaults
Campbell Barton [Fri, 11 May 2018 20:15:05 +0000 (22:15 +0200)]
UI: tweaks to icon defaults

Minor changes to fit w/ new icons.

3 years agoCleanup: remove unused RNA variable
Campbell Barton [Fri, 11 May 2018 19:26:55 +0000 (21:26 +0200)]
Cleanup: remove unused RNA variable

3 years agoPlatform: macOS. Allow building on directory with whitespace (For example /Volumes...
Arto Kitula [Fri, 11 May 2018 18:56:13 +0000 (21:56 +0300)]
Platform: macOS. Allow building on directory with whitespace (For example /Volumes/External HD/blender-build)

3 years agoBmesh: Clear possible geometry saved at runtime when converting bmesh to mesh.
Germano [Fri, 11 May 2018 18:48:14 +0000 (15:48 -0300)]
Bmesh: Clear possible geometry saved at runtime when converting bmesh to mesh.

3 years agoTool System: curve draw options
Campbell Barton [Fri, 11 May 2018 18:25:01 +0000 (20:25 +0200)]
Tool System: curve draw options

3 years agoTool System: inset & shrink/fatten options
Campbell Barton [Fri, 11 May 2018 18:23:29 +0000 (20:23 +0200)]
Tool System: inset & shrink/fatten options

3 years agoTool System: mesh rip fill option
Campbell Barton [Fri, 11 May 2018 18:22:04 +0000 (20:22 +0200)]
Tool System: mesh rip fill option

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 11 May 2018 18:13:07 +0000 (20:13 +0200)]
Merge branch 'master' into blender2.8

3 years agoEditMesh: remove duplicate rip macro
Campbell Barton [Fri, 11 May 2018 18:02:12 +0000 (20:02 +0200)]
EditMesh: remove duplicate rip macro

Change the fill setting in the keymap,
this allows tool access the macro with either setting.

3 years agoWM: initialize last used macro properties
Campbell Barton [Fri, 11 May 2018 18:01:51 +0000 (20:01 +0200)]
WM: initialize last used macro properties

3 years agoDRW: Add DRW_UNIFORM_FLOAT_COPY and DRW_UNIFORM_BOOL_COPY.
Clément Foucault [Fri, 11 May 2018 17:00:08 +0000 (19:00 +0200)]
DRW: Add DRW_UNIFORM_FLOAT_COPY and DRW_UNIFORM_BOOL_COPY.

And also use a union instead of forcing the cast to void*.

3 years agoDRW: Add DRW_view_layer_engine_data_ensure_ex.
Clément Foucault [Fri, 11 May 2018 08:56:52 +0000 (10:56 +0200)]
DRW: Add DRW_view_layer_engine_data_ensure_ex.

3 years agoModifiers: ported Laplacian Deform DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 15:30:57 +0000 (17:30 +0200)]
Modifiers: ported Laplacian Deform DerivedMesh → Mesh

Reviewers: sybren

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

3 years agoFix: Last of the operators from T54811 now work with Copy on Write
Joshua Leung [Fri, 11 May 2018 15:43:56 +0000 (17:43 +0200)]
Fix: Last of the operators from T54811 now work with Copy on Write

3 years agoWorkbench: StudioLight HDRI's
Jeroen Bakker [Fri, 11 May 2018 14:55:14 +0000 (16:55 +0200)]
Workbench: StudioLight HDRI's

The Studio lights are now loaded from disk. The location is
`datafiles/studiolights` they need to be JPG for now. JPG cannot store
HDRI color range but they are clamped inside the Workbench
engine for speed reason. I didn't select JP2K as it might not be
enabled.

Users can add upto 20 HDRI files. This limitation is inside the
RNA_space.c Currently the icons are calculated when you first open the
selection box for the HDRI's. We could add them to a background
rendering later.

I added 2 test files a sky texture rendered in Cycles and an HDRI from
cloud.blender.org.

3 years agoModifiers: ported Laplacian Smooth DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 14:40:00 +0000 (16:40 +0200)]
Modifiers: ported Laplacian Smooth DerivedMesh → Mesh

Reviewers: sybren

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

3 years agoUse Light Probe icons
Pablo Vazquez [Fri, 11 May 2018 14:02:09 +0000 (16:02 +0200)]
Use Light Probe icons

3 years agoIcon for Light Probes
Pablo Vazquez [Fri, 11 May 2018 13:58:20 +0000 (15:58 +0200)]
Icon for Light Probes

Including Cubemap, Grid and Planar

Designed by @wevon with minor modifications as part of T53840. Thanks!

3 years agoDepsgraph: Fix redundant nodes built when animation shares same action
Sergey Sharybin [Fri, 11 May 2018 13:49:04 +0000 (15:49 +0200)]
Depsgraph: Fix redundant nodes built when animation shares same action

3 years agoParticle mode: Fix memory leak with simple interpolated children
Sergey Sharybin [Fri, 11 May 2018 13:40:14 +0000 (15:40 +0200)]
Particle mode: Fix memory leak with simple interpolated children

3 years agoModifiers: ported UV Project DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 13:28:08 +0000 (15:28 +0200)]
Modifiers: ported UV Project DerivedMesh → Mesh

Reviewers: sybren

Tags: #bf_blender_2.8

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

3 years agoDar manager: Ignore non-particle-edit objects from particle mode
Sergey Sharybin [Fri, 11 May 2018 13:12:24 +0000 (15:12 +0200)]
Dar manager: Ignore non-particle-edit objects from particle mode

3 years agoFix crash going to edit mode of particles with copy on write
Sergey Sharybin [Fri, 11 May 2018 12:54:50 +0000 (14:54 +0200)]
Fix crash going to edit mode of particles with copy on write

We can not rely on edit->psys, it is not set for particle edit,
and there is some logic deeper inside which does different things
dependent on that.

We need to replace those checks with some some HAIR vs. PARTICLES
flag and always set psys pointer.

3 years agoModifiers: ported Screw DerivedMesh → Mesh
Christian Hubert [Fri, 11 May 2018 09:31:21 +0000 (11:31 +0200)]
Modifiers: ported Screw DerivedMesh → Mesh

Reviewers: sybren

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

3 years agoDepsgraph: Remove workaround for scene free
Sergey Sharybin [Fri, 11 May 2018 12:28:03 +0000 (14:28 +0200)]
Depsgraph: Remove workaround for scene free

No functional changes commit ;)

3 years agoRemove debug only code
Sergey Sharybin [Fri, 11 May 2018 12:24:19 +0000 (14:24 +0200)]
Remove debug only code

3 years agoLight Probe type name should be CUBEMAP, not SPHERE.
Pablo Vazquez [Fri, 11 May 2018 11:41:44 +0000 (13:41 +0200)]
Light Probe type name should be CUBEMAP, not SPHERE.

Change requested by @fclem

3 years agoRemove unused functions which will break with copy-on-write
Sergey Sharybin [Fri, 11 May 2018 10:47:27 +0000 (12:47 +0200)]
Remove unused functions which will break with copy-on-write

3 years agoParticle edit: Initial support of edit with copy-on-write
Sergey Sharybin [Fri, 11 May 2018 10:44:43 +0000 (12:44 +0200)]
Particle edit: Initial support of edit with copy-on-write

The idea is that edit mode structure is owned by original object,
and used for drawing. This is a bit confusing, especially since
path cache is also in that structure and needs evaluated object
to calculate cache.

In the future we should split edit data from visualization data,
but that's bigger refactor.

3 years agoParticle edit: Fix missing update after undo
Sergey Sharybin [Fri, 11 May 2018 10:18:37 +0000 (12:18 +0200)]
Particle edit: Fix missing update after undo

Old code was doing draw-time calculations in some cases.
just do the same for now.