blender.git
2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 14 Jun 2018 13:55:51 +0000 (15:55 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/collada/AnimationExporter.cpp
source/blender/collada/AnimationExporter.h
source/blender/collada/ArmatureImporter.cpp
source/blender/collada/ArmatureImporter.h
source/blender/collada/ControllerExporter.cpp
source/blender/collada/ControllerExporter.h
source/blender/collada/DocumentExporter.cpp
source/blender/collada/DocumentImporter.cpp
source/blender/collada/GeometryExporter.cpp
source/blender/collada/GeometryExporter.h
source/blender/collada/MeshImporter.cpp
source/blender/collada/MeshImporter.h
source/blender/collada/SkinInfo.cpp
source/blender/collada/SkinInfo.h
source/blender/collada/collada_utils.cpp
source/blender/collada/collada_utils.h

2 years agoGPU: consistenly use mipmap on/off in all draw modes.
Brecht Van Lommel [Thu, 14 Jun 2018 10:58:30 +0000 (12:58 +0200)]
GPU: consistenly use mipmap on/off in all draw modes.

This is important for good texture paint performance.

2 years agoCleanup: remove legacy GPU pass binding code.
Brecht Van Lommel [Thu, 14 Jun 2018 10:50:19 +0000 (12:50 +0200)]
Cleanup: remove legacy GPU pass binding code.

2 years agoT55479: Tag for update when active texture changes
Jeroen Bakker [Thu, 14 Jun 2018 13:30:06 +0000 (15:30 +0200)]
T55479: Tag for update when active texture changes

2 years agoCleanup: remove last G.main's from Collada code.
Bastien Montagne [Thu, 14 Jun 2018 13:15:51 +0000 (15:15 +0200)]
Cleanup: remove last G.main's from Collada code.

2 years agoT55456 EditMeshMode
Jeroen Bakker [Thu, 14 Jun 2018 06:51:42 +0000 (08:51 +0200)]
T55456 EditMeshMode

- see the face selection color when face is active
- test different masks for active face, finally chosen for no mask at
all.

2 years agoImproved two tooltips
Sybren A. Stüvel [Thu, 14 Jun 2018 10:48:37 +0000 (12:48 +0200)]
Improved two tooltips

Tooltips shouldn't just repeat the information from the label.

2 years agoFix crash on startup in after recent G.main changes.
Brecht Van Lommel [Thu, 14 Jun 2018 11:44:23 +0000 (13:44 +0200)]
Fix crash on startup in after recent G.main changes.

2 years agoCleanup: remove last G.main's in WM code of 2.8.
Bastien Montagne [Thu, 14 Jun 2018 10:42:30 +0000 (12:42 +0200)]
Cleanup: remove last G.main's in WM code of 2.8.

Again, just validating ther usage and using G_MAIN instead.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 14 Jun 2018 10:39:52 +0000 (12:39 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/modifiers/intern/MOD_normal_edit.c
source/blender/windowmanager/intern/wm_files.c

2 years agoCleanup: Remove last G.main's from WM code.
Bastien Montagne [Thu, 14 Jun 2018 10:34:13 +0000 (12:34 +0200)]
Cleanup: Remove last G.main's from WM code.

Was mostly validating valid usages of G.main -> G_MAIN actually.

2 years agoWorkbench: Material colors + settings during sculpting
Jeroen Bakker [Thu, 14 Jun 2018 10:12:06 +0000 (12:12 +0200)]
Workbench: Material colors + settings during sculpting

2 years agoMove call to drw_state_ensure_not_reused() inside the region locked by DST.gl_context...
Clément Foucault [Thu, 14 Jun 2018 10:01:18 +0000 (12:01 +0200)]
Move call to drw_state_ensure_not_reused() inside the region locked by DST.gl_context_mutex.

Currently with a debug build there is a race condition where the mutex is released before the DST structure is reset to 0xFF, meaning when multiple threads are using the DRWManager it can get cleared when the main thread is using it, causing crashes.

Reviewers: fclem, brecht

Reviewed By: fclem

Tags: #bf_blender_2.8

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

2 years agoT55406: Flip Matcap
Jeroen Bakker [Thu, 14 Jun 2018 08:38:17 +0000 (10:38 +0200)]
T55406: Flip Matcap

- Icon represent the flipped matcap in the shading menu
- Added template_icon to display any icon in scale.

2 years agoFix T55470: Add option to not fix polygons' winding to Edit Normals modifier.
Bastien Montagne [Thu, 14 Jun 2018 09:41:12 +0000 (11:41 +0200)]
Fix T55470: Add option to not fix polygons' winding to Edit Normals modifier.

this is actually adding option to add buggy behavior, but.. NPR often
expects buggy behaviors, and its one of the main targets for normal editing.
So think it's reasonable to add that option (disabled by default of
course).

Note that am not really happy with UI, but:
* Not sure where to put it, it's kind of own self-contained area option.
* Don't to make it too much visible, using this should be the exception!

2 years ago3D View: Show view-aligned rotation manipulators
Campbell Barton [Thu, 14 Jun 2018 09:29:38 +0000 (11:29 +0200)]
3D View: Show view-aligned rotation manipulators

2 years agoCleanup: style
Campbell Barton [Thu, 14 Jun 2018 09:37:24 +0000 (11:37 +0200)]
Cleanup: style

2 years agoUI: Make spacers align blocks on area divisions
Clément Foucault [Thu, 14 Jun 2018 09:29:44 +0000 (11:29 +0200)]
UI: Make spacers align blocks on area divisions

This solves the problem of blocks jumping around when changing modes and
center them to the area (in case of only 2 spacers).
Which is (in my own opinion) more aestetically pleasing.

2 years ago3D View: Tweak transform plane manipulator fading
Campbell Barton [Thu, 14 Jun 2018 08:39:36 +0000 (10:39 +0200)]
3D View: Tweak transform plane manipulator fading

The threshold to fade out and hide was too small.

2 years agoWM: increase hot-spot of 3D manipulators
Campbell Barton [Thu, 14 Jun 2018 07:55:58 +0000 (09:55 +0200)]
WM: increase hot-spot of 3D manipulators

Larger hot-spot was disabled for performance,
however without this - clicking on them is too difficult.

2 years ago3D View: increase size of view aligned rotation
Campbell Barton [Thu, 14 Jun 2018 07:40:52 +0000 (09:40 +0200)]
3D View: increase size of view aligned rotation

Minor changes based on user feedback.

- View aligned rotation manipulator overlapped too often
  with axis aligned widgets. Increase size (matching 2.79)
- Offset arrow-heads when combining rotate & translate,
  don't draw the stem since it overlaps with scale.

2 years agoWM: option not to draw arrow manipulator stem
Campbell Barton [Thu, 14 Jun 2018 07:25:55 +0000 (09:25 +0200)]
WM: option not to draw arrow manipulator stem

2 years agoCleanup: rename arrow manipulator 'draw_options'
Campbell Barton [Thu, 14 Jun 2018 07:17:03 +0000 (09:17 +0200)]
Cleanup: rename arrow manipulator 'draw_options'

Rename to 'transform' since this controls interaction.

2 years agoUI: correct HUD zoom resetting
Campbell Barton [Thu, 14 Jun 2018 06:30:46 +0000 (08:30 +0200)]
UI: correct HUD zoom resetting

2 years agoDRW: Fix crash caused by hair transform feedback
Clément Foucault [Wed, 13 Jun 2018 20:20:48 +0000 (22:20 +0200)]
DRW: Fix crash caused by hair transform feedback

Seem to be cause by the lack of proper FBO bound.

2 years ago3D View: make navigation buttons smaller
Campbell Barton [Wed, 13 Jun 2018 19:00:05 +0000 (21:00 +0200)]
3D View: make navigation buttons smaller

Keep orbit large, other buttons are now closer to other icons buttons.

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 13 Jun 2018 17:24:17 +0000 (19:24 +0200)]
Merge branch 'master' into blender2.8

This includes making Eevee match Cycles behavior of inserting an emission
node when linking colors to closures.

2 years agoFix undo group to use human readable name, since this shows in the UI.
Brecht Van Lommel [Wed, 13 Jun 2018 16:38:38 +0000 (18:38 +0200)]
Fix undo group to use human readable name, since this shows in the UI.

2 years agoFix undo of transform after frame change undoing too much.
Brecht Van Lommel [Wed, 13 Jun 2018 16:22:17 +0000 (18:22 +0200)]
Fix undo of transform after frame change undoing too much.

For grouped undo we should not skip the undo push, rather replace the
previous undo push. This way undo goes back to the state after the last
operation in the group.

2 years agoCycles: auto insert emission node when linking color to closure.
Brecht Van Lommel [Wed, 13 Jun 2018 14:29:06 +0000 (16:29 +0200)]
Cycles: auto insert emission node when linking color to closure.

This is convenient for previewing the output of a node, and we agreed
to support this behavior in both Eevee and Cycles.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 13 Jun 2018 16:25:23 +0000 (18:25 +0200)]
Merge branch 'master' into blender2.8

2 years agoWM: check release event for particle edit mode
Campbell Barton [Wed, 13 Jun 2018 16:23:09 +0000 (18:23 +0200)]
WM: check release event for particle edit mode

Caused by drag event.

2 years agoT55456: EditDrawMode
Jeroen Bakker [Wed, 13 Jun 2018 14:47:10 +0000 (16:47 +0200)]
T55456: EditDrawMode

reorganized shader compilation

2 years agoT55456: EditDrawMode
Jeroen Bakker [Wed, 13 Jun 2018 14:46:11 +0000 (16:46 +0200)]
T55456: EditDrawMode

use darker defaults for not active selection mode elements

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 13 Jun 2018 14:42:56 +0000 (16:42 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenloader/intern/readfile.c
source/blender/editors/mesh/editmesh_utils.c
source/blenderplayer/bad_level_call_stubs/stubs.c

2 years agoRevert "T55456: EditDrawMode"
Jeroen Bakker [Wed, 13 Jun 2018 14:34:13 +0000 (16:34 +0200)]
Revert "T55456: EditDrawMode"

This reverts commit da6ed54569d03d18512e46ae08629bf72a592a82.

2 years agoCleanup: get rid of last G.main in BMesh code.
Bastien Montagne [Wed, 13 Jun 2018 14:29:12 +0000 (16:29 +0200)]
Cleanup: get rid of last G.main in BMesh code.

2 years agoCleanup: unused var
Campbell Barton [Wed, 13 Jun 2018 14:16:29 +0000 (16:16 +0200)]
Cleanup: unused var

2 years agoTag object/scene for selection update from operators
Sergey Sharybin [Wed, 13 Jun 2018 13:26:59 +0000 (15:26 +0200)]
Tag object/scene for selection update from operators

Before that depsgraph tagging was done from inside notifier listener in
viewport. This had the following issues:

- If there are no viewports, selection tag was not done. Causing possible
  issues when object becomes visible.

- Required special trickery to detect which data to tag for update.

- Was causing crash when transforming/selecting markers in clip editor.
  This is because selecting marker needed to poke viewport to redraw, since
  selected bundles will be displayed differently in viewport.

2 years agoSilence false positive warning on boolean modifier
Dalai Felinto [Wed, 13 Jun 2018 14:01:41 +0000 (16:01 +0200)]
Silence false positive warning on boolean modifier

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 13 Jun 2018 13:36:24 +0000 (15:36 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/BKE_pointcache.h
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/pointcache.c
source/blender/editors/include/ED_particle.h
source/blender/editors/physics/particle_edit.c
source/blender/editors/physics/particle_edit_undo.c
source/blender/editors/physics/particle_object.c
source/blender/editors/physics/physics_intern.h
source/blender/editors/physics/physics_pointcache.c
source/blender/editors/space_time/space_time.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_generics.c
source/blender/editors/transform/transform_manipulator.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_object_force.c
source/blender/makesrna/intern/rna_sculpt_paint.c
source/blenderplayer/bad_level_call_stubs/stubs.c

2 years agoUI: preset popover buttons in panel headers.
Brecht Van Lommel [Fri, 27 Apr 2018 11:50:26 +0000 (13:50 +0200)]
UI: preset popover buttons in panel headers.

Moves the preset into a menu for the panel header, so it can be changed
without opening the panel and takes up less space. Two remaining issues:

* For long lists the add new preset button can be scrolled off screen.
* We should support showing the name of the chosen preset in the panel
  header, but the current preset system does not support detecting which
  preset is used.

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

2 years agoFix flexible spacer distance
Dalai Felinto [Wed, 13 Jun 2018 13:17:56 +0000 (15:17 +0200)]
Fix flexible spacer distance

Introduced on 0bce173bc7e9bb6d6cac.

2 years agoUI: Make NLA header consistent with dopesheet
Dalai Felinto [Wed, 13 Jun 2018 13:07:02 +0000 (15:07 +0200)]
UI: Make NLA header consistent with dopesheet

2 years agoCleanup: double quotes for non-enum strings
Campbell Barton [Wed, 13 Jun 2018 13:06:32 +0000 (15:06 +0200)]
Cleanup: double quotes for non-enum strings

2 years agoUI: center align 3D view header snap, pivot etc
Campbell Barton [Wed, 13 Jun 2018 13:03:09 +0000 (15:03 +0200)]
UI: center align 3D view header snap, pivot etc

2 years agoUI: Fix clip editor double text-less icon situation
Dalai Felinto [Wed, 13 Jun 2018 13:04:07 +0000 (15:04 +0200)]
UI: Fix clip editor double text-less icon situation

2 years agoCleanup: moar ugly G.main removal...
Bastien Montagne [Wed, 13 Jun 2018 12:26:26 +0000 (14:26 +0200)]
Cleanup: moar ugly G.main removal...

Note that due to RNA get/setters issue, that one may actually add some
G.main usages to the total... But at least it's not hidden anymore in a
very low-level, dark corner of BKE pointcache code!

2 years agoT55456: EditDrawMode
Jeroen Bakker [Wed, 13 Jun 2018 12:21:12 +0000 (14:21 +0200)]
T55456: EditDrawMode

- removed the dithering from the active face

2 years agoMerge branch 'master' into blender2.8
Philipp Oeser [Wed, 13 Jun 2018 12:19:57 +0000 (14:19 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: tool settings access
Campbell Barton [Wed, 13 Jun 2018 12:11:59 +0000 (14:11 +0200)]
Cleanup: tool settings access

2 years agoFix T55467: nodes cant be resized after recent clickdrag change
Philipp Oeser [Wed, 13 Jun 2018 12:03:46 +0000 (14:03 +0200)]
Fix T55467: nodes cant be resized after recent clickdrag change

2 years agoSet minimum blender version as 2.80
Dalai Felinto [Wed, 13 Jun 2018 10:59:39 +0000 (12:59 +0200)]
Set minimum blender version as 2.80

Technically we probably need to do for the current subversion (17).
But the entirely 2.80 series is known to be experimental.

The most important part is to notify people that if they open the 2.80
file in master it will loose data.

2 years agoUI: add back pivot point
Campbell Barton [Wed, 13 Jun 2018 10:55:06 +0000 (12:55 +0200)]
UI: add back pivot point

Was accidentally removed after recent changes.

2 years agoT55456: EditMode Drawing
Jeroen Bakker [Wed, 13 Jun 2018 06:17:14 +0000 (08:17 +0200)]
T55456: EditMode Drawing

- Hide facedots, except when in V3D_ZBUF_SELECT mode
`use_occluded_geometry`
- Different theme (wire_inactive) when not in edge selection mode

2 years agoManipulator: Skip redundant transform updates
Campbell Barton [Wed, 13 Jun 2018 09:59:48 +0000 (11:59 +0200)]
Manipulator: Skip redundant transform updates

Partially address T55458

2 years agoError in recent popover width
Campbell Barton [Wed, 13 Jun 2018 09:57:09 +0000 (11:57 +0200)]
Error in recent popover width

2 years agoUI: remove empty space at the end of headers, tweak start/end spacing.
Brecht Van Lommel [Wed, 13 Jun 2018 09:40:32 +0000 (11:40 +0200)]
UI: remove empty space at the end of headers, tweak start/end spacing.

2 years agoFix 3D view header panning not working with region overlap.
Brecht Van Lommel [Wed, 13 Jun 2018 09:32:46 +0000 (11:32 +0200)]
Fix 3D view header panning not working with region overlap.

2 years agoFix pop-over buttons always getting space for icon
Campbell Barton [Wed, 13 Jun 2018 09:20:50 +0000 (11:20 +0200)]
Fix pop-over buttons always getting space for icon

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 13 Jun 2018 09:11:23 +0000 (11:11 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: swapped X/Y UI_UNIT
Campbell Barton [Wed, 13 Jun 2018 09:10:32 +0000 (11:10 +0200)]
Cleanup: swapped X/Y UI_UNIT

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 13 Jun 2018 09:02:48 +0000 (11:02 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/particle.c

2 years agoCleanup: remove more G.main from BKE area.
Bastien Montagne [Wed, 13 Jun 2018 08:57:10 +0000 (10:57 +0200)]
Cleanup: remove more G.main from BKE area.

2 years agoUI: adjust view navigation layout
Campbell Barton [Wed, 13 Jun 2018 08:51:52 +0000 (10:51 +0200)]
UI: adjust view navigation layout

Button layout now matches T54723.

2 years agoUI: HUD now follows region theming
Campbell Barton [Wed, 13 Jun 2018 07:50:02 +0000 (09:50 +0200)]
UI: HUD now follows region theming

2 years agoDepsgraph: Avoid use of 0 tag flag on build finish
Sergey Sharybin [Wed, 13 Jun 2018 07:49:14 +0000 (09:49 +0200)]
Depsgraph: Avoid use of 0 tag flag on build finish

Use all the explicit tagging. Solves characters being in T-pose after
opening specific scene files.

2 years agoUI: show HUD when region overlap is disabled
Campbell Barton [Wed, 13 Jun 2018 07:27:40 +0000 (09:27 +0200)]
UI: show HUD when region overlap is disabled

2 years agoUI: fix hud panel refresh glitch
Campbell Barton [Wed, 13 Jun 2018 07:21:09 +0000 (09:21 +0200)]
UI: fix hud panel refresh glitch

2 years agoUI: shorten proportional edit name
Campbell Barton [Wed, 13 Jun 2018 07:16:26 +0000 (09:16 +0200)]
UI: shorten proportional edit name

Didn't fit in panel.

2 years agoUI: redo panel layout tweaks
Campbell Barton [Wed, 13 Jun 2018 06:24:56 +0000 (08:24 +0200)]
UI: redo panel layout tweaks

- Don't use compact layout (enum titles were hidden).
- Split-properties to use less vertical space.
- Make panel wider, half width when collapsed.

2 years agoFix region expanding on refresh
Campbell Barton [Tue, 12 Jun 2018 22:29:36 +0000 (00:29 +0200)]
Fix region expanding on refresh

2 years agoUI: adjust header alignment
Campbell Barton [Tue, 12 Jun 2018 20:59:15 +0000 (22:59 +0200)]
UI: adjust header alignment

- User preferences header at the bottom.
- Action header at the top.

Now all editors accessible from the menu have their header at the top,
default layout for the timeline remains at the bottom.

2 years agoUI: Name N-Key toggle to Sidebar
Campbell Barton [Tue, 12 Jun 2018 20:55:53 +0000 (22:55 +0200)]
UI: Name N-Key toggle to Sidebar

2 years agoFix T55376: instanced collection render visibility ignored.
Brecht Van Lommel [Fri, 8 Jun 2018 17:26:46 +0000 (19:26 +0200)]
Fix T55376: instanced collection render visibility ignored.

For physics simulation it's still fuzzy though, but this needs bigger
design for how it works with view layers and visibility.

2 years agoWM: don't show redo hud when unsupported
Campbell Barton [Tue, 12 Jun 2018 20:33:58 +0000 (22:33 +0200)]
WM: don't show redo hud when unsupported

2 years agoWM: hide internal operator settings
Campbell Barton [Tue, 12 Jun 2018 20:00:22 +0000 (22:00 +0200)]
WM: hide internal operator settings

These are set in the interface and aren't useful to show to users.

Other minor changes

- Rename 'Ruler/Protractor' -> 'Ruler'
- Rename Subdivide 'Quad/Tri Mode' -> 'Create N-Gons' (and invert).

2 years agoUI: move auto-merge option to mesh options panel
Campbell Barton [Tue, 12 Jun 2018 19:16:50 +0000 (21:16 +0200)]
UI: move auto-merge option to mesh options panel

This can be used even w/o snap.

2 years agoUI: re-arrange object mode and 3D view buttons
Campbell Barton [Tue, 12 Jun 2018 19:06:54 +0000 (21:06 +0200)]
UI: re-arrange object mode and 3D view buttons

After some consideration we're moving 3D view settings
that impact the 3D view back.

See T55386 for details.

2 years agoFix T55457: Crash after merge faces
Campbell Barton [Tue, 12 Jun 2018 18:43:46 +0000 (20:43 +0200)]
Fix T55457: Crash after merge faces

2 years agoCleanup: add ED_region_panels_layout
Campbell Barton [Tue, 12 Jun 2018 16:38:05 +0000 (18:38 +0200)]
Cleanup: add ED_region_panels_layout

Only had the '_ex' (extended) version.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 12 Jun 2018 16:26:50 +0000 (18:26 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/BKE_anim.h
source/blender/blenkernel/intern/anim.c
source/blender/blenkernel/intern/scene.c
source/blender/editors/armature/pose_edit.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/armature/pose_utils.c
source/blender/editors/include/ED_armature.h
source/blender/editors/object/object_edit.c
source/blender/editors/transform/transform_conversions.c

2 years agoCleanup: moar G.main removal from BKE area.
Bastien Montagne [Tue, 12 Jun 2018 15:57:24 +0000 (17:57 +0200)]
Cleanup: moar G.main removal from BKE area.

2 years agoCleanup: BKE_scene_free should not have to worry about cleaning its usages.
Bastien Montagne [Tue, 12 Jun 2018 15:46:16 +0000 (17:46 +0200)]
Cleanup: BKE_scene_free should not have to worry about cleaning its usages.

This is supposed to be handled by calling code! Henceforce, no need to
call BKE_sequencer_clear_scene_in_allseqs() here, and... no need for
that ugly G.main case. ;)

2 years agoCleanup: no need for extra HUD type check now
Campbell Barton [Tue, 12 Jun 2018 15:38:04 +0000 (17:38 +0200)]
Cleanup: no need for extra HUD type check now

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 12 Jun 2018 15:36:24 +0000 (17:36 +0200)]
Merge branch 'master' into blender2.8

2 years agoWM: remove sloppy region type access
Campbell Barton [Tue, 12 Jun 2018 15:34:44 +0000 (17:34 +0200)]
WM: remove sloppy region type access

Avoid accidentally operating on the wrong region type.

2 years agoWM: rename BKE_regiontype_from_id
Campbell Barton [Tue, 12 Jun 2018 15:26:38 +0000 (17:26 +0200)]
WM: rename BKE_regiontype_from_id

This returns the first as a fallback, causing confusing usage.
Renamed and added a version of the function that doesn't.

2 years agoCleanup: warning, spaces
Campbell Barton [Tue, 12 Jun 2018 15:20:12 +0000 (17:20 +0200)]
Cleanup: warning, spaces

2 years agoCleanup: get rid of global RNG usage in paint stroke code.
Bastien Montagne [Tue, 12 Jun 2018 15:13:23 +0000 (17:13 +0200)]
Cleanup: get rid of global RNG usage in paint stroke code.

2 years agoFix leak of manipulator tooltip timers.
Brecht Van Lommel [Tue, 12 Jun 2018 14:57:01 +0000 (16:57 +0200)]
Fix leak of manipulator tooltip timers.

This was causing performance degradation over time in posing, as the
manipulator recomputes the center locations for every event.

Ref T55442.

2 years agoDepsgraph: remove object tagging hack for render.
Brecht Van Lommel [Tue, 12 Jun 2018 11:49:27 +0000 (13:49 +0200)]
Depsgraph: remove object tagging hack for render.

With copy-on-write it should now all be evaluated correctly in render
resolution, without needing to switch the original data resoluton.

2 years agoCleanup: get rid of global RNG usage in transform code.
Bastien Montagne [Tue, 12 Jun 2018 15:00:07 +0000 (17:00 +0200)]
Cleanup: get rid of global RNG usage in transform code.

2 years agoWM: HUD was disappearing on redo
Campbell Barton [Tue, 12 Jun 2018 14:59:37 +0000 (16:59 +0200)]
WM: HUD was disappearing on redo

2 years agoFix redo panels being added to non-hud regions
Campbell Barton [Tue, 12 Jun 2018 14:55:00 +0000 (16:55 +0200)]
Fix redo panels being added to non-hud regions

2 years agoUI: improve HUD ensure/clear logic
Campbell Barton [Tue, 12 Jun 2018 14:49:52 +0000 (16:49 +0200)]
UI: improve HUD ensure/clear logic

Running operators w/o redo now clears the HUD immediately.

2 years agoParticle: Use loclaized RNG for physics simulation
Sergey Sharybin [Tue, 12 Jun 2018 14:36:43 +0000 (16:36 +0200)]
Particle: Use loclaized RNG for physics simulation

Avoids threading conflicts between multiple particle systems being simulated.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 12 Jun 2018 14:29:07 +0000 (16:29 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/include/ED_view3d.h
source/blender/editors/space_view3d/view3d_draw.c
source/blender/python/intern/gpu_offscreen.c

2 years agoStudioLight: Use texel size as input size
Jeroen Bakker [Tue, 12 Jun 2018 14:18:07 +0000 (16:18 +0200)]
StudioLight: Use texel size as input size

Bettter light distribution for diffuse shading

2 years agoFix T55452: Crash on saving with visible particle system.
Bastien Montagne [Tue, 12 Jun 2018 14:17:05 +0000 (16:17 +0200)]
Fix T55452: Crash on saving with visible particle system.

Missing Main pointer in recent refactor/cleanup of G.main usages...