Commit Graph

50339 Commits

Author SHA1 Message Date
Antony Riakiotakis
4109d5565f better naming for overlay panel, also only expose texture overlay for
modes that support it.
2013-10-09 15:21:49 +00:00
Antony Riakiotakis
df771e59fa Fix for evil bug in last commit, the image painting brush was being used
for the overlay option in all paint modes.
2013-10-09 15:07:48 +00:00
Antony Riakiotakis
59b8097cf8 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.
2013-10-09 14:57:48 +00:00
Campbell Barton
de3f6b3ec1 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)
2013-10-09 14:35:25 +00:00
Sergey Sharybin
49bc310671 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).
2013-10-09 08:46:02 +00:00
Campbell Barton
22a30f78f2 style cleanup 2013-10-09 05:59:35 +00:00
Dalai Felinto
ac908090ad fix for building with OPENJPEG after PSD commit
reported via email, patch by PerfectionCat
2013-10-09 02:48:42 +00:00
Dalai Felinto
48afcb80b5 fix building when WITH_PSD is OFF, stub is not needed afterall 2013-10-09 02:33:44 +00:00
Dalai Felinto
4abb8fde95 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:
342cc2633f

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.
2013-10-08 21:17:24 +00:00
Campbell Barton
590f58d455 code cleanup: redundant includes and add minor comments. 2013-10-08 20:18:38 +00:00
Campbell Barton
bfd6f6041d remove redundant NULL checks 2013-10-08 19:47:53 +00:00
Dalai Felinto
8e9aa452bb 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.
2013-10-08 19:28:11 +00:00
Thomas Dinges
0973270fbf * Code cleanup, comments in readfile.c. 2013-10-08 17:15:49 +00:00
Thomas Dinges
e6ce07a5d4 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
2013-10-08 17:07:18 +00:00
Campbell Barton
03f7885b0a id-data eyedropprt, currently only accessible via the Ekey,
We need to investigate ways to add options like this without cluttering the interface.
2013-10-08 15:32:54 +00:00
Thomas Dinges
b5a5773fa9 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.
2013-10-08 15:29:28 +00:00
Thomas Dinges
dfe1610504 Release Maintenance:
* Blender 2.70 release cycle begins, BCon1.
2013-10-08 15:23:19 +00:00
Campbell Barton
ed758beb66 move eyedropper into its own file, uses mostly different includes to interface_ops.c 2013-10-08 15:07:52 +00:00
Campbell Barton
e8551313f6 e-key to access the eyedropper over a color button. 2013-10-08 13:58:28 +00:00
Campbell Barton
d41413758d move color button event handling into its own function. 2013-10-08 13:49:42 +00:00
Campbell Barton
2101237227 make bookmake name consistent was: FILE_OT_bookmark_add/FILE_OT_delete_bookmark 2013-10-08 13:16:14 +00:00
Campbell Barton
7e5d5e61ae avoid allocating a dummy string for the unlink button. 2013-10-08 13:10:22 +00:00
Campbell Barton
525d0cac82 remove toolsettings (unused for a long time). 2013-10-08 13:07:09 +00:00
Bastien Montagne
17f1dc7c0d 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.
2013-10-08 12:52:01 +00:00
Campbell Barton
98a4ae8562 use booleans in BKE_nurb_handles_autocalc and BMO_op_vinitf 2013-10-08 12:35:58 +00:00
Campbell Barton
b0bb5cc6b2 replace len_v3v3 with len_squared_v3v3 for comparisons. 2013-10-08 12:03:49 +00:00
Campbell Barton
916f793a70 code cleanup: strange formatting. 2013-10-08 11:27:39 +00:00
Campbell Barton
eb51bfcfca uiSetRoundBox still took hard coded numbers in places. 2013-10-08 11:23:14 +00:00
Campbell Barton
13a21588ae rename UI_OT_eyedropper to UI_OT_eyedropper_color to make way for other kinds of eyedroppers. 2013-10-08 10:52:33 +00:00
Campbell Barton
81c957da6a fix for incorrect size passed to BLI_strncpy(). 2013-10-07 19:45:13 +00:00
Antony Riakiotakis
1beec5ba47 Add GLEW_STATIC definition for CMake as well. 2013-10-07 18:56:21 +00:00
Campbell Barton
6aedad4bff 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.
2013-10-07 16:48:26 +00:00
Sergey Sharybin
098207e634 Fix regression in r59316
Different version could be passed here, added check
cached path is calculated with the proper one.
2013-10-07 16:06:15 +00:00
Campbell Barton
23440884fe fix for casting shadows of scaled objects was made to X_BlenderRenderTools.cpp but not to GPC_RenderTools.cpp. 2013-10-07 12:14:59 +00:00
Campbell Barton
11087d4a82 remove minor differences between these 2 files which are almost exact duplicates (tsk tsk!) 2013-10-07 12:12:59 +00:00
Campbell Barton
024539b974 revert r58693. patch [#36233], caused regression (bug report [#36959]). 2013-10-07 11:51:59 +00:00
Lukas Toenne
31433a3809 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.
2013-10-07 09:25:39 +00:00
Sergey Sharybin
51a7089bea 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.
2013-10-07 08:06:19 +00:00
Sergey Sharybin
ca152da258 Remove unused and meaningless line. 2013-10-07 07:53:36 +00:00
Bastien Montagne
58af8d4387 Fix for conf instructions for scons... 2013-10-07 07:42:00 +00:00
Bastien Montagne
6631d4ddd5 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…
2013-10-07 07:39:58 +00:00
Brecht Van Lommel
03bb0f5c72 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.
2013-10-06 14:32:53 +00:00
Thomas Dinges
31db661e1d * Display warning icon for SSS/GPU message. 2013-10-06 12:22:30 +00:00
Lukas Toenne
96f4ee03d4 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.
2013-10-06 10:49:40 +00:00
Lukas Toenne
46a1d921f1 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.
2013-10-06 10:28:09 +00:00
Brecht Van Lommel
e9d03296c7 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.
2013-10-05 19:56:34 +00:00
Brecht Van Lommel
c7882ec3bb Fix for my last customdata fix, accidentally left in comments. 2013-10-05 19:56:32 +00:00
Campbell Barton
b20c3f97a4 rename presets not to use '+' character, also some typo fixes. 2013-10-05 14:19:39 +00:00
Gaia Clary
874f68279f replaced export for OpenSim by Export for SL/OpenSim in Collada export user interface (conforming to Linden Lab document http://secondlife.com/corporate/brand/trademark/sl_insl.php ) 2013-10-05 14:10:29 +00:00
Gaia Clary
9c8f5a7c36 Replaced opensim by sl+opensim in collada presets (conforming to Linden Lab document http://secondlife.com/corporate/brand/trademark/sl_insl.php ) 2013-10-05 14:09:13 +00:00