blender-staging.git
7 years agoscons file for OIIO (needed for psd)
Dalai Felinto [Fri, 11 Oct 2013 16:38:31 +0000 (16:38 +0000)]
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.

7 years agoadding WITH_IMAGE_OPENIMAGEIO and removing the PSD build option
Dalai Felinto [Fri, 11 Oct 2013 16:38:04 +0000 (16:38 +0000)]
adding WITH_IMAGE_OPENIMAGEIO and removing the PSD build option
As per Brecht van Lommel's suggestion.

7 years agoUI: Fix SSS pressets' buttons not being aligned anymore (to be backported to 2.69).
Bastien Montagne [Fri, 11 Oct 2013 15:45:42 +0000 (15:45 +0000)]
UI: Fix SSS pressets' buttons not being aligned anymore (to be backported to 2.69).

Issue found out by DingTo.

7 years agoFix FreeBSD build with recent malloc changes, patch by Shane Ambler.
Brecht Van Lommel [Fri, 11 Oct 2013 14:41:00 +0000 (14:41 +0000)]
Fix FreeBSD build with recent malloc changes, patch by Shane Ambler.

7 years agoFix [#37039] Resize lists by new grab handles puts file into unsaved state.
Bastien Montagne [Fri, 11 Oct 2013 12:50:19 +0000 (12:50 +0000)]
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!

7 years agoFix #36905: backport of fix in soc-2013-paint. This commit ensures that during color...
Antony Riakiotakis [Fri, 11 Oct 2013 02:23:20 +0000 (02:23 +0000)]
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.

7 years agocode cleanup: boxpack, pack struct and use unsigned ints
Campbell Barton [Fri, 11 Oct 2013 00:22:00 +0000 (00:22 +0000)]
code cleanup: boxpack, pack struct and use unsigned ints

7 years agofix [#37038] User prefs > Input - Category names cut off
Campbell Barton [Thu, 10 Oct 2013 23:36:09 +0000 (23:36 +0000)]
fix [#37038] User prefs > Input - Category names cut off

7 years agoFix #37036, pack and refresh button not aligned anymore. Also add
Antony Riakiotakis [Thu, 10 Oct 2013 23:33:59 +0000 (23:33 +0000)]
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.

7 years agofix for select linked walking over the same faces multiple times. (caused gset assert...
Campbell Barton [Thu, 10 Oct 2013 23:18:37 +0000 (23:18 +0000)]
fix for select linked walking over the same faces multiple times. (caused gset assertion).

7 years agouse BLI_bitmap for editmesh selection buffer to save some memory.
Campbell Barton [Thu, 10 Oct 2013 22:30:16 +0000 (22:30 +0000)]
use BLI_bitmap for editmesh selection buffer to save some memory.

7 years agofix [#37030] Loop Cut and Slide doesn't clear header text if you click a blank area
Campbell Barton [Thu, 10 Oct 2013 21:04:39 +0000 (21:04 +0000)]
fix [#37030] Loop Cut and Slide doesn't clear header text if you click a blank area

7 years agofix [#37032] Blener crashes when parent to new object
Campbell Barton [Thu, 10 Oct 2013 20:56:27 +0000 (20:56 +0000)]
fix [#37032] Blener crashes when parent to new object

7 years agofix [#37031] bones are not selectable in weight paint mode anymore
Campbell Barton [Thu, 10 Oct 2013 20:23:24 +0000 (20:23 +0000)]
fix [#37031] bones are not selectable in weight paint mode anymore

7 years agocode cleanup: use const's for static arrays
Campbell Barton [Thu, 10 Oct 2013 20:22:17 +0000 (20:22 +0000)]
code cleanup: use const's for static arrays

7 years agocode cleanup: reuse rna_matrix_dimsize_NxN defines between RNA functions
Campbell Barton [Thu, 10 Oct 2013 20:14:04 +0000 (20:14 +0000)]
code cleanup: reuse rna_matrix_dimsize_NxN defines between RNA functions

7 years agoadd MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space.
Campbell Barton [Thu, 10 Oct 2013 18:18:13 +0000 (18:18 +0000)]
add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space.

7 years agostyle cleanup
Campbell Barton [Thu, 10 Oct 2013 17:28:01 +0000 (17:28 +0000)]
style cleanup

7 years ago* Code cleanup for M_PI code.
Thomas Dinges [Thu, 10 Oct 2013 17:14:04 +0000 (17:14 +0000)]
* Code cleanup for M_PI code.

7 years ago* Fix Windows compiler errors after recent Lock-free memory allocator commit.
Thomas Dinges [Thu, 10 Oct 2013 16:11:57 +0000 (16:11 +0000)]
* Fix Windows compiler errors after recent Lock-free memory allocator commit.
Patch by Sergey, thanks. :)

7 years agoFix OS X build error in malloc code, and warning in rna.
Brecht Van Lommel [Thu, 10 Oct 2013 15:44:47 +0000 (15:44 +0000)]
Fix OS X build error in malloc code, and warning in rna.

7 years agoocio build fix for Windows
Dalai Felinto [Thu, 10 Oct 2013 14:24:52 +0000 (14:24 +0000)]
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)"

7 years agoMade node socket flags into enum.
Lukas Toenne [Thu, 10 Oct 2013 13:09:00 +0000 (13:09 +0000)]
Made node socket flags into enum.

7 years agoGet rid of the draw_input/draw_output callbacks for nodes. These are pretty useless...
Lukas Toenne [Thu, 10 Oct 2013 13:07:09 +0000 (13:07 +0000)]
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.

7 years agoChange to node output socket drawing: Instead of always drawing only the socket label...
Lukas Toenne [Thu, 10 Oct 2013 12:58:35 +0000 (12:58 +0000)]
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

7 years agoNodeSocket RNA property 'in_out' renamed as boolean 'is_output'. This is a more usefu...
Lukas Toenne [Thu, 10 Oct 2013 12:58:33 +0000 (12:58 +0000)]
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

7 years agoBake vertex colors should include vertex color alpha as well.
Antony Riakiotakis [Thu, 10 Oct 2013 12:50:34 +0000 (12:50 +0000)]
Bake vertex colors should include vertex color alpha as well.

7 years agoLock-free memory allocator
Sergey Sharybin [Thu, 10 Oct 2013 11:58:01 +0000 (11:58 +0000)]
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

7 years agoCleanup: Consistent names for draw callbacks in bNodeType.
Lukas Toenne [Thu, 10 Oct 2013 11:33:20 +0000 (11:33 +0000)]
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.

7 years agoSupport for baking vertex colors to textures.
Antony Riakiotakis [Thu, 10 Oct 2013 11:00:12 +0000 (11:00 +0000)]
Support for baking vertex colors to textures.

It allows effects such as baking vertex dirt maps to textures.
Also vertex based painting painting may be faster in the future,
so this is useful to have.

Thanks to Sergey for the review!

7 years agoWeight Paint Tools: Add "Subset" option to "Normalize All"
Irie Shinsuke [Thu, 10 Oct 2013 06:33:23 +0000 (06:33 +0000)]
Weight Paint Tools: Add "Subset" option to "Normalize All"

This option is needed when vertex groups are used for both armature
deformation and the other purpose such as influence of mesh modifier.

Thanks to Campbell for code review!

7 years agostyle cleanup
Campbell Barton [Wed, 9 Oct 2013 21:19:25 +0000 (21:19 +0000)]
style cleanup

7 years agoFix compilation error of OCIO with MSVC
Sergey Sharybin [Wed, 9 Oct 2013 20:45:29 +0000 (20:45 +0000)]
Fix compilation error of OCIO with MSVC

7 years agofix save-as-copy option changing the filepath for new files.
Campbell Barton [Wed, 9 Oct 2013 20:27:38 +0000 (20:27 +0000)]
fix save-as-copy option changing the filepath for new files.

7 years agoLibmv: make sure CmakeList.txt is re-created with all needed headers on re-bundle
Sergey Sharybin [Wed, 9 Oct 2013 20:21:12 +0000 (20:21 +0000)]
Libmv: make sure CmakeList.txt is re-created with all needed headers on re-bundle

7 years agoFix windows scons OSL build error, just use quotes now instead of array.
Brecht Van Lommel [Wed, 9 Oct 2013 20:11:18 +0000 (20:11 +0000)]
Fix windows scons OSL build error, just use quotes now instead of array.

7 years agoLibmv: move platform-specific defines into own file
Sergey Sharybin [Wed, 9 Oct 2013 20:02:02 +0000 (20:02 +0000)]
Libmv: move platform-specific defines into own file

7 years agoFix compilation error after recent libmv change
Sergey Sharybin [Wed, 9 Oct 2013 19:49:09 +0000 (19:49 +0000)]
Fix compilation error after recent libmv change

- Tweaked typedefs in stdint so they match
  what we've got in BLI_sys_types (needed to
  explicitly tell sign to MSVC).

  Not so much harmful to be more explicit here,
  but we really better to have single stdint
  int blender.

- Tweaked allocations macros so MSVC is happy
  with structures allocation.

7 years agofix [#37011] "Save Copy" option misfunction
Dalai Felinto [Wed, 9 Oct 2013 19:29:50 +0000 (19:29 +0000)]
fix [#37011] "Save Copy" option misfunction

7 years agoFix OSL shader build failing with spaces in the path to build directory,
Brecht Van Lommel [Wed, 9 Oct 2013 18:48:32 +0000 (18:48 +0000)]
Fix OSL shader build failing with spaces in the path to build directory,
patch by Campbell.

7 years agoFix [#37012] The new export split normal does nor produce correct results.
Bastien Montagne [Wed, 9 Oct 2013 17:48:27 +0000 (17:48 +0000)]
Fix [#37012] The new export split normal does nor produce correct results.

Was a silly error introduced in algo during optimization, vertices having sharp and smooth edges would only get the first poly's normal for each "smooth loop group".

Also done a (minor) optimization, and some comment fixes.

7 years agoFix uber evil (-15 alignment points) own buffer overflow
Antony Riakiotakis [Wed, 9 Oct 2013 16:53:35 +0000 (16:53 +0000)]
Fix uber evil (-15 alignment points) own buffer overflow

7 years agoFix #36991, After rendering with Sampled Motion Blur, the moving objects place is...
Lukas Toenne [Wed, 9 Oct 2013 16:49:13 +0000 (16:49 +0000)]
Fix #36991, After rendering with Sampled Motion Blur, the moving objects place is wrong.
With mblur the render function was setting scene frame for each blur sample and calling DAG update, but not after the last sample is finished, leaving the scene in the wrong frame.

7 years agominor code cleanup.
Antony Riakiotakis [Wed, 9 Oct 2013 16:04:08 +0000 (16:04 +0000)]
minor code cleanup.

7 years agoPaint cursor overlays: Delete the cursor texture overlay resources when
Antony Riakiotakis [Wed, 9 Oct 2013 16:00:15 +0000 (16:00 +0000)]
Paint cursor overlays: Delete the cursor texture overlay resources when
exiting a paint mode.

7 years agoImplementation of curve mapping in GLSL
Sergey Sharybin [Wed, 9 Oct 2013 15:57:32 +0000 (15:57 +0000)]
Implementation of curve mapping in GLSL

The title says it all, now having curve mapping
enabled in color management settings wouldn't
force fallback from GLSL to CPU based color space
conversion.

7 years agoDerivative map baker
Sergey Sharybin [Wed, 9 Oct 2013 15:51:14 +0000 (15:51 +0000)]
Derivative map baker

Added support for derivative map baking, which
is accessable as a dedicated baker type. Works
pretty much the same as displacement map baker,
but gives you derivative map.

In fact, inernally this baker is just a filter
which applies on the result of displacement map.

Both regular and multires baking are supported.

Patch by Morten Mikkelsen and self.

7 years agofix [#37007] Save to file - increment number doesn't update background color of filen...
Campbell Barton [Wed, 9 Oct 2013 15:36:04 +0000 (15:36 +0000)]
fix [#37007] Save to file - increment number doesn't update background color of filename field if hovered

7 years agobetter naming for overlay panel, also only expose texture overlay for
Antony Riakiotakis [Wed, 9 Oct 2013 15:21:49 +0000 (15:21 +0000)]
better naming for overlay panel, also only expose texture overlay for
modes that support it.

7 years agoFix for evil bug in last commit, the image painting brush was being used
Antony Riakiotakis [Wed, 9 Oct 2013 15:07:48 +0000 (15:07 +0000)]
Fix for evil bug in last commit, the image painting brush was being used
for the overlay option in all paint modes.

7 years agoSegregate all paint cursor overlay options under their own "Overlay"
Antony Riakiotakis [Wed, 9 Oct 2013 14:57:48 +0000 (14:57 +0000)]
Segregate all paint cursor overlay options under their own "Overlay"
panel in paint modes. Also expose all options of mask textures in the
mask texture panel, even if there is no texture, just like regular
textures are presented.

7 years agore-enable activating the text input field for new popup dialog boxes,
Campbell Barton [Wed, 9 Oct 2013 14:35:25 +0000 (14:35 +0000)]
re-enable activating the text input field for new popup dialog boxes,
I'd disabled this for 2.68 since it caused bug [#36109].

This fix now only enabled text activation for popups. (so the toolbar textboxes are skipped)

7 years agoMove guarded objetc allocation to a guardedalloc header
Sergey Sharybin [Wed, 9 Oct 2013 08:46:02 +0000 (08:46 +0000)]
Move guarded objetc allocation to a guardedalloc header

Also made libmv-capi use guarded objetc allocation.
Run into some suspecious cases when it was not so
clear whether memory is being freed or not.

Now we'll know for sure whether there're leaks or not :)

Having this macros in a guardedalloc header helps
using them in other areas (for now it's OCIO and libmv,
but in the future it'll be more places).

7 years agostyle cleanup
Campbell Barton [Wed, 9 Oct 2013 05:59:35 +0000 (05:59 +0000)]
style cleanup

7 years agofix for building with OPENJPEG after PSD commit
Dalai Felinto [Wed, 9 Oct 2013 02:48:42 +0000 (02:48 +0000)]
fix for building with OPENJPEG after PSD commit

reported via email, patch by PerfectionCat

7 years agofix building when WITH_PSD is OFF, stub is not needed afterall
Dalai Felinto [Wed, 9 Oct 2013 02:33:44 +0000 (02:33 +0000)]
fix building when WITH_PSD is OFF, stub is not needed afterall

7 years agoPhotoshop PSD support
Dalai Felinto [Tue, 8 Oct 2013 21:17:24 +0000 (21:17 +0000)]
Photoshop PSD support

We now support the combined layer of Photoshop files (stored as layer 0
in the file). This way users can keep their files as multilayer PSD and
Blender always handle them as flat images.

For perfect alpha this requires an OpenImageIO update:
https://github.com/OpenImageIO/oiio/commit/342cc2633ff590a3bb278481c61ae798c7148361

Photoshop sample files:
https://github.com/OpenImageIO/oiio-images

Brecht has some pending fixes to push for OIIO as well, so we may as
well wait to update our libraries.

What works:
===========
* 8bit images (with or without alpha)
* 16bits images (alpha discarded)
* Photoshop files saved with 'Maximum Compatibility'
* Cycles, Blender internal,  BGE (and player)

Known limitations
(due to OIIO dependency):
=========================
* Images with less than 4 channels show a wrong thumbnail (bug may be in  OIIO)
* Packed images are not supported
* We do not write PSD files.

Note: old Blenders have support for PSD via Quicktime library. But due
to license issues this was discontinued.

Many thanks for Brecht van Lommel for reviewing the patch, suggesting
multiple improvements and to help solving the alpha issue.

7 years agocode cleanup: redundant includes and add minor comments.
Campbell Barton [Tue, 8 Oct 2013 20:18:38 +0000 (20:18 +0000)]
code cleanup: redundant includes and add minor comments.

7 years agoremove redundant NULL checks
Campbell Barton [Tue, 8 Oct 2013 19:47:53 +0000 (19:47 +0000)]
remove redundant NULL checks

7 years agoTriangulate Modifier changes - using scanfill
Dalai Felinto [Tue, 8 Oct 2013 19:28:11 +0000 (19:28 +0000)]
Triangulate Modifier changes - using scanfill

The ear loop method is potentially too slow (OˆN).

We are not using the 'beauty' option at the moment.
I'll incorporate that next.
(and later specific methods for quad splitting)

Patch done in collaboration (and reviewed by)  with Campbell Barton.

7 years ago* Code cleanup, comments in readfile.c.
Thomas Dinges [Tue, 8 Oct 2013 17:15:49 +0000 (17:15 +0000)]
* Code cleanup, comments in readfile.c.

7 years agoCycles / SSS:
Thomas Dinges [Tue, 8 Oct 2013 17:07:18 +0000 (17:07 +0000)]
Cycles / SSS:
* Remove the compatible falloff SSS implementation. We shouldn't support two implementations in the long term, and 2.7x is a good release number do break some compatibility as well.

* Version patch added, so Files with Compatible falloff will automatically use Cubic now.

It was already mentioned in the manual, that Compatible is deprecated.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#BSSRDF

7 years agoid-data eyedropprt, currently only accessible via the Ekey,
Campbell Barton [Tue, 8 Oct 2013 15:32:54 +0000 (15:32 +0000)]
id-data eyedropprt, currently only accessible via the Ekey,

We need to investigate ways to add options like this without cluttering the interface.

7 years agoCycles / CUDA:
Thomas Dinges [Tue, 8 Oct 2013 15:29:28 +0000 (15:29 +0000)]
Cycles / CUDA:
* Remove support for  CUDA Toolkit 4.x, only Toolkit 5.0 and above are supported now.
* Remove support for sm_1x cards (< Fermi) for good. We didn't officially support those cards for a few releases already, now remove some special code that was still there.

7 years agoRelease Maintenance:
Thomas Dinges [Tue, 8 Oct 2013 15:23:19 +0000 (15:23 +0000)]
Release Maintenance:
* Blender 2.70 release cycle begins, BCon1.

7 years agomove eyedropper into its own file, uses mostly different includes to interface_ops.c
Campbell Barton [Tue, 8 Oct 2013 15:07:52 +0000 (15:07 +0000)]
move eyedropper into its own file, uses mostly different includes to interface_ops.c

7 years agoe-key to access the eyedropper over a color button.
Campbell Barton [Tue, 8 Oct 2013 13:58:28 +0000 (13:58 +0000)]
e-key to access the eyedropper over a color button.

7 years agomove color button event handling into its own function.
Campbell Barton [Tue, 8 Oct 2013 13:49:42 +0000 (13:49 +0000)]
move color button event handling into its own function.

7 years agomake bookmake name consistent was: FILE_OT_bookmark_add/FILE_OT_delete_bookmark
Campbell Barton [Tue, 8 Oct 2013 13:16:14 +0000 (13:16 +0000)]
make bookmake name consistent was: FILE_OT_bookmark_add/FILE_OT_delete_bookmark

7 years agoavoid allocating a dummy string for the unlink button.
Campbell Barton [Tue, 8 Oct 2013 13:10:22 +0000 (13:10 +0000)]
avoid allocating a dummy string for the unlink button.

7 years agoremove toolsettings (unused for a long time).
Campbell Barton [Tue, 8 Oct 2013 13:07:09 +0000 (13:07 +0000)]
remove toolsettings (unused for a long time).

7 years agoFix [#36993] Blender 2.69 test build freezes when changing metaball view resolution...
Bastien Montagne [Tue, 8 Oct 2013 12:52:01 +0000 (12:52 +0000)]
Fix [#36993] Blender 2.69 test build freezes when changing metaball view resolution to less that 0.100

Tweaking UI range settings, as suggested by Sergej Reich in report.

7 years agouse booleans in BKE_nurb_handles_autocalc and BMO_op_vinitf
Campbell Barton [Tue, 8 Oct 2013 12:35:58 +0000 (12:35 +0000)]
use booleans in BKE_nurb_handles_autocalc and BMO_op_vinitf

7 years agoreplace len_v3v3 with len_squared_v3v3 for comparisons.
Campbell Barton [Tue, 8 Oct 2013 12:03:49 +0000 (12:03 +0000)]
replace len_v3v3 with len_squared_v3v3 for comparisons.

7 years agocode cleanup: strange formatting.
Campbell Barton [Tue, 8 Oct 2013 11:27:39 +0000 (11:27 +0000)]
code cleanup: strange formatting.

7 years agouiSetRoundBox still took hard coded numbers in places.
Campbell Barton [Tue, 8 Oct 2013 11:23:14 +0000 (11:23 +0000)]
uiSetRoundBox still took hard coded numbers in places.

7 years agorename UI_OT_eyedropper to UI_OT_eyedropper_color to make way for other kinds of...
Campbell Barton [Tue, 8 Oct 2013 10:52:33 +0000 (10:52 +0000)]
rename UI_OT_eyedropper to UI_OT_eyedropper_color to make way for other kinds of eyedroppers.

7 years agofix for incorrect size passed to BLI_strncpy().
Campbell Barton [Mon, 7 Oct 2013 19:45:13 +0000 (19:45 +0000)]
fix for incorrect size passed to BLI_strncpy().

7 years agoAdd GLEW_STATIC definition for CMake as well.
Antony Riakiotakis [Mon, 7 Oct 2013 18:56:21 +0000 (18:56 +0000)]
Add GLEW_STATIC definition for CMake as well.

7 years agofix for crash on load if the file was saved in editmesh,
Campbell Barton [Mon, 7 Oct 2013 16:48:26 +0000 (16:48 +0000)]
fix for crash on load if the file was saved in editmesh,
BKE_mesh_uv_cdlayer_rename_index was checking editmesh pointer before it was NULL'd by direct_link_mesh.

7 years agoFix regression in r59316
Sergey Sharybin [Mon, 7 Oct 2013 16:06:15 +0000 (16:06 +0000)]
Fix regression in r59316

Different version could be passed here, added check
cached path is calculated with the proper one.

7 years agofix for casting shadows of scaled objects was made to X_BlenderRenderTools.cpp but...
Campbell Barton [Mon, 7 Oct 2013 12:14:59 +0000 (12:14 +0000)]
fix for casting shadows of scaled objects was made to X_BlenderRenderTools.cpp but not to GPC_RenderTools.cpp.

7 years agoremove minor differences between these 2 files which are almost exact duplicates...
Campbell Barton [Mon, 7 Oct 2013 12:12:59 +0000 (12:12 +0000)]
remove minor differences between these 2 files which are almost exact duplicates (tsk tsk!)

7 years agorevert r58693. patch [#36233], caused regression (bug report [#36959]).
Campbell Barton [Mon, 7 Oct 2013 11:51:59 +0000 (11:51 +0000)]
revert r58693. patch [#36233], caused regression (bug report [#36959]).

7 years agoFix #36981, Removing Sample line fails during render.
Lukas Toenne [Mon, 7 Oct 2013 09:25:39 +0000 (09:25 +0000)]
Fix #36981, Removing Sample line fails during render.
The SAMPLELINE flag in histogram was set during the BKE_histogram_update_sample_line function. That function in turn is called during every scope update in area draw function, meaning that during render
it constantly gets set. OTOH the operator tries to disable the flag on invoke, which "cancels" the sample line by default. So during render the operator un-setting of the flag has no effect, because the
render job immediatly triggers a redraw, which updates scopes and sets it again.

Moved the flag out of the actual sample line update function into the operator execute. Now only the operator enables/disables overall sample line drawing, while the rest of the update works as before.

7 years agoFix #36980: Color space issue when displaying pixel color in a render
Sergey Sharybin [Mon, 7 Oct 2013 08:06:19 +0000 (08:06 +0000)]
Fix #36980: Color space issue when displaying pixel color in a render

HSV values were calculated from a linear space color, which is
not so much useful and correct. Now RGB(A) buffers will use
color managed color for HSV values.

Still not sure which color to use for HSV when there's only one
channel in a buffer. This part left unchanged for now.

7 years agoRemove unused and meaningless line.
Sergey Sharybin [Mon, 7 Oct 2013 07:53:36 +0000 (07:53 +0000)]
Remove unused and meaningless line.

7 years agoFix for conf instructions for scons...
Bastien Montagne [Mon, 7 Oct 2013 07:42:00 +0000 (07:42 +0000)]
Fix for conf instructions for scons...

7 years agoBuild fix (issue could happen with scons,reported by ebrain on IRC, thanks).
Bastien Montagne [Mon, 7 Oct 2013 07:39:58 +0000 (07:39 +0000)]
Build fix (issue could happen with scons,reported by ebrain on IRC, thanks).

Var declared in an #ifdef DEBUG, but used in an #ifndef NDEBUG…

7 years agoRevert revision 59985, 59986, 60046 and 60067. These were fixes to improve save
Brecht Van Lommel [Sun, 6 Oct 2013 14:32:53 +0000 (14:32 +0000)]
Revert revision 59985, 59986, 60046 and 60067. These were fixes to improve save
and restore of window setups with multiple monitors, but they are also causing
regressions, in particular issues with Blender overlapping the taskbar and the
user preferences opening wrong. We decided to revert to the old behavior for
the release.

See bug #36707 for the full explanation.

7 years ago* Display warning icon for SSS/GPU message.
Thomas Dinges [Sun, 6 Oct 2013 12:22:30 +0000 (12:22 +0000)]
* Display warning icon for SSS/GPU message.

7 years agoCheck the node Add operator's type property before attempting to create a new node...
Lukas Toenne [Sun, 6 Oct 2013 10:49:40 +0000 (10:49 +0000)]
Check the node Add operator's type property before attempting to create a new node. This prevents python exceptions when calling it from the search menu, where the node type is unspecified.
Reported by Sebastian Koenig in unrelated bug report #36968.

7 years agoFix for Output File node operators: added a sanity type check to avoid using invalid...
Lukas Toenne [Sun, 6 Oct 2013 10:28:09 +0000 (10:28 +0000)]
Fix for Output File node operators: added a sanity type check to avoid using invalid node data.
Reported by Sebastian Koenig in unrelated bug report #36968.

7 years agoBetter fix for #36935 and 36316:
Brecht Van Lommel [Sat, 5 Oct 2013 19:56:34 +0000 (19:56 +0000)]
Better fix for #36935 and 36316:

* 32 bit GCC builds now have the SSE BVH optimizations turned off, but still
  compile with SSE flags for better performance.

* White color when rendering on Windows seems to have been unrelated to SSE,
  rather it was a graphics driver not supporting half float textures, added a
  check for that now.

7 years agoFix for my last customdata fix, accidentally left in comments.
Brecht Van Lommel [Sat, 5 Oct 2013 19:56:32 +0000 (19:56 +0000)]
Fix for my last customdata fix, accidentally left in comments.

7 years agorename presets not to use '+' character, also some typo fixes.
Campbell Barton [Sat, 5 Oct 2013 14:19:39 +0000 (14:19 +0000)]
rename presets not to use '+' character, also some typo fixes.

7 years agoreplaced export for OpenSim by Export for SL/OpenSim in Collada export user interface...
Gaia Clary [Sat, 5 Oct 2013 14:10:29 +0000 (14:10 +0000)]
replaced export for OpenSim by Export for SL/OpenSim in Collada export user interface (conforming to Linden Lab document secondlife.com/corporate/brand/trademark/sl_insl.php )

7 years agoReplaced opensim by sl+opensim in collada presets (conforming to Linden Lab document...
Gaia Clary [Sat, 5 Oct 2013 14:09:13 +0000 (14:09 +0000)]
Replaced opensim by sl+opensim in collada presets (conforming to Linden Lab document secondlife.com/corporate/brand/trademark/sl_insl.php )

7 years agoFix for unnecessary customdata warning with empty meshes.
Brecht Van Lommel [Sat, 5 Oct 2013 13:36:55 +0000 (13:36 +0000)]
Fix for unnecessary customdata warning with empty meshes.

7 years agoFix #36962, "Render emitter" option for hair is ignored in Cycles. Hair particles...
Lukas Toenne [Sat, 5 Oct 2013 12:46:32 +0000 (12:46 +0000)]
Fix #36962, "Render emitter" option for hair is ignored in Cycles. Hair particles use the hide_tris boolean to disable rendering of the emitter, but this was still ANDed with the "experimental" flag.
Hair is not experimental any longer, so this has to be removed.