98e0bd90f4
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).
2018-06-12 22:00:22 +02:00
376bc88dc0
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.
2018-06-12 17:07:18 +02:00
8826a00482
WM: HUD was disappearing on redo
2018-06-12 16:59:37 +02:00
2a3e7fe656
UI: improve HUD ensure/clear logic
...
Running operators w/o redo now clears the HUD immediately.
2018-06-12 16:50:27 +02:00
4bf331c0fc
UI: Initial persistent floating redo panel
...
This is the first step to moving redo out of the top-bar, see: T55039
- Support for floating panels in the ScrArea has been added.
- A new region type RGN_TYPE_HUD is used for floating settings input.
- Only one HUD should be visible at a time.
- Currently HUD regions are only visible
for 3D view and image space types.
- There are currently some remaining glitches with hide/show
that need further investigation.
2018-06-12 10:42:49 +02:00
204c167c72
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/intern/mesh_convert.c
source/blender/editors/interface/interface_eyedropper_color.c
source/blender/editors/object/object_add.c
source/blender/editors/space_image/image_ops.c
source/blender/makesrna/intern/rna_image.c
source/blender/windowmanager/intern/wm_draw.c
2018-06-11 16:02:46 +02:00
78a8d3685b
Cleanup: remove moar ugly G.main usages...
...
BKE_image was an ugly nest, could fix all but the ones from compositor,
so moved ugly G.main there, at least we know where the Evil is that way ;)
2018-06-11 15:40:37 +02:00
a68bed06f6
Merge branch 'master' into blender2.8
2018-06-10 12:11:16 +02:00
d0a16772ad
WM: add macros to check mouse button/gesture/wheel
...
Use to check click/drag,
fixes issue with mouse wheel triggering pie menu.
2018-06-10 12:08:09 +02:00
528dc6440b
Merge branch 'master' into blender2.8
2018-06-08 22:19:39 +02:00
5165d62931
WM: correct recent change to click/drag detection
...
fb1915d870 - caused click/drag events not to be detected.
Now check a key is a mouse or keyboard event.
2018-06-08 22:17:21 +02:00
Dalai Felinto
9d59d20957
DRW: Fix animated material not refreshing
...
This introduces a garbage collection system similar to gpu_texture.
2018-06-08 16:29:33 +02:00
Dalai Felinto
856a79e1fb
Rename: GPU_texture_orphans
2018-06-08 16:20:34 +02:00
97e7d9f90b
Merge branch 'master' into blender2.8
2018-06-08 14:57:17 +02:00
94aa4d1657
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/curve/editcurve_paint.c
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/gpencil/gpencil_utils.c
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_view3d.h
source/blender/editors/interface/interface_eyedropper_depth.c
source/blender/editors/render/render_opengl.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_intern.h
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_utils.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_snap.c
source/blender/python/intern/gpu_offscreen.c
source/blender/windowmanager/intern/wm_files.c
2018-06-08 14:38:57 +02:00
fb1915d870
Prevent wheel causing spurious click/drag events
2018-06-08 14:09:45 +02:00
7b6af843c2
Cleanup: getting rid of G.main.
...
Sometimes one needs a *lot* of changes for a single G.main... :/
2018-06-08 12:17:22 +02:00
4d16d00154
Keymap: continued testing/development (search key)
...
Use Accent/Grave for search, to be more convenient than F-Keys.
This sets F3 back to what it was before.
2018-06-08 10:07:41 +02:00
e3fe8ce00b
WM: backport event/keymap type util from 2.8
2018-06-08 08:46:31 +02:00
30cd35a37b
Keymap: continued testing/development
...
After testing in the studio and extending the event system for
drag events, we've agreed on adjustments to the new keymap,
see: T55162
- Tab: Edit-mode toggle.
- Tab + Cursor Drag: mode switching pie menu.
- Accent/Grave: for 3D view pie menu.
- F3: Search
- 1..3, Shift-1..3: Edit mesh vertex/edge/face toggle.
Other minor changes were made, however they aren't part of the design.
- Ctrl-Shift-S: Image editor Save-As (was F3)
- Ctrl-Alt-R: Repeat history (was F3)
2018-06-07 20:46:12 +02:00
cfc4805455
Merge branch 'master' into blender2.8
2018-06-07 20:41:10 +02:00
8f49299134
WM: fix drag events applying after release
2018-06-07 20:39:17 +02:00
3823287179
Merge branch 'master' into blender2.8
2018-06-07 17:08:55 +02:00
d274c64d22
WM: add support for drag events
...
This allows for a single key to be mapped to both release and drag,
useful for pie menus to share a key with a different action.
2018-06-07 17:06:01 +02:00
8dc33a81b0
Merge branch 'master' into blender2.8
2018-06-07 16:53:31 +02:00
df4525d1d9
Fix key repeat events resetting the click timer
2018-06-07 16:52:40 +02:00
f0815b1322
Merge branch 'master' into blender2.8
2018-06-07 16:45:34 +02:00
863e395ad8
Cleanup: trailing space for windowmanager
2018-06-07 16:43:52 +02:00
cdbda1c3d8
GPUPass: Refactor gpupass caching system to allow fast gpumaterial creation.
...
This is part of the work needed to refactor the material parameters update.
Now the gpupass cache is polled before adding the gpumaterial to the
deferred compilation queue.
We store gpupasses in a single linked list grouped based on their hashes.
This is not the most efficient way but it can be improved upon later.
2018-06-07 12:02:42 +02:00
54f9cd5283
Cleanup: Nuke moar G.main usages...
2018-06-07 11:11:46 +02:00
0ee4785675
Cleanup: get rid of just-added G.main usage.
...
Was just added to ease merging of master, proper code now!
2018-06-06 16:32:09 +02:00
bb7202495a
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/collada/ArmatureExporter.cpp
source/blender/collada/ArmatureExporter.h
source/blender/collada/DocumentExporter.cpp
source/blender/collada/DocumentExporter.h
source/blender/collada/SceneExporter.cpp
source/blender/collada/SceneExporter.h
source/blender/collada/collada.cpp
source/blender/collada/collada.h
source/blender/editors/armature/armature_edit.c
source/blender/editors/armature/editarmature_retarget.c
source/blender/editors/armature/pose_transform.c
source/blender/editors/include/ED_armature.h
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_screen.h
source/blender/editors/io/io_collada.c
source/blender/editors/object/object_transform.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/screen/screen_ops.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_window.c
source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-06 16:25:28 +02:00
48e871ab1d
Cleanup: Nuke moar G.main usages...
2018-06-06 15:50:24 +02:00
274453ef73
Error in recent popover keep_open option
2018-06-06 09:43:03 +02:00
52502ad0a4
UI: WM_OT_call_panel option to keep popovers open
2018-06-06 09:24:51 +02:00
7ff07ddd01
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/windowmanager/intern/wm_files.c
2018-06-05 17:56:18 +02:00
1628a6858e
Fix crash in owmn previous commit.
2018-06-05 17:54:53 +02:00
f0d9dbae0d
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/blendfile.c
source/blender/blenloader/intern/readfile.h
source/blender/blenloader/intern/versioning_250.c
source/blender/blenloader/intern/versioning_260.c
source/blender/blenloader/intern/versioning_270.c
source/blender/blenloader/intern/versioning_legacy.c
source/blender/editors/render/render_shading.c
source/blender/makesrna/intern/rna_movieclip.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/voxeldata.c
2018-06-05 17:02:50 +02:00
481cdb08ed
Cleanup: use new accessors to blendfile path (Main.name).
2018-06-05 16:33:46 +02:00
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
9cd2e4fa3f
Cleanup: quiet warnings w/o Python
2018-06-02 13:10:27 +02:00
b608133075
Fix crash if no tool is set
2018-06-02 13:10:15 +02:00
bfe1d0e0dc
Merge branch 'master' into blender2.8
2018-06-01 18:26:42 +02:00
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
eb1feb9f4a
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/object/object_add.c
source/blender/editors/object/object_select.c
source/blender/editors/space_outliner/outliner_edit.c
2018-05-31 16:21:47 +02:00
16100f8261
Cleanup: get rid of last G.main usages in BKE library code.
2018-05-31 16:04:04 +02:00
81bf9a41e1
Tool System: Utility to set the tool by name
...
Wrapper for the Python operator.
2018-05-31 09:02:43 +02:00
0b6603d9b6
Fix selection randomly failing with border render.
...
We no longer user scissor for 3D viewport drawing, and some selection
code assumed it still. This also cleans up unnecessary scissor test
switching, we only have it temporarily enabled now.
2018-05-30 19:34:12 +02:00
e9cd2fb23b
Keymap: partially implement changes from T55162
...
- Use Tab key for search.
- Number keys switch modes.
- The number of the current mode can open a submode menu
(currently only works for edit-mode)
- Ctrl-Tab, Ctrl-Shift-Tab - cycle workspaces.
2018-05-29 17:52:27 +02:00
b11a1d5da2
UI: support for a popup panel which stays open
2018-05-25 12:55:22 +02:00