Julian Eisel
a796a84a43
Use const for color array arguments
2016-11-22 14:51:34 +01:00
Julian Eisel
60ce602380
Fix missing conversion of uchar color to float
...
Decided to just pass float [4] args, so no type conversion is needed at all.
2016-11-22 14:40:57 +01:00
Bastien Montagne
559bd75766
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenloader/intern/versioning_270.c
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/editors/space_view3d/drawobject.c
2016-11-19 16:28:39 +01:00
Martijn Berger
5cbc7b6ed2
bgl do not bind parts of OpenGL that are not exposed in core profiles
2016-11-19 15:07:01 +01:00
Bastien Montagne
369872a2c5
Fix T49991: reloading librairies doesn't update node groups.
...
We need to check node tree links are still valid, after we remapped
some NodeGroup.
Note: In fact, we have to run that for *all* ID types, since nodes may
use any kind of data-block (in theory)... :/
2016-11-19 12:31:40 +01:00
Bastien Montagne
fa6a62fac2
Fix NodeGroup generic verify function crashing if node's ID pointer is NULL.
...
Another nice crasher - in this case, we just want to nuke all sockets...
Related to T49991.
2016-11-19 12:18:32 +01:00
Bastien Montagne
bd6a9fd734
Fix (unreported) nodeRemoveAllSockets() not clearing inputs/outputs sockets lists.
...
Nice crasher (though seems to not be much used so far)!
Related to T49991.
2016-11-19 12:16:14 +01:00
Bastien Montagne
5a6534a5bb
Fix forward-compat Nodes write code being executed also for undo steps writing.
...
Forward compatibility code should never, ever be run during undo saving.
Note: related to T49991 (but does not fix it either, crash now happens
when doing a real file save...).
2016-11-18 22:44:05 +01:00
Bastien Montagne
884693b42a
Fix Node space ID remap callback not handling node trees.
...
Yep. Kinda ridiculous, but forgot to handle the very node trees
data-blocks in that editor!
Related (but not fixing) to T49991.
2016-11-18 22:44:05 +01:00
Bastien Montagne
b6c0edcb09
Fix T50071: Radience HDR fomat does not support alpha at all.
2016-11-18 22:44:05 +01:00
Campbell Barton
b8710e1468
Fix UV layer bug in object_utils.object_data_add()
...
Adding a torus in edit-mode, with 'Generate UVs'
for example would either create another UV layer with the default name or
switch to the default UV layer name if it exists.
Now use the existing UV layer if present.
2016-11-19 06:57:55 +11:00
Campbell Barton
40990d52d1
Add Torus: avoid excessive attr access
2016-11-19 06:57:13 +11:00
Campbell Barton
39be226e93
BMesh: invalid return from BM_mesh_validate
...
Returned value was always false, even for valid meshes,
note that this is a debug-only function.
Also set internal-tag cleared.
2016-11-19 06:31:17 +11:00
Bastien Montagne
a90644ed19
Minor debug-report tweak to autosave code.
...
Print in cosole a warning when we skip autosave due to runnning modal op.
Related to T49974.
2016-11-18 18:47:29 +01:00
Dalai Felinto
0f8e5f4fb4
Cycles: Different noise seed for stereoscopic rendering (Fix #T50024)
...
Patch by Sergey Sharybin.
2016-11-18 18:23:52 +01:00
Sergey Sharybin
ba7c11aa05
Depsgraph: Fix residue of debug-only code
2016-11-18 17:48:01 +01:00
Martijn Berger
53267d2579
convert icon_draw_texture to gawain imm mode replacements
2016-11-18 16:04:25 +01:00
Bastien Montagne
27de0c40c5
Fix T50035: Minor interface bug: UV/ImageEditor - Paint Mode - Fill Brush
...
Patch by @LucaRood, added some cleanup of DRAW/FILL conditions in this
code too...
2016-11-18 15:49:41 +01:00
Bastien Montagne
f6083b7bcd
Fix (unreported) bad handling of brush's fill threshold value.
...
'1' threshold value would only allow to access a third of the basic
'color space' (from black to white, from 0.0 to 1.0 component values),
when you expect it to access the whole range.
Unfortunately, this needs a subversion bump to allow already defined
brushes to keep exact same behavior!
Also, did not change default value (0.2) for new brushes, think here
keeping current one makes more sense.
Thanks to @LucaRood for confirming the issue.
2016-11-18 15:32:50 +01:00
Bastien Montagne
8f0dc3cef6
Fix T50052: bpy.utils.unregister_module doesn't unregister classes of submodules in reload scenario.
...
reload case would clear TypeMap before unregistering addons, which made
all calls to unregister_module() to do absolutely nothing.
2016-11-18 15:15:46 +01:00
Julian Eisel
3fb11061ba
Fix T50063: Editing driver's expression eliminates "Zero" number
...
Disables trimming of trailing zeros in case button contains an expression.
2016-11-18 13:38:46 +01:00
Dalai Felinto
fffb1a4cfb
Implement multi-view stereo support for image empties
...
Empty images were implemented to expand (and eventually replace)
the background images functionalities. If we are ever to drop
background images "image empties" should support stereo/multi-view as well.
2016-11-18 12:38:18 +01:00
Bastien Montagne
841c4deed7
Fix potential NULL dereference in mesh sequence cache modifier.
...
Reported by coverity.
2016-11-18 12:03:12 +01:00
Bastien Montagne
b859fef670
Fix copy/paste typo in new depsgraph object geometry builder (found by coverity).
2016-11-18 11:55:28 +01:00
Mike Erwin
e0bea34c51
fix problem from D2360
...
I was too eager to get patch in after a last-minute change. My bad!
2016-11-18 00:40:40 -05:00
Benjamin N. Summerton
43ed3079e2
Moved UI_view2d_grid_draw() to immediate functions
...
Part of T49043
Reviewers: krash, merwin
Reviewed By: krash, merwin
Differential Revision: https://developer.blender.org/D2360
2016-11-17 22:49:22 -05:00
Mike Erwin
2de882e8cb
OpenGL: textview port to immediate mode -> T49043
...
Updated the GL calls to the new immediate mode.
I left some glcolor calls which I'm not sure wether thats right?
Part of T49043
warm regards,
Sebastian Witt
Reviewers: merwin
Reviewed By: merwin
Tags: #bf_blender_2.8
Maniphest Tasks: T49043
Differential Revision: https://developer.blender.org/D2305
2016-11-17 22:05:49 -05:00
Mike Erwin
fe73b8c29c
use new enum types in glutil & imm_util
2016-11-17 16:10:53 -05:00
Mike Erwin
d915e89ec8
delete deprecated fdrawXORcirc function
...
Only one place used it, and that place was dead code already.
2016-11-17 15:03:55 -05:00
Mike Erwin
feccadd81b
mark certain glutil functions as deprecated
...
These will be removed before we ship 2.8
2016-11-17 14:44:15 -05:00
Campbell Barton
03a395766a
BMesh: avoid using temp array for face-area
2016-11-18 06:10:53 +11:00
Campbell Barton
46739f1e5c
BMesh: minor cleanup
...
Comment & don't use dummy pointer.
2016-11-18 06:10:53 +11:00
Campbell Barton
a1a8343281
Cleanup: redundant index loop for monkey-create
...
Also rename face vars (the faces aren't temp),
and quiet old-style-definition warning.
2016-11-18 06:10:53 +11:00
Sergey Sharybin
d294509dd8
Depsgrpah: Fix missing animation update in movie clips
2016-11-17 16:37:25 +01:00
Sergey Sharybin
4dbd61cc64
Depsgraph: Move scene builder function to own file
...
This way it's much easier to grasp what the graph actually contains.
2016-11-17 15:44:32 +01:00
Sergey Sharybin
1f8762bb8e
Fix T50060: New depsgraph does not update mask animation
2016-11-17 15:29:22 +01:00
Sergey Sharybin
0a08d8c892
Depsgraph: Use utility macro to iterate over linked list
...
This will be compiled into same exact code, just saves us from
doing annoying type casts all over the place.
2016-11-17 15:11:55 +01:00
Sergey Sharybin
0c322c3000
Depsgraph: Move rig builder functions to own files
...
Those routines are rather big and started to be annoying to have
one big file.
Should be no functional changes.
2016-11-17 14:41:16 +01:00
lazydodo
16e2c0ef3c
[MSVC] Preliminary VS2017 support.
2016-11-16 20:13:58 -07:00
Brecht Van Lommel
60409841a4
Fix T50001: auto tile size addon broken after Cycles GPU device changes.
...
Adds a get_num_gpu_devices() utility function for the addon to use.
2016-11-17 02:17:56 +01:00
Mike Erwin
86f435d6c8
Gawain: small note for future Vulkan work
2016-11-16 18:25:36 -05:00
Martijn Berger
b757e8298a
Convert console_draw.c to Gawain
...
Reviewers: merwin
Reviewed By: merwin
Tags: #bf_blender_2.8
Differential Revision: https://developer.blender.org/D2276
2016-11-16 22:56:39 +01:00
Mike Erwin
b1f700dad3
Gawain: use PRIM_ and INDEX_ enums instead of GLenum
...
For a few reasons:
- separate enum sets for separate concepts
- debug with symbolic names instead of 0x4e72
- prepare for a Vulkan future
2016-11-16 16:03:15 -05:00
Antonioya
e400f4a53e
Fix T50051: Avoid crash when render grease pencil from VSE
...
The renderpasses for grease pencil are not necessary when render from
sequencer.
This fix solves the GPF but we need to rethink the complete render
process for grease pencil and integrate better in the render and
composition workflow.
Thanks to Dalai Felinto por helping in the debug and fixing of the
problem.
2016-11-16 21:33:47 +01:00
Mike Erwin
36ac979ee0
Gawain: use COMP_ instead of GL_ internally
...
Because GLenum could be ANYTHING. We use our own enum type for components.
2016-11-16 15:18:06 -05:00
Mike Erwin
7aa82e7ed2
Gawain: re-enable strict error checking in release builds
...
Makes it easier for new volunteers to catch errors early.
2016-11-16 12:14:55 -05:00
Mike Erwin
472e2c5acf
Blender 2.8: Added immVertex2s() and immAttrib2s()
...
Just as mentioned in title. Need new functions for calls found in `transform.c`
T49043
Reviewers: merwin
Tags: #bf_blender_2.8
Differential Revision: https://developer.blender.org/D2358
2016-11-16 11:53:41 -05:00
Dalai Felinto
2bcb1b208a
Merge remote-tracking branch 'origin/master' into blender2.8
2016-11-16 17:04:21 +01:00
Sergey Sharybin
2a2eb0c463
Cycles: Fix different noise pattern from fix in T49838:
...
No need to hash subframe == 0.
2016-11-16 15:32:00 +01:00
Bastien Montagne
209bc9977c
Fix T50046: Segmentation fault due to out-of-range VertexGroup.weight() call.
...
`get_vert_def_nr()` was not checking vert index in bmesh case (aka Edit mode).
2016-11-16 12:42:17 +01:00