Commit Graph

50408 Commits

Author SHA1 Message Date
Sergey Sharybin f0dcff9aa9 Task scheduler ported form CYcles to C
Replaces ThreadedWorker and is gonna to be used
for threaded object update in the future and
some more upcoming changes.

But in general, it's to be used for any task
based subsystem in Blender.

Originally written by Brecht, with some fixes
and tweaks by self.
2013-10-12 14:08:59 +00:00
Brecht Van Lommel 9d7567d6ac Fix #37002: cycles viewport render shows white on old graphics cards with no
support for non-power-of-two textures.
2013-10-12 13:55:52 +00:00
Brecht Van Lommel 1a3011ac83 Fix #37045: blender internal SSS rendering black on some system when the SSS
reflection color was set to 1 1 1. BSSRDF parameter fit not converging properly
due to float precision issues.
2013-10-12 13:44:40 +00:00
Brecht Van Lommel 6d9ccbc28d Further tweak for dual quaternion armature deform problem, tweak the epsilon
value to solve some more cases.
2013-10-12 12:54:09 +00:00
Bastien Montagne 11f0e35236 Revert both own r60700 and r60702. API behavior for expanded enums is completly inconsistent, but again, better to do such changes (soft-breaking API) in bulk... 2013-10-12 11:28:37 +00:00
Antony Riakiotakis 61cceb3700 Add poll function for overlay panel. Thanks to Thomas Dinges for the report! 2013-10-12 11:18:38 +00:00
Lukas Toenne e192f5b198 Fix #37047, Expanded Enum Alignment glitching.
The enum item buttons in the node header change their alignr when switching the tree type, due to different things being shown in the header (this rarely happens in other panels, so it doesn't turn
up easily). The new alignnr needs to be copied to existing block buttons in ui_but_update_from_old_block to ensure the enum items get aligned to each other.
2013-10-12 11:05:12 +00:00
Bastien Montagne c7109b152e Followup to own r60700, fix was not correct... In fact, beahivor of expanded enums is not consistent with other properties, as there labels are never shown. Keep it for now, though, as this would break many scripts and ui file, better to do this in bulk!
Thanks to DingTo and plasmasolutions for notifying the issue.
2013-10-12 11:03:32 +00:00
Thomas Dinges c0295bd3d3 Code cleanup: Remove some more unused cycles SSS code, related to the lookup table. 2013-10-12 09:54:57 +00:00
Bastien Montagne b2d3b0244a Fix obvious error in expanded enum layout code, given uiname would never be use... 2013-10-12 09:43:57 +00:00
Irie Shinsuke 6caacff196 More fixes for PSD support in SCons scirpts... 2013-10-12 06:11:26 +00:00
Campbell Barton 7998b2f6a7 transform - use 2d float's for the viewport center (allows for vector math functions to be used more easily). 2013-10-12 03:42:06 +00:00
Campbell Barton b6db417ee4 code cleanup: use const's for vector args. 2013-10-12 02:19:37 +00:00
Brecht Van Lommel 744f691af4 Fix dual quaternion armature deform giving erratic results in some cases. Bug
was encountered in a Kiribati rig file.

The problem was actually in the matrix to quaternion conversion function. One
problem is that it was using the wrong matrix indices in case of an ill defined
matrix trace. Besides that FLT_EPSILON was too small to detect cases where
float precision becomes a problem.
2013-10-12 00:08:34 +00:00
Brecht Van Lommel 3127952259 Fix crash running Blender in background mode, caused by revision 60633. 2013-10-12 00:08:33 +00:00
Brecht Van Lommel 8f33609374 Code cleanup: remove some unused cycles SSS code. 2013-10-12 00:08:31 +00:00
Irie Shinsuke 90cd0a37a9 Fix build scripts related to PSD support. Both CMake and SCons builds were broken. 2013-10-11 23:14:01 +00:00
Jens Verwiebe c742bc266a OSX/scons: change again conditional for ftemplate, it can be ambigous with xcode5, cause there is still gcc and llvm-gcc symlinks to clang, so env['CXX'] is bad test then 2013-10-11 22:37:24 +00:00
Jens Verwiebe 356de10534 scons: fix WITH_PSD compiling, still i think muddled naming is used here, todo: cleanup 2013-10-11 21:37:25 +00:00
Irie Shinsuke b83f755542 Fix [#37049] Default keybindings: Text editor auto-complete accepts Return, but not Numpad Enter 2013-10-11 19:44:56 +00:00
Dalai Felinto acc6998007 adding url for openimageio project in CMake file (OpenEXR and OpenJpeg do the same) 2013-10-11 16:48:42 +00:00
Dalai Felinto 6549c1bf29 scons file for OIIO (needed for psd)
based on patch by Shinsuke Irie

note: scons is not working for me at the moment so I did not test this
patch. It should work fine though.
2013-10-11 16:38:31 +00:00
Dalai Felinto 029f4b9767 adding WITH_IMAGE_OPENIMAGEIO and removing the PSD build option
As per Brecht van Lommel's suggestion.
2013-10-11 16:38:04 +00:00
Bastien Montagne ce52dc2900 UI: Fix SSS pressets' buttons not being aligned anymore (to be backported to 2.69).
Issue found out by DingTo.
2013-10-11 15:45:42 +00:00
Brecht Van Lommel 1760f5fdcc Fix FreeBSD build with recent malloc changes, patch by Shane Ambler. 2013-10-11 14:41:00 +00:00
Bastien Montagne 76c94972da Fix [#37039] Resize lists by new grab handles puts file into unsaved state.
Simply do not enable undo for LISTBOX buttons (the same as ROUNDBOX & co). Many thanks to Campbell who did all the work here!
2013-10-11 12:50:19 +00:00
Antony Riakiotakis 31d492815e Fix #36905: backport of fix in soc-2013-paint. This commit ensures that during color sampling the cursor of the current brush is disabled. This avoids sampling of the brush cursor for really small brushes. Only caveat is that if operator exec is called then cursor might be visible in new sample location. This is not so common though. 2013-10-11 02:23:20 +00:00
Campbell Barton f895bc54cd code cleanup: boxpack, pack struct and use unsigned ints 2013-10-11 00:22:00 +00:00
Campbell Barton 67fb71ade5 fix [#37038] User prefs > Input - Category names cut off 2013-10-10 23:36:09 +00:00
Antony Riakiotakis 187f664c75 Fix #37036, pack and refresh button not aligned anymore. Also add
operator for opening images in the image editor header, it's easily one
of the most common operations, don't see why it has to be only accessed
from menu.
2013-10-10 23:33:59 +00:00
Campbell Barton 3f5be1ef0a fix for select linked walking over the same faces multiple times. (caused gset assertion). 2013-10-10 23:18:37 +00:00
Campbell Barton 03602dc158 use BLI_bitmap for editmesh selection buffer to save some memory. 2013-10-10 22:30:16 +00:00
Campbell Barton ecc5eb59c6 fix [#37030] Loop Cut and Slide doesn't clear header text if you click a blank area 2013-10-10 21:04:39 +00:00
Campbell Barton 830974bc1e fix [#37032] Blener crashes when parent to new object 2013-10-10 20:56:27 +00:00
Campbell Barton cb6e795a47 fix [#37031] bones are not selectable in weight paint mode anymore 2013-10-10 20:23:24 +00:00
Campbell Barton afab39b9d6 code cleanup: use const's for static arrays 2013-10-10 20:22:17 +00:00
Campbell Barton 35bb5465ae code cleanup: reuse rna_matrix_dimsize_NxN defines between RNA functions 2013-10-10 20:14:04 +00:00
Campbell Barton e220d3228f add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space. 2013-10-10 18:18:13 +00:00
Campbell Barton 8fd52b3433 style cleanup 2013-10-10 17:28:01 +00:00
Thomas Dinges 3d4bbd278a * Code cleanup for M_PI code. 2013-10-10 17:14:04 +00:00
Thomas Dinges 223c637a93 * Fix Windows compiler errors after recent Lock-free memory allocator commit.
Patch by Sergey, thanks. :)
2013-10-10 16:11:57 +00:00
Brecht Van Lommel b880b01db5 Fix OS X build error in malloc code, and warning in rna. 2013-10-10 15:44:47 +00:00
Dalai Felinto 180de82e41 ocio build fix for Windows
report by email and patch by Benoit Bolsee

"It is a basic compilation bug (variable defined in a c file and declared
in the c++ file: name decoration will change the name in the c++ file
and the linker will not find it)"
2013-10-10 14:24:52 +00:00
Lukas Toenne 0d5856e96e Made node socket flags into enum. 2013-10-10 13:09:00 +00:00
Lukas Toenne 906111cb22 Get rid of the draw_input/draw_output callbacks for nodes. These are pretty useless wrappers around socket draw functions. Only use-case is the File Output node, which draws socket format type instead of
an input value. This is now a special case in the standard socket type drawing, but should eventually become a socket type of its own for the File Output node.
2013-10-10 13:07:09 +00:00
Lukas Toenne 3b7d5a8a40 Change to node output socket drawing: Instead of always drawing only the socket label for outputs, leave this check up to the socket type draw function. This gives custom node scripts more flexibility in
how to draw socket values by allowing buttons on output sockets as well.

http://wiki.blender.org/index.php/Extensions:2.6/Py/API_Changes#Python_Node_Output_Drawing
2013-10-10 12:58:35 +00:00
Lukas Toenne 2a54928563 NodeSocket RNA property 'in_out' renamed as boolean 'is_output'. This is a more useful name and follows the API naming conventions better.
http://wiki.blender.org/index.php/Extensions:2.6/Py/API_Changes#Node_Socket_in_out
2013-10-10 12:58:33 +00:00
Antony Riakiotakis 33894a4cd5 Bake vertex colors should include vertex color alpha as well. 2013-10-10 12:50:34 +00:00
Sergey Sharybin 4bd4037276 Lock-free memory allocator
Release builds will now use lock-free allocator by
default without any internal locks happening.

MemHead is also reduces to as minimum as it's possible.
It still need to be size_t stored in a MemHead in order
to make us keep track on memory we're requesting from
the system, not memory which system is allocating. This
is probably also faster than using a malloc's usable
size function.

Lock-free guarded allocator will say you whether all
the blocks were freed, but wouldn't give you a list
of unfreed blocks list. To have such a list use a
--debug or --debug-memory command line arguments.

Debug builds does have the same behavior as release
builds. This is so tools like valgrind are not
screwed up by guarded allocator as they're currently
are.

--
svn merge -r59941:59942 -r60072:60073 -r60093:60094 \
          -r60095:60096 ^/branches/soc-2013-depsgraph_mt
2013-10-10 11:58:01 +00:00
Lukas Toenne 77a0b90cdf Cleanup: Consistent names for draw callbacks in bNodeType.
This aims to establish a common pattern for the various confusing draw callback function pointers in bNodeType:

draw_<purpose>_<nodetype>[_ex]

Currently there are 4 different types of draw callbacks:
* draw_nodetype, draw_nodetype_prepare: Main draw functions, allows specialized node drawing for things like frames and reroute nodes. Not exposed in the API.
* draw_buttons, draw_buttons_ex: Optional non-socket buttons, most commonly used callback. Extended version used in sidebar for verbose buttons that don't fit into a node.
* draw_backdrop: Draw elements in the backdrop (compositor only). Not exposed in the API.
* draw_input, draw_output: Specialized socket drawing for some nodes, only for OutputFile node. Should not be used any further and be removed at some point. Not exposed in the API.
2013-10-10 11:33:20 +00:00