Sergey Sharybin
ba1197fe5e
Depsgraph: Simplify some workarounds and make API closer to final
2017-11-07 16:36:25 +01:00
Bastien Montagne
91af8f2ae2
Merge branch 'master' into blender2.8
...
Conflicts:
intern/cycles/device/device.cpp
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/material.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/util/ed_util.c
source/blender/windowmanager/intern/wm_files_link.c
2017-11-06 18:02:46 +01:00
Bastien Montagne
66a6d160fe
Rename ID_IS_LINKED_DATABLOCK to ID_IS_LINKED.
...
This makes code closer to id_override/assent-engine ones, which
introduce a new type of linked data, and hence reserve
ID_IS_LINKED_DATABLOCK to real linked datablocks.
2017-11-06 17:17:10 +01:00
Campbell Barton
58dc114615
Merge branch 'master' into blender2.8
2017-11-06 00:12:28 +11:00
Campbell Barton
18d7fbe4f5
Cleanup: order buffer length after the buffer
2017-11-06 00:04:46 +11:00
Sergey Sharybin
95ccaed9e6
Depsgraph: Use explicit graph API in transform code
2017-11-03 14:05:49 +01:00
Campbell Barton
9ab67fd31b
Hide transform widget when tool widget is used
2017-10-27 15:54:17 +11:00
Campbell Barton
3d904d7650
Manipulator: Use object bound-box for scale cage
...
Without this, scaling single objects wasn't working usefully.
2017-10-26 16:15:54 +11:00
Sergey Sharybin
1829084da1
Depsgraph: Switch to explicit graph specification for tag flush
2017-10-24 16:04:11 +02:00
Campbell Barton
bf26509855
Manipulator: name remove func's 'unlink_delayed'
...
Name wasn't right since this only unlinks from manipulator maps.
2017-10-22 00:17:47 +11:00
Campbell Barton
d3fafa3002
Manipulator: move 'Scale Cage' to its own tool
...
Was activated with the regular scale manipulator,
move to own tool since they are different ways to access scale.
2017-10-21 23:01:19 +11:00
Campbell Barton
ec2bbc90e7
Merge branch 'master' into blender2.8
2017-10-18 17:09:41 +11:00
Campbell Barton
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
Campbell Barton
0ffa64a45f
Merge branch 'master' into blender2.8
2017-10-17 14:06:49 +11:00
Campbell Barton
99520e3f92
Cleanup: use 'e' prefix for enum typedefs
...
Convention was only followed loosely,
apply to DNA where changes aren't likely to conflict.
(Skipped ModifierType for eg).
2017-10-17 13:49:20 +11:00
Dalai Felinto
e4f2b2be26
Workspace: Move engines to workspace and Properties Editor cleanup
...
Engine is not stored in WorkSpaces. That defines the "context" engine, which
is used for the entire UI.
The engine used for the poll of nodes (add node menu, new nodes when "Use Nodes")
is obtained from context.
Introduce a ViewRender struct for viewport settings that are defined for
workspaces and scene. This struct will be populated with the hand-picked
settings that can be defined per workspace as per the 2.8 design.
* use_scene_settings
* properties editor: workshop + organize context path
Use Scene Settings
==================
For viewport drawing, Workspaces have an option to use the Scene render
settings (F12) instead of the viewport settings.
This way users can quickly preview the final render settings, engine and
View Layer. This will affect all the editors in that workspace, and it will be
clearly indicated in the top-bar.
Properties Editor: Add Workspace and organize context path
==========================================================
We now have the properties of:
Scene, Scene > Layer, Scene > World, Workspace
[Scene | Workspace] > Render Layer > Object
[Scene | Workspace] > Render Layer > Object > Data
(...)
Reviewers: Campbell Barton, Julian Eisel
Differential Revision: https://developer.blender.org/D2842
2017-10-16 17:29:04 -02:00
Campbell Barton
b0fa10f880
Merge branch 'master' into blender2.8
2017-10-14 17:38:06 +11:00
Julian Eisel
61fe8e8aca
Hide "Confirm on Release" button from transfor redo options
...
Hide-flag wasn't set so option shows up in keymap editor. But seems like
that flag is ignored there by now anyway.
2017-10-14 01:12:30 +02:00
Campbell Barton
c90ec276b8
Manipulator: add cage3d scale widget
...
For now only show this when scale manipulator is active.
2017-10-10 03:08:53 +11:00
Campbell Barton
adfbf276a1
Cleanup: style, duplicate includes
2017-10-07 15:57:14 +11:00
Campbell Barton
e3fe8128e4
Merge branch 'master' into blender2.8
2017-09-29 19:55:00 +10:00
Sergey Sharybin
9ddee885ae
Fix T52086: Graph editor "normalize" drag errors for integers
2017-09-28 17:08:43 +05:00
Campbell Barton
9bd40cbce1
Merge branch 'master' into blender2.8
2017-09-27 11:18:23 +10:00
Campbell Barton
43b4913051
Math Lib: Add non-clamped round_* functions
...
Replace iroundf with round_fl_to_int, add other types
2017-09-27 11:13:03 +10:00
Campbell Barton
51c87bbad0
Cleanup: indentation
2017-09-27 00:05:06 +10:00
Campbell Barton
7593ac2aff
Transform: add manipulator aligned bounds
...
ifdef'd out for now
2017-09-26 23:16:20 +10:00
Campbell Barton
d6800c1a81
Merge branch 'master' into blender2.8
2017-09-26 22:45:42 +10:00
Campbell Barton
482b665e02
Cleanup: remove bounds runtime data from scene
2017-09-26 22:33:25 +10:00
Campbell Barton
24b083c8f3
Merge branch 'master' into blender2.8
2017-09-26 14:52:21 +10:00
Joshua Leung
b0ccf2322b
Fix: When transforming GP strokes in "Local" mode, the strokes would get obscured
...
by the transform constraint lines
Ported over e7395c75d504af2c2f720f43ea27b93e04a378e4 from the
greasepencil-object branch. I should've fixed this ages ago, but
couldn't figure out why at the time.
2017-09-26 13:00:38 +13:00
Campbell Barton
42c174d1a5
Manipulator: fix visibility check w/ 2-axis planes
2017-09-20 18:33:43 +10:00
Campbell Barton
31fc75ef93
Cleanup: move 3d manipulators into an array
2017-09-20 17:47:34 +10:00
mano-wii
869f0a840f
Merge branch 'master' into blender2.8
2017-09-19 13:59:37 -03:00
mano-wii
98ea79cfde
transform_snap_object: simplify IGNORE_BEHIND_RAY
...
`depth_get` is called in most of the time. So not worth going through so many conditions
2017-09-19 13:57:59 -03:00
Sergey Sharybin
af170839af
Merge branch 'master' into blender2.8
2017-09-19 21:08:14 +05:00
Campbell Barton
60956397ca
Cleanup: BLI_utildefines prefix for header-only libs
...
This allows to have different macro headers without them sharing
similar names to regular C modules.
2017-09-19 20:16:05 +10:00
Sergey Sharybin
028c5592cd
Merge branch 'master' into blender2.8
2017-09-15 12:35:20 +05:00
Sergey Sharybin
8b3ad25862
Transform: Enable recursion dependency check for new depsgraph
2017-09-15 12:25:57 +05:00
Campbell Barton
7d7741d25f
Merge branch 'master' into blender2.8
2017-09-11 16:52:53 +10:00
Campbell Barton
2a3a747ca2
Fix T52678: Crash editing gpencil w/ frame-lock
2017-09-08 18:51:47 +10:00
Campbell Barton
572b1a644f
Merge branch 'master' into blender2.8
2017-09-05 22:56:03 +10:00
Joshua Leung
53ec0e5166
Fix T52227: Time Slide tool doesn't take NLA mapping into account
...
To be backported to 2.79
2017-09-03 12:49:15 +12:00
Campbell Barton
00ba48a699
Manipulator: replace old cage2d manipulator
...
Mostly internal changes, keeping both manipulators
could have worked but there was no point long term.
There are still some glitches to resolve, will work on those next.
2017-08-31 02:00:16 +10:00
Campbell Barton
9ca03ba410
Manipulator: use cage2d_rotate in UV view
...
Use when selection bounds isn't a single point.
2017-08-29 20:04:31 +10:00
Campbell Barton
3d56bfbc82
Merge branch 'master' into blender2.8
2017-08-29 16:06:26 +10:00
Campbell Barton
1c92ffa149
Transform: scale center override by aspect
...
Needed for image space.
2017-08-29 16:01:16 +10:00
Campbell Barton
7114b5681f
Missing from last commit (missed manually resolving)
2017-08-28 16:29:13 +10:00
Campbell Barton
8cd2b6ca8e
Merge branch 'master' into blender2.8
2017-08-28 16:04:42 +10:00
Campbell Barton
a520e7c85c
Transform: center override
...
Hidden option to override transform center.
Needed for manipulators that define their own center.
2017-08-28 16:00:28 +10:00
Campbell Barton
ddff9d0ea6
Manipulator: support operator per-part
...
A single manipulator could only assign a single operator to each part.
Now each part can have it's own.
Also modify 2D selection callback, 2D started at 1, 3D at 0.
Now use -1 for unset value, start both at 0.
2017-08-28 00:56:08 +10:00