Bastien Montagne
dcebad773f
Fix T52498: Deleting force field doesn't remove "Surface" from modifier stack.
...
Logic in `ED_object_check_force_modifiers` was inconsistent between add
and remove modifier cases.
Should be safe enough for 2.79.
2017-08-27 12:20:21 +02:00
Campbell Barton
c90452e111
BLI_rect: Function to calculate a matrix from 2 rctf's
2017-08-27 16:19:34 +10:00
Campbell Barton
b07dcb8fb0
Missed last commit
2017-08-27 03:51:25 +10:00
Campbell Barton
b6b27b0671
Fix T52515: Crash on BMesh.to_mesh()
2017-08-27 02:44:15 +10:00
Campbell Barton
7e43210edb
WM: move theme check out of ED_view3d_draw_select_loop
...
In 2.8x this needs to be in view3d_opengl_select,
so simplest to make in master too.
2017-08-27 00:48:52 +10:00
Campbell Barton
fa365d5f2f
Fix minor Mesh -> BMesh conversion issues
...
- Vertex only meshes never restored their selection history.
- Select history was cleared on the source instead of the target.
Simple Optimizations:
- Avoid O(n^2) linked list looping that checked the entire list before
adding elements (NULL values in the source array to prevent dupes).
- Re-use vert & edge lookup tables instead of allocating new ones.
2017-08-26 23:14:18 +10:00
Bastien Montagne
fe71c86888
Fix T52478: Error report "Shrinkwrap: out of memory" on invisible target.
...
Shrinkwrap must check it does have valid target data.
Safe for 2.79 release.
2017-08-26 14:48:00 +02:00
Bastien Montagne
5c4fc93f67
Fix T52538: Outliner crash when displaying groups and using Show Active on editmode bone not in any groups
...
There's no guaranty that given ID is found in current outliner tree...
Safe for 2.79, though not a regression.
2017-08-26 12:28:21 +02:00
Bastien Montagne
e2ffad7823
Fix T52481: After making all local, local proxies of linked data get broken after file save and reload.
...
Issue was nasty hidden one, the dual status (mix of local and linked)
of proxies striking again.
Here, remapping process was considering obdata pointer of proxies as
indirect usage, hence clearing the 'LIB_TAG_EXTERN' of obdata pointer.
That would make savetoblend code not store any 'lib placeholder' for
obdata data-block, which was hence lost on next file read.
Another (probably better) solution here would be to actually consider
obdata of proxies are fully indirect usage, and simply reassign proxies
from their linked object's obdata on file read...
However, that change shall be safer for now, probably good for 2.79 too.
2017-08-25 16:16:32 +02:00
Campbell Barton
de669c3b60
WM: ensure 3D view theme is used in select-loop
...
Yet another case where theme could be used uninitialized.
2017-08-25 22:10:27 +10:00
Campbell Barton
16377abda8
WM: initialize WM and deps before handling events
...
This avoids obscure bugs where operators could run from
events that happen before the UI and depsgraph have been initialized.
See: D2809 for details.
2017-08-25 20:26:52 +10:00
Campbell Barton
738d942d29
Correct error in recent use of PyC_Long_*
...
Regression in 46cf33bf0
2017-08-25 02:09:23 +10:00
Campbell Barton
9662803833
Fix error using wrong theme settings w/ depth draw
...
Clicks events before first draw would assert,
unlikely to cause user visible errors but
would assert in UI_ThemeGetColorPtr.
2017-08-24 23:22:55 +10:00
Sergey Sharybin
a679457263
Fix T51907: New Depsgraph - Camera constraint is not evaluated properly
...
This is more a workaround for until we've got proper visibility flush, which
will likely happen in blender2.8 branch.
2017-08-24 14:35:48 +02:00
Dalai Felinto
1fb2637006
Cycles Bake: Fix overflow when using hundreds of images
...
We have a hardcored limit of 1000 images to be baked.
However anything anove 100 would be leading to overflow in the code.
Caught by warning from builder bot (my compiler doesn't even complain
about this, but it should).
2017-08-24 10:34:56 +02:00
Campbell Barton
e476298084
Docs: rename var and comment how it's used
...
switch_from_camera wasn't right since it was used for auto-perspective.
2017-08-24 02:11:31 +10:00
Campbell Barton
0b5b464e82
Correction to last fix
2017-08-24 01:05:20 +10:00
Campbell Barton
76d695f761
Fix T52490: NDOF orbit doesn't lock in ortho view
...
Regression in af3f7db caused by own fix for T51324
2017-08-24 00:51:25 +10:00
Bastien Montagne
520ea73ad0
Fix bplayer (c)
2017-08-23 16:43:10 +02:00
Campbell Barton
3277bd4031
Fix T52396: Crash loading template w/o config dir
2017-08-23 22:06:42 +10:00
Campbell Barton
b9513706cb
Cleanup: mark VA_NARGS_COUNT as public
...
Was already used in two other headers, remove underscore prefix.
2017-08-23 20:16:17 +10:00
Campbell Barton
37cfa44222
Cleanup: move variadic defines to their own header
...
So we can use in headers without pulling in many other defines.
2017-08-23 20:16:17 +10:00
Sergey Sharybin
1a76bc7aeb
Fix T52218: Missing update when reconnecting node
...
If node was connected to output, we tag tree for update no matter where
the node was re-plugged to.
Should be safe for 2.79.
2017-08-23 11:49:20 +02:00
Campbell Barton
cf8d35edc8
RNA: use string-join to simplify operator register
...
Also sanity check macro-operator ID's.
2017-08-23 19:18:22 +10:00
Campbell Barton
81c0e643a0
BLI_string_utils: string joining utility functions
...
Includes a version that takes a separator and macros for convenience.
2017-08-23 19:17:27 +10:00
Campbell Barton
55861cb234
PyAPI: avoid instantiating args twice in macro
...
Would cause problems if args included function calls.
2017-08-23 18:48:32 +10:00
Campbell Barton
1e60ac3394
RNA: report error on struct naming collision
...
Fixes T52463, error instead of crash.
2017-08-23 15:02:21 +10:00
Campbell Barton
4761dea573
RNA: keep structs_map valid w/ ID duplicate & free
2017-08-23 14:14:55 +10:00
Campbell Barton
8899ac1550
GHash: BLI_ghash_reinsert_key utility function
...
Useful when ghash keys are reallocated.
2017-08-23 13:03:35 +10:00
Thomas Beck
980a8646d8
Fix T52466: Silence search for button_context menu type.
...
We were showing "search for unknown menutype WM_MT_button_context" messages in terminal which were not helpful for users, so now they are disabled.
To be backported to 2.79
2017-08-22 21:35:09 +02:00
Campbell Barton
f09dee5aed
Fix error in PointerProperty argument list
...
Regression in a7b3047
2017-08-23 02:14:33 +10:00
Antonio Vazquez
4d8e3b649b
Fix T52483: Fill is incorrect for interpolated strokes
...
The recalc flag must be enabled for new interpolated strokes.
2017-08-22 17:43:20 +02:00
Sergey Sharybin
9f40153094
Fix T52209: New Depsgraph - animated follow curve constraint sometimes freaks out when the curve has a parent
2017-08-22 16:27:33 +02:00
Sergey Sharybin
f3e02eb32e
Depsgraph: Cleanup, make code friendlier to be edited in columns
2017-08-22 16:24:58 +02:00
Sergey Sharybin
c80ab62aee
Depsgraph: Remove placeholder for path evaluation
...
Wasn't used in years, if it really needs to be dedicated operation it needs to
be revisited anyway.
2017-08-22 16:12:01 +02:00
Sergey Sharybin
4699799288
Fix threading conflict when doing Cycles background render
...
It is possible to have same image used multiple times at different frames,
which means we can not free it's buffers without any guard. From quick tests
this seems to be doing what it is supposed to.
Need more testing and port this to 2.79.
2017-08-22 15:50:05 +02:00
Sergey Sharybin
1155fc94fd
Fix T52454: Crash in DEG_graph_on_visible_update when activating scene layer
...
Most likely needs in 2.79 final release.
2017-08-22 12:53:34 +02:00
Campbell Barton
691ed21842
PyAPI: replace PyC_FromArray with typed functions
...
This was meant to be generic but introduced possible type errors
and unnecessary complication.
Replace with typed PyC_Tuple_PackArray_* functions.
Also add PyC_Tuple_Pack_* macro which replaces some uses of
Py_BuildValue, with the advantage of not having to parse a string.
2017-08-22 18:10:57 +10:00
Brecht Van Lommel
81a76469ca
Fix for recent fix in fc890cd, cstdint is c++11 only so don't use it yet.
2017-08-21 19:05:17 +02:00
Sergey Sharybin
37a5fe2d4d
Fix T52479: Regression: Motion Tracking no longer works
2017-08-21 17:23:42 +02:00
Campbell Barton
592dd9dea6
Modify menu from last commit
...
Also correct tool-tip.
2017-08-21 15:24:40 +10:00
Campbell Barton
361c7cbbc5
Fix T52434: Restore mesh center of mass calculation
...
The new method while improved for solid objects
doesn't work for non-manifold meshes, keep both.
2017-08-21 15:19:08 +10:00
Brecht Van Lommel
fc890cdae2
Fix Windows build error after recent Python changes in a10a7f42.
2017-08-20 23:15:43 +02:00
Brecht Van Lommel
47d1f67eab
Fix T52473: blender internal Fresnel and Layer Weight only work with linked normal.
...
Please backport this to 2.79.
2017-08-21 00:09:16 +02:00
Bastien Montagne
146b0c6b04
Fix T52439: Crash after adjusting lenght of hair particles.
...
Regression from rBfed853ea78221, calling this inside thread worker was
not really good idea anyway, and we already have all the code we need in
pre-threading init function, was just disabled for vertex particles
before.
To be backported to 2.79.
2017-08-20 17:18:48 +02:00
Campbell Barton
e27a59d411
Replace BLI_INLINE w/ Py_LOCAL_INLINE for Python
...
Recent inclusion caused build error with the BGE.
2017-08-20 21:14:33 +10:00
Campbell Barton
f6825d333b
Fix bpy library load: invalid function signature
2017-08-20 19:04:16 +10:00
Campbell Barton
46cf33bf01
PyAPI: Make use of PyC_LongAs... API
...
Avoids setting exceptions inline,
also use Matrix_ParseAny for bmesh.ops.
Some inline exceptions are kept because they show useful details.
2017-08-20 15:49:10 +10:00
Campbell Barton
a10a7f42de
PyAPI: Integer conversion functions
...
Python's C-API doesn't provide functions to get
int's at specific integer sizes.
Leaving the caller to check for overflow,
which ended up being ignored in practice.
Add API functions that convert int/uint 8/16/32/64, also bool.
Raising overflow exception for unsupported ranges.
2017-08-20 15:39:08 +10:00
Campbell Barton
2ff9c8a3bc
PyAPI: avoid redundant PyLong_AsLong call
...
Assigning to an RNA array converted from Python to C twice.
2017-08-20 15:30:14 +10:00