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
Campbell Barton
1cc4033df8
PyAPI: expose matrix parsing function
2017-08-19 21:36:50 +10:00
Campbell Barton
4e468ceb71
PyAPI: Fix memory leak w/ empty, allocated enums
2017-08-18 18:29:27 +10:00
Campbell Barton
ac28a4fba7
Fix leak in Python BGE filter & image types
2017-08-18 00:55:16 +10:00
mano-wii
9b1e0f5af6
Remove unnecessary #include "ED_transform.h"
2017-08-16 19:08:52 -03:00
mano-wii
85169de54d
Transform: remove unused function
2017-08-16 18:55:55 -03:00
mano-wii
916b9b311f
Transform: Move enum SnapSelect to ED_transform_snap_object_context
2017-08-16 14:16:30 -03:00
Bastien Montagne
1f3724f7f4
Fix T52414: Blender 2.79 crash on object duplication via menu.
...
Caused by own recent changes in handling of verts/edges/etc. arrays storage
for raycasting (rBe324172d9ca6690e8).
Issue was actually even weirder - there is absolutely no reason at all to
release DM here, those finaldm are stored in Object or EditMesh structs and
handled by general update system, other code shall never try to release them!
2017-08-16 10:52:49 +02:00
Brecht Van Lommel
535e83687d
macOS build: simplify python install for new 10.9 libraries.
...
We stop using the .zip file and just have all files now in
lib/darwin/python/lib, along with numpy, numpy headers and requests.
This makes it consistent with Linux and simplifies code.
For old libraries the .zip stays, code for that gets removed when we
fully switch to new libraries.
2017-08-15 17:40:27 +02:00
Sybren A. Stüvel
f20d7bed14
Alembic import: report object name in face color index out of bounds error
2017-08-15 12:43:17 +02:00