Bastien Montagne
4edae3cc2d
Merge branch 'master' into blender2.8
2018-08-04 13:43:10 +02:00
Bastien Montagne
a56ec3dfe3
Fix T56222: Bevel Modifier bug (uninitialized value).
2018-08-04 13:40:38 +02:00
Charlie Jolly
27ffd37c15
Fix GP mirror modifier axis
2018-08-04 09:49:15 +02:00
Antonioya
1ae77fe9c1
Grease Pencil: Set Lock Axis default to Y axis
2018-08-03 21:06:49 +02:00
Antonioya
5470565527
Cleanup: Fix comment
2018-08-03 17:41:20 +02:00
Antonioya
f2a8e55fc5
New grease pencil primitive STROKE
...
This creates a simple stroke with several colors to have a basic structure to start drawing.
2018-08-03 17:37:21 +02:00
Antonioya
7288d4d8c4
Replace wrong aasign material flag to BKE_MAT_ASSIGN_USERPREF
2018-08-03 16:37:07 +02:00
Clément Foucault
fe8dcffd79
GPUShader: Fix warning in release build.
2018-08-03 14:34:05 +02:00
Antonioya
5d4b981bc2
Add missing single user management for grease pencil materials
2018-08-03 13:41:56 +02:00
Antonioya
5fd3d1fda4
Fix T56217: Segment Fault when using the Fill Brush on Blank GP Object
...
The error was in any GP object without layers.
Also added a check to avoid paint in a locked layer.
2018-08-03 10:28:39 +02:00
Bastien Montagne
6c8cc91f81
Fix T56180: Grease Pencil edit mode select menu crash.
...
Note that there are most certainly many other operators that’d need that
same flag... Don’t have time to hunt them down currently, will just fix
as issues are found, for now.
2018-08-03 10:25:06 +02:00
Bastien Montagne
56fd63e1ad
Fix T55791: blender 2.8 crash on redoing 'snap to cursor' with Offset option ON.
...
Many snap_to operators need a fully evaluated depsgraph to run
properly...
2018-08-03 10:17:00 +02:00
Bastien Montagne
cd5ee24656
Operators: add a new flag stating that operator needs access to evaluated data.
...
For now, that flag is only used in redo code, since after undo step
depsgraph is totally empty... We *may* want to add at least an assert in
op calling code too, though?
2018-08-03 10:15:34 +02:00
Bastien Montagne
b5a1e3d471
Depsgraph: add helper to ensure a given scene/view_layer graph is up-to-date.
...
Since that call make the graph active, it should only be used in active
editing context aware code (i.e. essentially, operators).
2018-08-03 10:13:33 +02:00
Clément Foucault
f55863acd4
DRW: Augment Debug messages
2018-08-03 09:49:31 +02:00
Clément Foucault
fa0f938b11
Eevee: Fix assert with hair drawing
...
This remove unused clip_block when not needed and the useless ubo bind that
were put there for the sake of not crashing.
2018-08-03 09:49:31 +02:00
Campbell Barton
3eab49dd36
Icons: add particle brush icons
2018-08-03 11:43:50 +10:00
Clément Foucault
2a8413a0dd
Eevee: Don't show probe display when not using scene lighting
...
The display is broken otherwise.
2018-08-02 21:12:08 +02:00
Clément Foucault
9887b32e73
Eevee: Fix missing UBO bind.
2018-08-02 20:52:07 +02:00
Antonioya
836db3aee8
Add Assign Material option to Special menu (W key)
...
Also some renames and cleanups.
2018-08-02 19:35:29 +02:00
Antonioya
45751065c0
Add list of color to Assign color operator
...
It's more clear for user to see the name of the color
2018-08-02 19:21:23 +02:00
Clément Foucault
acdb136dce
DRW: Add UBO binding checking routine.
2018-08-02 18:33:49 +02:00
Clément Foucault
e7adf1dfb0
Cleanup: Fix compilation warnings.
2018-08-02 18:33:49 +02:00
Clément Foucault
bd7ab6b989
DRW: Cleanup: Fix header naming.
2018-08-02 18:33:49 +02:00
Clément Foucault
8f6ff3adfa
GPUShader: Add name for debugging & identifying shaders.
2018-08-02 18:33:49 +02:00
Clément Foucault
3578212e46
Eevee: Fix missing UBO binds.
...
Some of them are unecessary and should be removed from the shader instead.
But for now we need a quick fix for the crashes happening on some platforms.
See T55475.
2018-08-02 18:33:49 +02:00
Antonioya
ce551ada92
Fix missing type for material arry
...
This function was called by RNA Api and had grease pencil object type missing.
2018-08-02 18:03:01 +02:00
Antonioya
909556aa26
Fix wrong RNA Api parameter definition
2018-08-02 17:45:32 +02:00
Bastien Montagne
9914c05bd7
Depsgraph: fix some DEG queries crashing with new, empty graph.
...
Calling code is responsible to check on NULL pointers here, or ensure
is does have a fully built and evaluated depsgraph, but this should
never crash in DEG queries themselves.
2018-08-02 17:17:04 +02:00
Bastien Montagne
771973869d
Fix assert in UI string trimming code when we have 'protected' right part.
2018-08-02 16:39:15 +02:00
Campbell Barton
f36855f0fd
UI: show all particle brush settings in topbar
...
Also show particle brush in tool-properties panel.
2018-08-02 22:10:38 +10:00
Sergey Sharybin
200212079d
Subsurf: Better crease which represents sharp edges
...
Enabled infinite sharp patches for topology refiner and evaluator,
which allows to have sharp edge at first subdivision level.
Also tweaked crease export from Blender to OpenSubdiv to have more
artistic control over the whole 0..1 range.
2018-08-02 12:24:55 +02:00
Campbell Barton
3a93314753
Tool System: initial particle system support
2018-08-02 19:27:26 +10:00
Campbell Barton
d79df6c0bc
Tool System: sync changes from changes to brushes
...
Changing a brush now updates the tool.
2018-08-02 18:18:53 +10:00
Campbell Barton
d3c387d605
Merge branch 'master' into blender2.8
2018-08-02 17:52:22 +10:00
Campbell Barton
cb6d7cb0b2
RNA: make particle enum public
2018-08-02 17:49:03 +10:00
Joshua Leung
503866c681
Fix T56199: Crash on Annotation in (VSE) Image Preview
...
In some cases (e.g. using old userpref settings/keymaps)
it was possible to trigger a crash when the wrong GP/Annotation
operators were triggered in the wrong contexts (e.g. using
the old GPENCIL_OT_paint in annotation-only contexts like
all the 2D editors).
This commit resolves several issues that were caused by sloppy
code-churn + features that had been hacked on.
2018-08-02 16:35:43 +12:00
Joshua Leung
0fdd058991
Dev Tooling: Instrument motion path calculation operator (for bones) to collect timing data
...
This will be useful for checking on the progress of our optimisation
efforts, and to generate some nice stats for later.
2018-08-02 15:04:58 +12:00
Pablo Vazquez
ab49b7d739
UI: Slightly larger action zone for corner resizing
...
Pretty minor, from 0.6 to 0.8, but the improvement is noticeable
especially when using a stylus, without overlapping too much with
the buttons and dropdowns in headers.
2018-08-02 01:26:58 +02:00
Campbell Barton
918288138d
Cleanup: warnings, trailing space
2018-08-02 08:26:57 +10:00
Clément Foucault
504454ee5e
GPUMaterial: Normal Map Node: Make default inputs interactives
2018-08-01 22:08:36 +02:00
Clément Foucault
48e661e05d
GPUMaterial: Fix assert when shader failed to compile.
2018-08-01 22:08:36 +02:00
Clément Foucault
e8dd5e5cc6
GPUMaterial: Make Mapping node use UBO storage
...
This means tweaking parameter is now interactive and does not need to
recompile the shaders.
2018-08-01 22:08:36 +02:00
Clément Foucault
ad64cb6344
GPUMaterial: Make Localize tree live longer
...
This is in order to reference the localized node->storage when populating
the UBO data.
2018-08-01 22:08:36 +02:00
Clément Foucault
4510f30026
GPUMaterial: Fix nearest sampling
...
texelFetch return vec4(0.0) if the target pixel is outside the texture
rect. So we mimic the default repeate mode that we have for linear
interpolation.
Fix T56156 Mapping-Node doesn't work
2018-08-01 22:08:36 +02:00
Clément Foucault
c6f55fb0db
GPUUniformBuffer: Fix bad memcpy error catched by asan
...
We need to copy the size of the gputype not the padded type.
2018-08-01 22:08:36 +02:00
Sergey Sharybin
86270b60db
Subsurf: Evaluate all UV layers
...
Before that it was only first UV layer which was properly evaluated,
the rest were ignored. Now all layers are being properly handled.
2018-08-01 18:43:03 +02:00
Sergey Sharybin
5b3b0ed54f
Subsurf: Add API to provide vertex sharpness
...
Currently unused, added for the future and API completeness.
2018-08-01 18:42:59 +02:00
Sergey Sharybin
4fe14d6a26
Subsurf: Support subdivision of mesh with just loose elements
2018-08-01 18:42:59 +02:00
Sergey Sharybin
63058490a3
Subsurf: Cleanup, remove unused mappings and topology queries
2018-08-01 18:42:59 +02:00