Campbell Barton
e20c825b05
Manipulator: modal callback can now cancel & pass events
...
Re-use operator return flags for manipulator modal & invoke,
this means manipulators can allow navigation or other events to be
handled as they run - see T52499
2017-08-24 17:04:28 +10:00
Campbell Barton
134e927965
Manipulator: remove unused event hack
2017-08-24 12:02:08 +10:00
Dalai Felinto
efd07aaada
Fix blenderplayer (tm)
2017-08-23 17:55:50 +02:00
Campbell Barton
0671814e3b
Merge branch 'master' into blender2.8
2017-08-24 01:07:09 +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
cb4884f50b
Merge branch 'master' into blender2.8
2017-08-23 20:16:47 +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
54507234b7
RNA: use string join functions as with operators
2017-08-23 19:40:48 +10:00
Campbell Barton
917d069cdb
Merge branch 'master' into blender2.8
2017-08-23 19:21:52 +10: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
9d6d413c7c
RNA: check for duplicate manipulator names
2017-08-23 16:22:48 +10:00
Campbell Barton
58a4c767a1
Merge branch 'master' into blender2.8
2017-08-23 16:10:45 +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
9cfb72ff81
Merge branch 'master' into blender2.8
2017-08-22 16:31:33 +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
Clément Foucault
831e86d539
GPUTexture: Remove Warning.
2017-08-22 14:41:36 +02:00
Dalai Felinto
d7b3e33af4
GL_TEXTURE_2D_ARRAY wasn't handled in GPU_texture_update
...
Although the problem was exposed in 9457715d9a , the problem was in the
original code that was copied over. To have:
```
} else { /* EXPECTED_VALUE */
```
Without an BLI_assert(value == EXPECTED_VALUE); is asking for troubles.
Yet another reason to favour switch statements with:
```
default:
BLI_assert(!"value not implemented or supported");
```
Instead of chained if/else if/else /* expected_value */.
2017-08-22 14:37:28 +02:00
Campbell Barton
5f4066c87d
add GPU_glew header
2017-08-22 22:22:21 +10:00
Campbell Barton
7e6b702e65
Fix T52053: Sculpt missing update w/ clay engine
...
Leaving sculpt mode wasn't updating the mesh because the update
flushed from the depsgraph ignored edits to vertex location.
2017-08-22 22:10:13 +10:00
Campbell Barton
2f19559258
Cleanup: naming for mesh dirty flags
...
- NOCHECK -> ALL
- ALL -> MAYBE_ALL
Where 'MAYBE_ALL' checks to see if the mesh has changed.
This is clearer that `BKE_MESH_BATCH_DIRTY_ALL` is dirty and
going to be updated without any guess-work.
2017-08-22 22:07:25 +10: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
Dalai Felinto
9457715d9a
GPU Texture: Use switch instead of if/else
2017-08-22 12:30:03 +02:00
Campbell Barton
f4fe405da9
Manipulator: Add API target_get/set/range wrappers
...
Allows Python manipulators access the values of target properties
needed for Python to make use of the general target property interface.
2017-08-22 18:57:38 +10:00
Campbell Barton
bd935b5aed
Merge branch 'master' into blender2.8
2017-08-22 18:21:05 +10:00
Campbell Barton
ccff7c3c82
PyAPI: Minor gawain corrections
2017-08-22 18:13:19 +10:00
Clément Foucault
417581636f
Eevee: Fix T52486
...
For that introduce an update function for textures.
2017-08-22 10:22:11 +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
Campbell Barton
7e87849257
Cleanup: rename manipulator API functions
...
- WM_manipulatorgrouptype_remove- > free
- WM_manipulator_group -> WM_manipulator_group_type
Naming here is still a bit confusing,
now at least free/remove are differentiated.
2017-08-22 02:06:46 +10:00
Campbell Barton
be89b95e98
Fix crash re-registering manipulators
...
Duplicating strings caused problems using strings in
both struct hash and manipulator group types own hash.
2017-08-22 01:55:11 +10:00
Sergey Sharybin
37a5fe2d4d
Fix T52479: Regression: Motion Tracking no longer works
2017-08-21 17:23:42 +02:00
Campbell Barton
3e555d3d78
Merge branch 'master' into blender2.8
2017-08-21 15:41:03 +10: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
Clément Foucault
d007828ae7
Eevee: Offset the for each AA sample.
...
This means we have less overall noise for rendered image.
SSR, AO, and Refraction are affected by this change.
SSR still exhibit artifacts because the reconstruction pattern needs to change every frame (TODO).
2017-08-21 01:39:23 +02:00