Brecht Van Lommel
a247b53084
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3732
2018-09-27 15:36:35 +02:00
Campbell Barton
abe36478c6
3D View: add clip argument to win_to_3d_on_plane
2018-09-20 12:42:00 +10:00
Campbell Barton
c9df0ea147
3D View: add a simple un-clipped win_to_ray
2018-09-20 12:00:02 +10:00
Campbell Barton
de32dc6b27
Cleanup: rename 3D view ray calculation functions
...
Using near far and optionally clipping planes is
involved and not needed in many cases.
Rename so a simpler version of this function can be added.
2018-09-20 11:47:17 +10:00
Campbell Barton
470407ec3b
3D View: point-on-plane from screen location utility
2018-09-20 11:24:13 +10:00
Campbell Barton
5bb11cfde2
UI: split theme draw style into separate field
...
Was using UI_BLOCK_LOOP to control draw style,
this meant we couldn't use popup theme colors for cases
where it the interface has the same purpose as a popup but happens
not to use this flag.
2018-09-11 10:56:08 +10:00
Campbell Barton
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
Campbell Barton
7ec1a56a41
RNA: avoid redundant property lookups in UI API
2018-08-24 11:44:28 +10:00
Campbell Barton
53527ac10f
Cleanup: use EDBM prefix
2018-08-22 15:23:28 +10:00
Campbell Barton
b993e8a17a
Cleanup: use boolean argument
2018-08-14 10:42:04 +10:00
Campbell Barton
dbd79c097c
WM: Add operator property poll callback
...
This allows operators to filter out properties from the
auto-generated draw functions.
Some custom draw functions can move to using this.
2018-07-26 11:53:53 +10:00
Stefan Werner
bdda0964e0
Compositor: Cryptomatte compositing node.
...
This patch adds a new matte node that implements the Cryptomatte specification.
It also incluces a custom eye dropper that works outside of a color picker.
Cryptomatte export for the Cycles render engine will be in a separate patch.
Reviewers: brecht
Reviewed By: brecht
Subscribers: brecht
Tags: #compositing
Differential Revision: https://developer.blender.org/D3531
2018-07-18 13:03:34 +02:00
Philipp Oeser
8c957468bc
Keymap: dope-sheet hotkey to change falloff
2018-07-13 09:05:41 +02:00
Campbell Barton
9856dd9fec
Cleanup: right shift
2018-07-09 06:38:07 +02:00
Campbell Barton
b88e51dd55
Cleanup: use bool for poll functions
2018-07-02 11:51:31 +02:00
Campbell Barton
ddee0931b8
RNA: use bool for boolean RNA types
...
We were using int's for bool arguments in BKE,
just to avoid having wrapper functions.
2018-07-01 15:57:59 +02:00
Campbell Barton
bdc1108e8c
Cleanup: remove unused context arg to menu
2018-06-30 12:31:53 +02:00
Campbell Barton
a42fd3de5d
UI: Add 'interface_query.c'
...
Interface files are increasingly mixing up too much functionality,
add a file only to handle queries.
More functions can be moved/added here.
2018-06-30 10:49:04 +02:00
Campbell Barton
af36dd4664
Cleanup: trailing newlines
2018-06-29 08:02:49 +02:00
Campbell Barton
f8a3636374
UI: alternate fix for empty context menu
...
block and layout could be NULL and checking this everywhere
wasn't practical.
Instead of lazy initializing, add UI_popup_menu_end_or_cancel
which cancels empty popup menus.
2018-06-23 10:31:10 +02:00
Campbell Barton
a5f046f449
Cleanup: rename 3D cursor calculation vars
2018-06-22 12:55:15 +02:00
Bastien Montagne
f61c30f804
Cleanup: get rid of last G.main in BMesh code.
2018-06-13 16:29:12 +02:00
Bastien Montagne
5ff1d845ea
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!
2018-06-13 14:28:05 +02:00
Bastien Montagne
2788202417
Cleanup: moar G.main removal from BKE area.
2018-06-12 17:57:24 +02:00
Bastien Montagne
ec4ce908db
Fix T55452: Crash on saving with visible particle system.
...
Missing Main pointer in recent refactor/cleanup of G.main usages...
2018-06-12 16:17:05 +02:00
Bastien Montagne
be57cf9b2a
Cleanup: remove moar G.main from BKE area.
2018-06-12 12:53:27 +02:00
Bastien Montagne
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
Bastien Montagne
8055ed2741
Cleanup: remove some G.main usages...
2018-06-11 12:15:14 +02:00
Campbell Barton
2e14b7fb97
RNA: remove Layout.introspect
...
This was added as an experiment to extract information for docs
but this was never all that useful for its intended purpose.
2018-06-09 18:55:51 +02:00
Bastien Montagne
638de72277
Cleanup: remove some G.main usages.
2018-06-09 15:17:04 +02:00
Bastien Montagne
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
Bastien Montagne
b3a7a75a26
Cleanup: remove moar G.main usages.
...
Notes:
* Really need to address RNA setters case, end up adding way too much
G.main here these days... :/
* Added Main pointer into bAnimContext, helps a lot in anim code ;)
2018-06-07 12:48:29 +02:00
Bastien Montagne
54f9cd5283
Cleanup: Nuke moar G.main usages...
2018-06-07 11:11:46 +02:00
Campbell Barton
44505b38df
Cleanup: strip trailing space in editors
2018-06-04 09:31:30 +02:00
Campbell Barton
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
Bastien Montagne
051e186d5c
Cleanup: some more G.main removal from editor code.
2018-06-01 17:08:38 +02:00
Bastien Montagne
cfea9c261c
Cleanup: Remove G.main from some editor files.
2018-05-31 18:23:20 +02:00
Bastien Montagne
28369f725c
Cleanup: remove G.main from BKE object
...
Had to add some G.main to modifiers, but in 2.8 we do not need that
anymore, so it's not that bad! ;)
2018-05-31 12:27:47 +02:00
Campbell Barton
18c12803bd
Edit Mode: add success return value
...
Also remove fix for T6614, since BKE_object_obdata_is_libdata
no longer checks proxy.
2018-05-30 08:41:06 +02:00
Campbell Barton
d02335a195
3D View: add pixelsize function w/o UI scale
2018-05-25 10:00:51 +02:00
Campbell Barton
8d9faf840b
3D View: remove poll 3D view for copy/paste
...
These operators only need selected objects.
2018-05-24 16:40:33 +02:00
Campbell Barton
9636cab009
Undo System: remove nested edit-mode undo calls
...
Regression in recent undo system changes,
This caused T55048.
When each mode had its own undo stack it was important
to initialize it when entering edit-mode.
2018-05-15 10:10:48 +02:00
Campbell Barton
046904e3fc
Cleanup: split rotation_from_view
...
Add a function that takes only a quat, instead of the 3D view.
Allows for using non-view orientations.
2018-05-06 18:32:18 +02:00
Campbell Barton
84474b0171
Object Snap: add object & matrix to view ray cast
...
Some snap functions already exposed this.
2018-05-06 15:56:09 +02:00
Gaia Clary
ff839fb6c1
Fix: D3160 Propose to use proper typedefs to avoid confusion
...
Differential Revision: https://developer.blender.org/D3160
2018-04-20 15:02:11 +02:00
Campbell Barton
0f2efce6c5
Cleanup: remove bad casts
2018-04-15 11:57:49 +02:00
Campbell Barton
c12d976020
Cleanup: ED_armature naming
...
- Wasn't clear which functions handle edit-bones.
- Mixed both ebone and edit_bone in names.
- Didn't use ED_armature_* prefix for public API.
See P655 to apply to branches.
2018-04-15 11:50:53 +02:00
Campbell Barton
c963488b5e
Pose Mode: pass object to mode enter/exit
...
Also add lower level mode exit function
2018-04-11 09:21:01 +02:00
Campbell Barton
32339a56f1
Cleanup: minor changes to pose-mode switching API
...
Prepare for multi-object pose mode
2018-04-11 08:53:59 +02:00
Campbell Barton
f55adabb3e
Cleanup: remove unused flag
2018-04-10 20:13:31 +02:00