Jeroen Bakker
c17ba4a903
T55550: Workbench Shadows are incorrect in first draw cycle
...
Shadows uses the old location for light_direction. Maybe a merge
conflict.
2018-06-20 12:29:09 +02:00
Pablo Vazquez
84c2ef0eaf
UI: Use chevrons for number sliders, pulldowns and popovers
...
In the future popovers/pulldowns should have different indicators
Patch by William Reynish and Clement Foucault
2018-06-20 12:24:24 +02:00
Bastien Montagne
20788e1747
Cleanup: moar G.main removal.
...
Nice trick from blender2.8, we now can get active scene from active
window of windowmanager!
2018-06-20 11:53:30 +02:00
Campbell Barton
edb80a801d
Fix crash activating the HUD w/o an active region
2018-06-20 11:43:10 +02:00
Bastien Montagne
8b673fc75f
Cleanup: get rid of last non-thread-safe BLI_frand random generator func.
2018-06-20 11:30:25 +02:00
Bastien Montagne
d97ee0b06a
Cleanup: get rid of last BLI_frand usage.
2018-06-20 11:30:25 +02:00
Bastien Montagne
1b2a2e0862
Cleanup: use new BKE_mesh_iterator foreach_mapped helpers in WPaint gradient code.
2018-06-20 11:30:25 +02:00
Campbell Barton
f58fa57b83
UI: fix "Edit Source" operator
2018-06-20 11:13:07 +02:00
Campbell Barton
6d21450a61
Revert "UI: fix "Edit Source" operator"
...
This reverts commit 109dbab593 .
Accidental changes applied
2018-06-20 11:12:18 +02:00
Campbell Barton
109dbab593
UI: fix "Edit Source" operator
2018-06-20 11:10:08 +02:00
Campbell Barton
b661a4d663
Merge branch 'master' into blender2.8
2018-06-20 11:09:07 +02:00
Sergey Sharybin
8763a8fd4b
Particle edit: Fix missing hair in edit mode for new particle systems
...
Need to get away from thosae update flags in original datablocks.
2018-06-20 11:05:52 +02:00
Campbell Barton
d4519f54b3
UI: only show "Edit Translations" when addon used
2018-06-20 10:45:03 +02:00
Campbell Barton
570f3e6719
Object Mode: enable mode locking by default
...
This is meant to be default behavior for 2.8, see T55246
2018-06-20 10:18:53 +02:00
Campbell Barton
df2d05b203
Outliner: add object mode switching to RMB menu
2018-06-20 10:14:04 +02:00
Campbell Barton
9f9756ec35
Cleanup: strip space
2018-06-20 10:14:04 +02:00
Sybren A. Stüvel
8b9712faeb
Fix T55540 Add foreachMappedXXX equivalent API for evaluated meshes
2018-06-20 10:03:50 +02:00
Jeroen Bakker
e3052ecb0d
Studiolight: removed raise condition
...
Happened when deleting many studiolights at the same time when the
previews were still beging calculated in the background.
Added a free function callback that is filled when the preview is being
generated. This free function will then kill the preview job
This patch also removes icons that are not valid anymore so the user
cannot accidentally render an icon where the studiolight is invalid.
In the end we should use a add/remove function in the studiolight as
currently icons are recalculated too much.
2018-06-20 09:29:40 +02:00
Campbell Barton
91c0f17a47
Missed last commit
2018-06-20 07:27:35 +02:00
Campbell Barton
dc13e0d7dc
Cleanup: default emboss=off for outliner buttons
...
Also use use braces for code blocks and reduce right-shift.
2018-06-20 07:14:19 +02:00
Bastien Montagne
d44c40d91c
Cleanup: some more valid G.main usages moved to G_MAIN.
2018-06-19 19:30:47 +02:00
Bastien Montagne
9c20de8998
Merge branch 'master' into blender2.8
2018-06-19 19:25:44 +02:00
Bastien Montagne
0a8af46707
Final cleanup of G.mains in render area.
2018-06-19 19:25:06 +02:00
Campbell Barton
29d7358ff6
UI: fix ctrl wheel while over the opposite side
2018-06-19 19:22:23 +02:00
Bastien Montagne
63f31e466a
Cleanup: names of WPaint gradient data structs.
...
Those actually never had anything to do with DM... Just used WP prefix
instead!
2018-06-19 19:15:11 +02:00
Bastien Montagne
cc3c91c27f
Cleanup: remove DerivedMesh from WPaint Gradient tool code.
...
Name cleanup to follow.
2018-06-19 19:15:11 +02:00
Bastien Montagne
db0563e995
Fix re-entrant calls in some cases of mesh_evaluated generation.
...
`mesh_get_eval_final` and friends could call `mesh_build_data`, which in
paint/sculpt mode would call `BKE_sculpt_update_mesh_elements` which
would call `mesh_get_eval_final`... ugly!
2018-06-19 19:15:11 +02:00
Campbell Barton
44611ab860
UI: fix Ctrl-Wheel to change button values
2018-06-19 18:36:30 +02:00
Bastien Montagne
1292aae5c0
Correction to previous commit.
...
There is no guarantee that given ob pointer is not also an evaluated one
here...
2018-06-19 18:29:40 +02:00
Bastien Montagne
5372da0121
ModStack: Fix broken object_get_datamask helper.
...
Would compare evaluated ob pointer to original one...
Found while investigating some errors in incomming cleanup, but this was
probably generating lost of other issues in some cases...
2018-06-19 18:25:30 +02:00
Campbell Barton
5b227c420b
Fix animation player drawing wrong size
2018-06-19 18:03:08 +02:00
Bastien Montagne
61af6b83e6
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/sculpt_paint/paint_image_proj.c
2018-06-19 16:49:54 +02:00
Campbell Barton
750a78be9c
3D View: improve selection locking
...
Locked selection would still occlude with objects which could not be
selected.
2018-06-19 16:43:01 +02:00
Jeroen Bakker
0116c95d4c
Studiolight: Temp Mutex issue
...
This is a temp fix for a better system.
Currently the studiolights can be referenced by a WM_job and being freed
via the API. This can happen when removing a studiolight via the
interface.
As the studiolight has no relation with the job, it is hard to detect if
it is still being used. I tried with a Mutex and a Thread Queue but they
were failing.
So the current temp fix is to keep the studiolights in memory until you
close blender. This Must be fixed ASAP! I added this fix so normal cases
can workish.
2018-06-19 16:37:23 +02:00
Bastien Montagne
b5893b1ba3
Fix (unreported) passing CDLayer 'ID' instead of bitflag to a cdlayer mask!
...
Probably harmless, since I bet CD_ORIGINDEX is nearly always generated,
but still...
2018-06-19 16:25:24 +02:00
Brecht Van Lommel
86c1cad1cf
Fix missing render slots bugs after recent changes.
2018-06-19 16:19:49 +02:00
Campbell Barton
7c3ecbf040
Correct rigidbody stub
2018-06-19 16:18:23 +02:00
Campbell Barton
1c6ca9dc90
Fix animation player
2018-06-19 16:13:23 +02:00
Bastien Montagne
fbae373db5
Cleanup: remove ref to dm in names in projpaint struct.
2018-06-19 15:55:45 +02:00
Bastien Montagne
650bc17c1e
Remove derivedmesh from 3DView texture/projection paint.
...
Pretty straightforward changes. Name cleanup to follow in a separated
commit.
2018-06-19 15:55:45 +02:00
Sybren A. Stüvel
96e6fd3b60
Remove rigid body from rbw->group when deleting
...
I moved some code from ED_rigidbody_object_remove() to
BKE_rigidbody_remove_object(), so that calling the latter doesn't leave
the object in rbw->group (causing a crash later on when rebuilding the
depsgraph).
2018-06-19 15:40:25 +02:00
Sergey Sharybin
d8f9ec1547
Particles: Support changing modifiers during particle edit mode
...
The idea is to only use pointers to particles in original object when
creating an edit structure. The derived mesh we get from evaluated
object.
The rest of the commit is just keeping pointers in sync.
2018-06-19 15:28:33 +02:00
Sergey Sharybin
95306a4d19
Particles: Use utility function to copy particles
2018-06-19 15:28:33 +02:00
Sergey Sharybin
aa3f0b0998
Particles: Add utility function to copy particles from one system to another
2018-06-19 15:28:33 +02:00
Campbell Barton
92c519ff17
Blender Version Bump
...
Without this, render slots aren't added.
2018-06-19 14:50:39 +02:00
Jeroen Bakker
ce0a87a208
Revert: EditMode Inactive edge drawing
...
Did it manually as there was some refactoring done that has value
2018-06-19 14:32:52 +02:00
Sybren A. Stüvel
92823275af
Fixed rigid body simulation randomly stopping
...
This was caused by a floating point comparison using ==, instead of using
compare_ff_relative().
2018-06-19 14:22:48 +02:00
Jeroen Bakker
4b5f3690bb
Missed warning in previous commit
2018-06-19 14:07:21 +02:00
Jeroen Bakker
1b972a38fe
Lookdev: Renamed RNA
...
studiolight_background => studiolight_background_alpha
Removed "Show" from the label
2018-06-19 14:04:51 +02:00
Jeroen Bakker
de748bbedf
Studiolight: Background Generation of icons
2018-06-19 14:04:51 +02:00