Campbell Barton
48eaddfae0
Missed in last merge
2018-04-03 18:22:05 +02:00
Campbell Barton
e52beb3733
Merge branch 'master' into blender2.8
2018-04-03 18:12:39 +02:00
Campbell Barton
ab695c3297
Undo: make id-map use binary search to keep sorted
2018-04-03 18:07:51 +02:00
Campbell Barton
1f0f234b07
Fix own error w/ undo ID lookup
...
Was testing with small number of items, so this went unnoticed.
2018-04-03 17:58:37 +02:00
Germano
c713e9c472
Draw Manager: Improve description of draw_frustum_boundbox_calc variables
2018-04-03 12:18:56 -03:00
Campbell Barton
b2c9fdfe87
Cleanup: rename BMesh count_ex -> count_at_most
2018-04-03 17:06:36 +02:00
Campbell Barton
bfdb88f3f4
Cleanup: rename list count_ex -> count_at_most
2018-04-03 17:05:21 +02:00
Campbell Barton
06a62d4e06
Undo: use with_prev verisons of id-map lookups
2018-04-03 17:03:33 +02:00
Campbell Barton
5a7deab65a
Undo: use general id-map for image undo lookups.
...
Was doing own name based lookups to keep compatible w/ global undo.
2018-04-03 17:03:33 +02:00
Campbell Barton
75de21f072
Undo System: id-map avoid duplicate add/lookup
...
Add versions of add/lookup that check the previous item.
2018-04-03 17:03:33 +02:00
Campbell Barton
53f068454e
Fix mistake logging w/ undo
2018-04-03 17:03:33 +02:00
Bastien Montagne
6744c34a26
Merge branch 'master' into blender2.8
2018-04-03 16:13:13 +02:00
Bastien Montagne
601835cd31
Fix (unreported) crash when accessing some bl_rna.properties.
...
E.g. typing `bpy.data.bl_rna.properties[8].<tab>` in console would hard-crash
trying to dereference NULL pointer. Was a missing check in rna_Property_tags_itemf().
2018-04-03 14:32:23 +02:00
Campbell Barton
7e9a80530f
Cleanup: remove unused mtexpoly array
...
Not needed in 2.8
2018-04-03 14:30:12 +02:00
Campbell Barton
a2c0a382cd
Merge branch 'master' into blender2.8
2018-04-03 14:19:51 +02:00
Brecht Van Lommel
3a96cfcd26
Fix crash on startup on macOS, after recent framebuffer refactoring.
2018-04-03 09:36:31 +02:00
Campbell Barton
b3004d30f5
Undo: remove particle undo push
...
Was only called on copy particle system
which is already doing an undo push.
2018-04-03 08:57:01 +02:00
Campbell Barton
72ae0e1b6d
Cleanup: editor BKE_main includes
2018-04-03 08:42:12 +02:00
Campbell Barton
a0eb54142f
Undo: replace global access w/ ED_undo_stack_get
...
While I'd like to avoid using this too much since the operator
system should handle.
It's less trouble than accessing it inline each time.
2018-04-03 08:35:42 +02:00
Campbell Barton
a7a25fed2b
Fix mode switching error on undo
...
For 2.8 there is already a utility function for this,
wrap it - avoiding an undo step.
2018-04-03 08:05:18 +02:00
Campbell Barton
751782c8df
Correct own error in string lookup
2018-04-03 07:44:37 +02:00
Dalai Felinto
495b21fa0c
Move to Collection: Reduce memory leakage
...
This is really minor but anyways, now it will only leak if you cancel the menu.
And that only if htis is the last time you called this operator before closing
Blender.
2018-04-02 18:52:22 -03:00
Dalai Felinto
89eb9c7f3e
Move to Collection: Use automatic fallback name for new collections popup
2018-04-02 17:25:22 -03:00
Dalai Felinto
1f291d5814
Collections: API to get automatic name of new collection
2018-04-02 17:25:22 -03:00
Dalai Felinto
0faa065ed4
Move to Collection: Popup for naming new collection
2018-04-02 17:25:22 -03:00
Dalai Felinto
80e7a48f21
Fix blenderplayer (tm)
2018-04-02 17:24:20 -03:00
Campbell Barton
31f2a6755d
PyAPI: Add PyC_Tuple_Pack_F64 utility
2018-04-02 19:48:34 +02:00
Clément Foucault
72c57a755e
UI: Fix: Center vertical scrollbar circles.
2018-04-02 18:47:56 +02:00
Clément Foucault
e1d6e524b3
UI: Perf: Batch Trias with widgets.
...
This remove another portion of imm calls and reduce overall drawcall count.
2018-04-02 18:47:56 +02:00
Campbell Barton
4041385ddd
Cleanup: remove redundant imbuf return values
...
Some functions always returned the input argument
which was never used.
This made code read as if there might be a leak.
Now return a boolean (true the imbuf is modified).
2018-04-02 17:34:52 +02:00
Germano
b49290be14
Partial fix for T54491: Use a more accurate solution to calculate the frustum boundbox
2018-04-02 12:21:09 -03:00
Milan Jaros
888a04c7e4
Build: fixes for the Intel compiler versions 2016, 2017, 2018.
...
Differential Revision: https://developer.blender.org/D3109
2018-04-02 16:39:04 +02:00
Campbell Barton
692aeb6fe0
Cleanup: newlines left in messages
2018-04-02 15:46:31 +02:00
Campbell Barton
89fdd88906
Merge branch 'master' into blender2.8
2018-04-02 15:18:10 +02:00
Campbell Barton
57bbd478a5
Cleanup: remove unused view_layer argument
2018-04-02 15:11:53 +02:00
Campbell Barton
4ffa05c30b
Cleanup: move undo into it's own directory
...
Split out undo API from ED_util.h into ED_undo.h
2018-04-02 15:07:40 +02:00
Campbell Barton
b186592b21
Cleanup: move BKE_global include under ifdef's
2018-04-02 14:19:44 +02:00
Campbell Barton
44efbef41e
Undo: store active curve shape key in edit-mode
2018-04-02 13:13:57 +02:00
Campbell Barton
017c731cf3
Logging: use for Python API
...
Adds categories "bpy.context" & "bpy.rna"
2018-04-02 13:13:57 +02:00
Ray Molenkamp
21fcc723e9
imbuf: revert some of the changes of rBb6ba3c682dd6615e760905572a5bcd69bb46371f since they broke the build.
2018-04-01 15:17:17 -06:00
Sergej Reich
b29ecbfc6b
Fix compiling with Alembic
...
Still need G.main
2018-04-01 19:50:19 +02:00
Campbell Barton
c0eab1fde5
Workaround for undo steps not storing object modes
2018-04-01 19:33:02 +02:00
Campbell Barton
557db587b7
Merge branch 'master' into blender2.8
2018-04-01 11:14:09 +02:00
Campbell Barton
b65ea517eb
Merge branch 'master' into blender2.8
...
- Undo that changes modes currently asserts,
since undo is now screen data.
Most likely we will change how object mode and workspaces work
since it's not practical/maintainable at the moment.
- Removed view_layer from particle settings
(wasn't needed and complicated undo).
2018-04-01 11:03:25 +02:00
Campbell Barton
f48895f74a
Correct accidental changes by C Logging addition
...
Error in 891c1cfc9a
2018-04-01 10:23:28 +02:00
Campbell Barton
473f17b3d5
Resolve unsigned comparison error w/ MSVC
2018-04-01 07:41:23 +02:00
Campbell Barton
b6ba3c682d
Cleanup: remove global header
2018-04-01 07:24:45 +02:00
Campbell Barton
d18116a297
Removed by accident in last commit
2018-03-31 23:47:05 +02:00
Campbell Barton
651b8fb14e
Undo: unified undo system w/ linear history
...
- Use a single undo history for all operations.
- UndoType's are registered and poll the context to check if they
should be used when performing an undo push.
- Mode switching is used to ensure the state is correct before
undo data is restored.
- Some undo types accumulate changes (image & text editing)
others store the state multiple times (with de-duplication).
This is supported by checking UndoStack.mode `ACCUMULATE` / `STORE`.
- Each undo step stores ID datablocks they use with utilities to help
manage restoring correct ID's.
Needed since global undo is now mixed with other modes undo.
- Currently performs each undo step when going up/down history
Previously this wasn't done, making history fail in some cases.
This can be optimized to skip some combinations of undo steps.
grease-pencil is an exception which has not been updated
since it integrates undo into the draw-session.
See D3113
2018-03-31 20:40:37 +02:00
Clément Foucault
916c91bd08
BLF: Remove debug print
...
"this is not the commit you're looking for"
2018-03-31 20:33:05 +02:00