Commit Graph

62037 Commits

Author SHA1 Message Date
Campbell Barton 80d86f303a UI: support property split for 'prop_search' 2018-06-05 08:56:14 +02:00
Dalai Felinto 17e9870221 DRW: Fix crashes with instanced data
Problem introduced on 101c277e3d.
2018-06-04 19:17:29 +02:00
Campbell Barton da53c3f020 Merge branch 'master' into blender2.8 2018-06-04 18:50:14 +02:00
Campbell Barton 58e8c71cbd Cleanup: strip ghost trailing space 2018-06-04 18:47:57 +02:00
Germano Cavalcante c8af234f85 Fix T55325: Revert "Always get a reference point when snapping with the projected elements option enabled."
This reverts commit 0864a4c1ea.

That way it's best for retopology.
2018-06-04 13:33:19 -03:00
Campbell Barton 84becb870f Merge branch 'master' into blender2.8 2018-06-04 17:58:07 +02:00
Campbell Barton 747534af00 Particle System: move data creation into RNA update
Relying on evaluation to initialize data causes issues w/ 2.8.
2018-06-04 17:55:19 +02:00
Brecht Van Lommel ce5e9b599c Fix Python UI error with Eevee and hemi lamps. 2018-06-04 17:36:02 +02:00
Brecht Van Lommel 784a3ccf79 Fix hang rendering with motion blur. 2018-06-04 17:36:02 +02:00
Clément Foucault 101c277e3d Workbench: Shadows: Fix cap being clipped by far plane.
This was the last remaining problem with shadow volumes (that I know of).

Only extrude until we hit the far plane.
2018-06-04 17:33:34 +02:00
Campbell Barton 349d416949 Tool System: refresh tools after undo 2018-06-04 16:41:03 +02:00
Sergey Sharybin 18e8350cd1 Cleanup: Hopefully more clear name 2018-06-04 16:22:36 +02:00
Clément Foucault bda0175984 DRW: Fix leak from the wireframe drawing. 2018-06-04 16:04:18 +02:00
Clément Foucault 570804882d Wireframe: Lower line thickness and front color blending. 2018-06-04 16:04:18 +02:00
Campbell Barton 4b5670ac11 Cleanup: redundant headers 2018-06-04 16:03:52 +02:00
Sergey Sharybin 3b4c7a8c9b Weight paint: Use helper function to get original mesh
Makes it one line to get needed mesh, no code duplication. And can easily
update asserts and tighten the nuts.
2018-06-04 15:49:11 +02:00
Sergey Sharybin 0e8edbbc01 Add utility functions to get different "levels" of evaluated/original mesh 2018-06-04 15:48:37 +02:00
Sergey Sharybin 2b22a61152 Depsgraph: Only store original mesh pointer for mesh object 2018-06-04 15:24:41 +02:00
Campbell Barton 52f9023fbf Fix weight paint crash
The PBVH was referencing runtime custom data which was freed on refresh.
2018-06-04 15:18:48 +02:00
Sergey Sharybin 07f0046203 Fix crash when making objects to share same mesh
Make it more reliable and predictable way of getting pointer to
an original mesh which came from copy-on-write engine.

Related change: made it (hopefully) more clear name for flags.
2018-06-04 15:17:16 +02:00
Clément Foucault 1dc31f5b98 GPU: Fix missing case of new radeon on xorg.
This was causing issue with shader compilation.
2018-06-04 15:15:00 +02:00
Clément Foucault e47e60a9b9 Workbench: Shadows: Fix the remaining fail case.
Non-manifold geom was producing inverted result when the camera was inside
the shadow volume.

When rendering non manifold geometry with the depth fail method, we need to
emit the cap as if it was the same geometry with a virtual thickness.

Another way to view it is to imagine having a set of non-manifold geometry
all facing the light.

So for every tri we emit a front cap oriented toward the light and the
back cap pointing away from it (whatever the actual orientation of the tri).

Extrusion pass stay the same as the depth pass method (double the increment
if it's a manifold edge).
2018-06-04 15:15:00 +02:00
Sergey Sharybin 736a84ec66 Cleanup: Use proper type for original ID pointer
Helps debugging, no need to cast in a debugger.
2018-06-04 14:14:14 +02:00
William Reynish acb5bbf9b2 UI: use subpanels for Cycles, render, scene, object, particle, curves. 2018-06-04 13:44:23 +02:00
Bastien Montagne f430f14df4 Merge branch 'master' into blender2.8 2018-06-04 12:48:03 +02:00
Bastien Montagne 7277f8973b Fix T55260: load Text File with Python from GUI Button results in 0 User
Let's just always ensure user_one when loading text from operator...
2018-06-04 12:46:59 +02:00
Campbell Barton c2ff37455e Fix selecting bones
Own error w/ recent USE_OBJECT_MODE_STRICT
2018-06-04 12:39:10 +02:00
Campbell Barton 95011f6d48 Merge branch 'master' into blender2.8 2018-06-04 09:39:04 +02:00
Campbell Barton 44505b38df Cleanup: strip trailing space in editors 2018-06-04 09:31:30 +02:00
Campbell Barton 0911acb5cf Merge branch 'master' into blender2.8 2018-06-04 09:11:45 +02:00
Campbell Barton 6654e109df Cleanup: strip trailing space in GPU module 2018-06-04 09:09:12 +02:00
Campbell Barton 5b64301834 Merge branch 'master' into blender2.8 2018-06-04 09:06:14 +02:00
Campbell Barton 7719c11006 Cleanup: strip trailing space in Python module 2018-06-04 08:54:40 +02:00
Campbell Barton 854db8951b Cleanup: strip trailing space in bmesh module 2018-06-04 08:49:47 +02:00
Brecht Van Lommel d7c2b78822 UI: add subpanel support.
In the Python API, any panel becomes a subpanel by setting bl_parent_id
to the name of the parent panel. These subpanels can contain advanced or
less commonly used settings.
2018-06-03 21:30:35 +02:00
Campbell Barton 81dbf08eb4 Merge branch 'master' into blender2.8 2018-06-03 17:09:07 +02:00
Campbell Barton 38eb91c848 Cleanup: correct variable name, doxy sections 2018-06-03 17:06:13 +02:00
Clément Foucault 25ff7a4f2a DRW: Hair: Add additionnal subdivision smoothing support.
Only use catmull-rom interpolation for now. It's smoother and does not
exhibit artifacts.
2018-06-03 16:45:03 +02:00
Clément Foucault 06dd89b0ca GPUTexture: Fix memleak in orphaned texture management. 2018-06-03 16:45:03 +02:00
Campbell Barton e657a4af13 Merge branch 'master' into blender2.8 2018-06-03 15:20:11 +02:00
Clément Foucault 4c4eb1ce20 Workbench: Fix memleaks. 2018-06-03 15:26:53 +02:00
Clément Foucault d0f7ab27a8 Wireframe: Optimization for intel GPUs.
Intel GPU take more advantage of the geometry shader than other vendors.

Using a simple geom shader approach in this case is more performant.
2018-06-03 15:26:37 +02:00
Campbell Barton 335b193336 Cleanup: add argument names to screen callbacks 2018-06-03 15:11:31 +02:00
Clément Foucault 778a19a13a DRW: Fix hair disapearing if emitter is culled. 2018-06-03 12:36:03 +02:00
Clément Foucault 32c5972653 Workbench: Rework hair support.
Now hairs are shaded properly in workbench and support texturing.

I also added a 10% random normal direction per hair to have a bit more
variation in the shading. This is hardcoded for now.
2018-06-03 12:36:03 +02:00
Campbell Barton 38bf3b8d23 Merge branch 'master' into blender2.8 2018-06-03 11:24:57 +02:00
Campbell Barton 6221180963 Cleanup: remove blockscale & handler
Replace with link_flag, currently unused,
needed for dynamic space types which is planned.
2018-06-03 11:12:50 +02:00
Campbell Barton c55e90da4c Cleanup: -Wswitch warning 2018-06-02 21:38:31 +02:00
Clément Foucault 6c6c4da718 GPU: Fix texture being freed in threads without ogl context bound.
This is a dirty fix. A bit more cleaner approach would be to check if a
context is bound and delay the deletion only in this case.
Also we may want to do this orphan deletion at some other places than
wm_window_swap_buffers.
2018-06-02 21:16:40 +02:00
Clément Foucault bc6358a580 DRW: Add uniform name recording in debug mode. 2018-06-02 21:16:40 +02:00