Dalai Felinto
0feeef89f0
Fix T52528: generated texture mismatch between Cycles and Eevee
...
Finally orco should be working 100% on Eevee now. Thanks for Sergey
Sharybin for reporting this.
2017-08-25 14:22:21 +02:00
Dalai Felinto
99b1f9f4f4
Revert "Eevee: Fix generated coordinates when no texture coordinates connected"
...
This reverts commit 0e29a97813 .
2017-08-25 14:22:21 +02:00
Dalai Felinto
4e975b6b44
Fix ORCO never used for draw manager (Eevee)
...
Related to T52528.
2017-08-25 14:22:21 +02:00
8e6c18a98f
Merge branch 'master' into blender2.8
2017-08-25 22:22:58 +10:00
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
f8f6f8f26e
Merge branch 'master' into blender2.8
2017-08-25 20:45:16 +10:00
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
Dalai Felinto
0e29a97813
Eevee: Fix generated coordinates when no texture coordinates connected
...
Orco should behave the same if it comes from unconnected vec inputs, or
from the Texture Coordinate -> Generated node output.
Fixup for 11e7e0769a .
This is related to T52528. The coordinates are still different between
Eevee and Cycles, but at least it behaves consistent within itself.
In fact the shader should now be correct, but the orco attributes we are
passing the shader seems to be where the problem is. But it's to be
tackled separately.
2017-08-25 11:47:38 +02:00
9e762693db
Fix manipulator remove tag, it cleared all groups
2017-08-25 15:19:30 +10:00
3f4b3fdfba
Manipulator: zero grab offset w/o target property
...
Some manipulators are used like on-screen buttons,
in this case it doesn't make sense to keep track of their state,
so zero the offset when its unused.
Needed for lamp-target manipulator.
2017-08-25 15:13:11 +10:00
738d942d29
Correct error in recent use of PyC_Long_*
...
Regression in 46cf33bf0
2017-08-25 02:09:23 +10:00
1b5a690c72
Fix crash handling manipulator events before drawing
2017-08-25 00:20:14 +10:00
33f9b6d016
Depsgraph: Fix crash editing mesh in edit mode
2017-08-24 16:01:08 +02:00
97fadb7b59
Depsgraph: Cleanup typo
2017-08-24 15:52:52 +02:00
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
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
552656611b
Merge remote-tracking branch 'origin/master' into blender2.8
2017-08-24 10:41:59 +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
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
134e927965
Manipulator: remove unused event hack
2017-08-24 12:02:08 +10:00
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
Dalai Felinto
efd07aaada
Fix blenderplayer (tm)
2017-08-23 17:55:50 +02:00
0671814e3b
Merge branch 'master' into blender2.8
2017-08-24 01:07:09 +10:00
0b5b464e82
Correction to last fix
2017-08-24 01:05:20 +10:00
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
520ea73ad0
Fix bplayer (c)
2017-08-23 16:43:10 +02:00
3277bd4031
Fix T52396: Crash loading template w/o config dir
2017-08-23 22:06:42 +10:00
cb4884f50b
Merge branch 'master' into blender2.8
2017-08-23 20:16:47 +10:00
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
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
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
54507234b7
RNA: use string join functions as with operators
2017-08-23 19:40:48 +10:00
917d069cdb
Merge branch 'master' into blender2.8
2017-08-23 19:21:52 +10:00
cf8d35edc8
RNA: use string-join to simplify operator register
...
Also sanity check macro-operator ID's.
2017-08-23 19:18:22 +10:00
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
55861cb234
PyAPI: avoid instantiating args twice in macro
...
Would cause problems if args included function calls.
2017-08-23 18:48:32 +10:00
9d6d413c7c
RNA: check for duplicate manipulator names
2017-08-23 16:22:48 +10:00
58a4c767a1
Merge branch 'master' into blender2.8
2017-08-23 16:10:45 +10:00
1e60ac3394
RNA: report error on struct naming collision
...
Fixes T52463, error instead of crash.
2017-08-23 15:02:21 +10:00
4761dea573
RNA: keep structs_map valid w/ ID duplicate & free
2017-08-23 14:14:55 +10:00
8899ac1550
GHash: BLI_ghash_reinsert_key utility function
...
Useful when ghash keys are reallocated.
2017-08-23 13:03:35 +10:00
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
f09dee5aed
Fix error in PointerProperty argument list
...
Regression in a7b3047
2017-08-23 02:14:33 +10:00
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
9cfb72ff81
Merge branch 'master' into blender2.8
2017-08-22 16:31:33 +02:00
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
f3e02eb32e
Depsgraph: Cleanup, make code friendlier to be edited in columns
2017-08-22 16:24:58 +02:00
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
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
831e86d539
GPUTexture: Remove Warning.
2017-08-22 14:41:36 +02:00