blender.git
6 years agofix for building with BSD & MinGW.
Campbell Barton [Fri, 18 Jan 2013 21:05:37 +0000 (21:05 +0000)]
fix for building with BSD & MinGW.

6 years agomove draw all edges into the object settings (object panel), makes more sense here...
Campbell Barton [Fri, 18 Jan 2013 19:01:26 +0000 (19:01 +0000)]
move draw all edges into the object settings (object panel), makes more sense here since its next to draw extra wire

6 years agoFix #33916: 2.65a regression: particles duplicating objects with halo - crash
Sergey Sharybin [Fri, 18 Jan 2013 12:29:18 +0000 (12:29 +0000)]
Fix #33916: 2.65a regression: particles duplicating objects with halo - crash

allow_render_dupli_instance used to pass zero-based index to give_current_material
which is wrong.

Before rev53332 it wasn't so much visible because give_current_material used
to clamp index internally. But that was wrong behavior here anyway, and why
nobody noticed this for so long? :)

6 years agoFix #33910: Wipe effect starts and stops to early with blur enabled.
Sergey Sharybin [Fri, 18 Jan 2013 09:36:17 +0000 (09:36 +0000)]
Fix #33910: Wipe effect starts and stops to early with blur enabled.

Made small tweaks which now limits blur width in a way it can not
be wider than distance between frame boundary and wipe effect center.
It eliminates weirdeness of how blur appears/disappears in cases
effect fac is close to 0/1.

Could be tweaked further but will require effect rewrite it seems.

6 years agoApplying sRGB color space transform when baking to vertex colors. Thanks to Campbell...
Alex Fraser [Fri, 18 Jan 2013 09:19:43 +0000 (09:19 +0000)]
Applying sRGB color space transform when baking to vertex colors. Thanks to Campbell Barton and Sergey Sharybin for their help!

6 years agoFix #33913: Unable to set sequencer proxy custom directory as relative path
Sergey Sharybin [Fri, 18 Jan 2013 08:44:55 +0000 (08:44 +0000)]
Fix #33913: Unable to set sequencer proxy custom directory as relative path

Added absolute->relative conversion for directory in file_browse_exec.
This is how other places deals with this, but perhaps we'd better change
file selection so both filepath and directory are affected by relative
option.

6 years agouse openmp sections for felling origindex arrays
Campbell Barton [Fri, 18 Jan 2013 06:26:06 +0000 (06:26 +0000)]
use openmp sections for felling origindex arrays

6 years agoCycles Test App:
Thomas Dinges [Thu, 17 Jan 2013 22:51:54 +0000 (22:51 +0000)]
Cycles Test App:
* Fix compile for camera xml properties.

6 years agoCycles:
Thomas Dinges [Thu, 17 Jan 2013 19:52:59 +0000 (19:52 +0000)]
Cycles:
* Fix for [#33909]. If "Progressive" checkbox was disabled but device was GPU, it still used the amount of "aa_samples" instead of "samples"

6 years agoThe problem of the peaks is corrected with the use of the normalized version.
Alexander Pinzon [Thu, 17 Jan 2013 19:19:02 +0000 (19:19 +0000)]
The problem of the peaks is corrected with the use of the normalized version.

6 years agofix for text selection glitch, moving the mouse to the left would sometimes not entir...
Campbell Barton [Thu, 17 Jan 2013 19:12:11 +0000 (19:12 +0000)]
fix for text selection glitch, moving the mouse to the left would sometimes not entirely select the start of the text.

6 years agouse define for text offset & seletion.
Campbell Barton [Thu, 17 Jan 2013 18:59:19 +0000 (18:59 +0000)]
use define for text offset & seletion.
and no need to calloc memory for string selection.

6 years agoMy bad - commit today for "Continuous Grab" fix ignored the comment that
Ton Roosendaal [Thu, 17 Jan 2013 15:27:58 +0000 (15:27 +0000)]
My bad - commit today for "Continuous Grab" fix ignored the comment that
bounds could be NULL :) Crash fixed.

6 years ago"Fix" for [#33903] Wrong description string in "remove vertices from vertex group...
Bastien Montagne [Thu, 17 Jan 2013 13:29:32 +0000 (13:29 +0000)]
"Fix" for [#33903] Wrong description string in "remove vertices from vertex group" function - just making the tooltip describe both possible actions by this op!

6 years agoBug fix #33887
Ton Roosendaal [Thu, 17 Jan 2013 11:35:33 +0000 (11:35 +0000)]
Bug fix #33887

Ancient issue: on much zoomed in UIs, text selecting or cursor placement
in Text-input buttons was off.

6 years agoBug fix #33892
Ton Roosendaal [Thu, 17 Jan 2013 10:16:40 +0000 (10:16 +0000)]
Bug fix #33892

HiDPI "retina" mode didn't work for "Continuous Grab" yet.

Note; this mode works by having different coordinate systems
for pixels and window/mouse coords. I really hope future
HiDPI implementations use the same trick.

6 years agoinclude svn revision in the crash log, also free smoothview on the off-chance you...
Campbell Barton [Thu, 17 Jan 2013 09:11:51 +0000 (09:11 +0000)]
include svn revision in the crash log, also free smoothview on the off-chance you manage to exit blender while the view is moving :)

6 years agominor changes to view3d
Campbell Barton [Thu, 17 Jan 2013 08:46:46 +0000 (08:46 +0000)]
minor changes to view3d
- BKE_camera_params_from_object now sets the lens to 35 if the object isnt a camera/lamp, without this the view3d lens would be used in camera view.
- running smooth-view multiple times now stores the initial user view rather then over-writing from the current state each time re-smoothview runs.
- redraw panels after smoothview finishes.

6 years agoAccidentally added commented line when testing smoothview fix.
Campbell Barton [Thu, 17 Jan 2013 08:07:09 +0000 (08:07 +0000)]
Accidentally added commented line when testing smoothview fix.

6 years agofix [#33894] Viewport heavily distorted
Campbell Barton [Thu, 17 Jan 2013 08:05:48 +0000 (08:05 +0000)]
fix [#33894] Viewport heavily distorted

The SmoothView operator was mixing up source-view and original-view parameters cleanup this operator and add 'original' view settings store.

6 years agofix for own bug introduced when splitting up vertex slide function.
Campbell Barton [Thu, 17 Jan 2013 06:21:20 +0000 (06:21 +0000)]
fix for own bug introduced when splitting up vertex slide function.

6 years ago- draw inner pressure circle for weightpaint, vertexpaint, projectpaint modes.
Campbell Barton [Thu, 17 Jan 2013 04:24:22 +0000 (04:24 +0000)]
- draw inner pressure circle for weightpaint, vertexpaint, projectpaint modes.
- only draw pressure circle if the pressure is used for brush size.
- remove 'last-pressure' workaround for project paint, its no longer needed.

6 years agochange to pressure & sculpt mode:
Campbell Barton [Thu, 17 Jan 2013 04:00:51 +0000 (04:00 +0000)]
change to pressure & sculpt mode:

Ignore size+pressure when the sculpt tool doesnt use dynamic size brushes (grab, thumb for eg).

The problem was if you didnt jab the stylus on the tablet hard enough you'd end up with a tiny brush since the initial pressure was used.

6 years agofix airbrush + tablet pressure bug.
Campbell Barton [Thu, 17 Jan 2013 03:41:23 +0000 (03:41 +0000)]
fix airbrush + tablet pressure bug.

Timer events used by the airbrush would always give a pressure of 1.0, ignoring the tablets real pressure in all paint modes.

Move tablet data into its own struct-member so it can be used with timer events.

6 years agoadd NULL check for XInput device, since its possible only one is valid.
Campbell Barton [Thu, 17 Jan 2013 02:06:54 +0000 (02:06 +0000)]
add NULL check for XInput device, since its possible only one is valid.

6 years agodraw active+disabled menu-items, helps for keyboard navigation.
Campbell Barton [Thu, 17 Jan 2013 01:48:42 +0000 (01:48 +0000)]
draw active+disabled menu-items, helps for keyboard navigation.

6 years agofix for arrow keys being reversed in the snap menu (Ctrl+Shift+Tab)
Campbell Barton [Thu, 17 Jan 2013 01:03:56 +0000 (01:03 +0000)]
fix for arrow keys being reversed in the snap menu (Ctrl+Shift+Tab)
also - when expanding rna enums into existing menus - don't nest inside a row/column.

6 years agoRelease Cycle:
Thomas Dinges [Thu, 17 Jan 2013 00:56:04 +0000 (00:56 +0000)]
Release Cycle:
* Readme and release log links for the Blender 2.66 release.

6 years agoshow a title in menus triggered by WM_OT_context_menu_enum, also show an icon when...
Campbell Barton [Thu, 17 Jan 2013 00:29:39 +0000 (00:29 +0000)]
show a title in menus triggered by WM_OT_context_menu_enum, also show an icon when available.

6 years agochange to own commit r53852. use existing pressure member of UnifiedPaintSettings.
Campbell Barton [Wed, 16 Jan 2013 23:37:47 +0000 (23:37 +0000)]
change to own commit r53852. use existing pressure member of UnifiedPaintSettings.

6 years agominor speedup for dyntopo edge queue - replace iterator with while loop.
Campbell Barton [Wed, 16 Jan 2013 23:20:09 +0000 (23:20 +0000)]
minor speedup for dyntopo edge queue - replace iterator with while loop.

6 years agofix bug in dyntopo - check to remove pbvh vert was always false.
Campbell Barton [Wed, 16 Jan 2013 23:12:43 +0000 (23:12 +0000)]
fix bug in dyntopo - check to remove pbvh vert was always false.

6 years agocode cleanup: rename BMVert *v[3]; --> 'v_tri', since 'v' is normally for single...
Campbell Barton [Wed, 16 Jan 2013 23:10:32 +0000 (23:10 +0000)]
code cleanup: rename BMVert *v[3]; --> 'v_tri', since 'v' is normally for single verts.

6 years agocode cleanup: double, float - conversion warnings.
Campbell Barton [Wed, 16 Jan 2013 23:07:24 +0000 (23:07 +0000)]
code cleanup: double, float - conversion warnings.

6 years agospeed-up dyn-topo by storing the edge-loops rather then edge-faces.
Campbell Barton [Wed, 16 Jan 2013 22:56:08 +0000 (22:56 +0000)]
speed-up dyn-topo by storing the edge-loops rather then edge-faces.
- no need for bm_triangle_other_vert_find(), the other vert is known relative to the loop.
- no need for bm_face_edge_backwards(), the verts are in order in the loop.

6 years agofix for GHOST/X11 using uninitialized memory for the tablets active state. (possible...
Campbell Barton [Wed, 16 Jan 2013 22:00:03 +0000 (22:00 +0000)]
fix for GHOST/X11 using uninitialized memory for the tablets active state. (possible cause of reported glitches in tablet use).

6 years agooptimize bmesh operations that use triangle BMFace's (dyn-topo and mesh conversion).
Campbell Barton [Wed, 16 Jan 2013 21:09:54 +0000 (21:09 +0000)]
optimize bmesh operations that use triangle BMFace's (dyn-topo and mesh conversion).

6 years agofix for airbrush not using tablet pressure (any brush with BRUSH_SPACE disabled).
Campbell Barton [Wed, 16 Jan 2013 19:59:55 +0000 (19:59 +0000)]
fix for airbrush not using tablet pressure (any brush with BRUSH_SPACE disabled).

6 years agorevert previous commit, the properties here are confusing since there are 2 rna prope...
Campbell Barton [Wed, 16 Jan 2013 19:51:47 +0000 (19:51 +0000)]
revert previous commit, the properties here are confusing since there are 2 rna properties to access the same value.

6 years agosculpt mode: there was no UI access to the brushes 'use_space' option, yet its used...
Campbell Barton [Wed, 16 Jan 2013 19:46:30 +0000 (19:46 +0000)]
sculpt mode: there was no UI access to the brushes 'use_space' option, yet its used to draw the interface and by sculpting tool as well.

6 years agoShape enhanced method exaggerates a shape using a Laplacian smoothing operator in...
Alexander Pinzon [Wed, 16 Jan 2013 19:38:50 +0000 (19:38 +0000)]
Shape enhanced method exaggerates a shape using a Laplacian smoothing operator in the reverse direction.
http://wiki.blender.org/index.php/User:Apinzonf/shape_enhanced

6 years agodraw the brush size with pressure applied (when the tablet is used), nice to see...
Campbell Barton [Wed, 16 Jan 2013 19:22:15 +0000 (19:22 +0000)]
draw the brush size with pressure applied (when the tablet is used), nice to see the actual size used.

6 years agostyle cleanup
Campbell Barton [Wed, 16 Jan 2013 18:16:05 +0000 (18:16 +0000)]
style cleanup

6 years agofix for glitch in X11 with tablets.
Campbell Barton [Wed, 16 Jan 2013 18:05:17 +0000 (18:05 +0000)]
fix for glitch in X11 with tablets.

Notices this while using continuous-grab, since this is disabled when the tablet is being used.
Quite often I would use the tablet then drag a button with the mouse but blender would still have the tablet enabled.
This error would cause other parts of blender to behave incorrectly too since wmEvents would have wmTabletData set, operators check for this in some cases.

The problem was blender didn't reliably get ProximityOut events, eg:
  moving the cursor outside the window with the tablet, then back over the window with the mouse -
  meant blender didn't get a 'ProximityOut' event and would keep the active stylus value set.

For now, when the processing events and the active stylus is set, run a check that the tablet is still in proximity.

6 years agoStyle cleanup: spaces at the end of lines
Sergey Sharybin [Wed, 16 Jan 2013 17:07:29 +0000 (17:07 +0000)]
Style cleanup: spaces at the end of lines

6 years agoMovies support for Cycles
Sergey Sharybin [Wed, 16 Jan 2013 17:07:25 +0000 (17:07 +0000)]
Movies support for Cycles

This adds support of movie textures for Cycles rendering.

Uses the same builtin images routines as packed/generated images,
but with some extra non-rna hookups from blender_session side.

Basically, it's not so clear how to give access to video frames
via C++ RNA -- it'll require exposing ImBuf to API, doing some
threading locks and so. Ended up adding two more functions which
are actually bad level call, but don't consider it's so much bad
-- we have few bad calls already, which are actually related.

Changed a bit how builtin images names are passing to image
manager. Now it's not just an ID datablock name, but also a frame
number concatenated via '@' character, which makes itpossible to
easily know frame number to be used for movie images, without
adding extra descriptors to image manager.

Decoding of builtin name is a bit slower now, but it should be
still nothing in comparison with rendering complexity.

Also exposed image user's frame_current to python API, which
is needed to get absolute frame number of movie from node's
image user.

P.S. Generated/packed images are also using bad level call but
only does it to make things more clear here.  Either all images
are using C++ RNA here or no images does. That's the most clear
for now.

6 years agoSupport view mapping mode in projective texture painting. Disable
Antony Riakiotakis [Wed, 16 Jan 2013 14:56:16 +0000 (14:56 +0000)]
Support view mapping mode in projective texture painting. Disable
masking in that case to match 2d image painting behaviour.

6 years agoGet rid of the BRUSH_FIXED_TEX flag, use mapping modes instead. Version
Antony Riakiotakis [Wed, 16 Jan 2013 14:36:13 +0000 (14:36 +0000)]
Get rid of the BRUSH_FIXED_TEX flag, use mapping modes instead. Version
patched all previous texture paint brushes to use tiled mapping since
mappping is now shared between 2d and 3d painting.

6 years agoUI / Scene Context:
Thomas Dinges [Wed, 16 Jan 2013 13:59:19 +0000 (13:59 +0000)]
UI / Scene Context:
* Made Color Management and Audio panel closed by default to save space.
* Added COMPAT_ENGINES to color management panel.

6 years agoMac OS X, Intuos tablet fix
Ton Roosendaal [Wed, 16 Jan 2013 13:45:11 +0000 (13:45 +0000)]
Mac OS X, Intuos tablet fix

Touch input events map nicely to trackpad input now.
However, I noticed the event values are a factor 10 scaled larger compared
to other touch delta's. Makes using touch input on the tablet not so nice.

I found a hack to detect Wacom events, but if it works for more devices?

Anyway - for me the Wacom works perfectly smooth for view manipulations now.

6 years agoUnification of brush code
Antony Riakiotakis [Wed, 16 Jan 2013 12:57:35 +0000 (12:57 +0000)]
Unification of brush code

* rename sculpt_brush_texture_settings to brush_texture_settings
* Expose texture scale and offset in texture paint mode
* Introduce still inactive mapping mode for texture paint, tiled and
view aligned only. Projective paint uses only tiled, while 2d paint can
use both. Commit will come that will use both appropriately for both
modes, omitting fixed brush flag (which is tiled with another name)

6 years agoFix #33877: Pressure Sensitivity stop after opening User Preferences Window
Sergey Sharybin [Wed, 16 Jan 2013 12:28:25 +0000 (12:28 +0000)]
Fix #33877: Pressure Sensitivity stop after opening User Preferences Window

Issue was caused by opening the same device id twice and closing one of
descriptors on closing window. This used to close device used by other
windows.

Now moved all device-specific code to SystemX11, so opening and closing
happens only once.

6 years agodont add identifiers starting with digits to autocomplete
Campbell Barton [Wed, 16 Jan 2013 04:43:37 +0000 (04:43 +0000)]
dont add identifiers starting with digits to autocomplete

6 years agodon't check for mouse-movement if the double click event isn't on a mouse-button.
Campbell Barton [Wed, 16 Jan 2013 04:23:55 +0000 (04:23 +0000)]
don't check for mouse-movement if the double click event isn't on a mouse-button.

6 years agomove double click check into its own function.
Campbell Barton [Wed, 16 Jan 2013 04:17:34 +0000 (04:17 +0000)]
move double click check into its own function.

6 years agotext syntax highlighting: don't use utf8 stepping if we know the text is ascii
Campbell Barton [Wed, 16 Jan 2013 04:05:01 +0000 (04:05 +0000)]
text syntax highlighting: don't use utf8 stepping if we know the text is ascii

6 years agopatch [#33888] Syntax Highlighting Changes
Campbell Barton [Wed, 16 Jan 2013 03:43:09 +0000 (03:43 +0000)]
patch [#33888] Syntax Highlighting Changes
from Benjamin Tolputt (btolputt), (with minor changes)

adds support for LUA syntax highlighting.

6 years agocorrection to last commit
Campbell Barton [Wed, 16 Jan 2013 03:30:40 +0000 (03:30 +0000)]
correction to last commit

6 years agoUnification of brush code
Antony Riakiotakis [Wed, 16 Jan 2013 03:20:36 +0000 (03:20 +0000)]
Unification of brush code

Move anchored and rake options away from Sculpt struct and to
UnifiedPaintSettings where they may be used by other tools in the future
(carefree whistle...)

No functionality should change but if it does I'll follow the screams...

6 years agotext syntax highlighting, add utility function 'text_format_fill()' which fills in...
Campbell Barton [Wed, 16 Jan 2013 03:18:22 +0000 (03:18 +0000)]
text syntax highlighting, add utility function 'text_format_fill()' which fills in the line with a formatting value.

this fixes a mistake in OSL lexer which would comment all lines after '//'

6 years agoresolve issue [#33882] New GG slide - Lost functionality
Campbell Barton [Wed, 16 Jan 2013 02:23:34 +0000 (02:23 +0000)]
resolve issue [#33882] New GG slide - Lost functionality
Holding Alt stops switching the active edge so you can drag in the negative direction.

6 years agominor changes to ghost
Campbell Barton [Wed, 16 Jan 2013 01:10:06 +0000 (01:10 +0000)]
minor changes to ghost
- use WITH_ASSERT_ABORT define, so GHOST_ASSERT will abort.
- rename XTablet -> GHOST_TabletX11, was confusing since it was named like an xlib struct.

6 years agostyle cleanup
Campbell Barton [Tue, 15 Jan 2013 23:45:41 +0000 (23:45 +0000)]
style cleanup

6 years agocode cleanup:
Campbell Barton [Tue, 15 Jan 2013 23:17:45 +0000 (23:17 +0000)]
code cleanup:
- cycles ui used 'cscene' for scene.cycles and scene.cycles_curves
- style cleanup

6 years agostyle cleanup
Campbell Barton [Tue, 15 Jan 2013 23:15:32 +0000 (23:15 +0000)]
style cleanup

6 years agofix for typo in recent commit.
Campbell Barton [Tue, 15 Jan 2013 22:26:46 +0000 (22:26 +0000)]
fix for typo in recent commit.

6 years agoWM / Screenshot fix:
Thomas Dinges [Tue, 15 Jan 2013 21:41:51 +0000 (21:41 +0000)]
WM / Screenshot fix:
* Screenshot resolution was wrong on Macbook Retina (did only capture a cropped part of the screen).

6 years agoFix CUDA compile after last commit.
Brecht Van Lommel [Tue, 15 Jan 2013 20:13:19 +0000 (20:13 +0000)]
Fix CUDA compile after last commit.

6 years agoCycles Hair: Introduction of Cardinal Spline Curve Segments and minor fixes.
Stuart Broadfoot [Tue, 15 Jan 2013 19:44:41 +0000 (19:44 +0000)]
Cycles Hair: Introduction of Cardinal Spline Curve Segments and minor fixes.

The curve segment primitive has been added. This includes an intersection function and changes to the BVH.

A few small errors in the line segment intersection routine are also fixed.

6 years agoFix #33838: light render passes for non-progressive integrator were not correct.
Brecht Van Lommel [Tue, 15 Jan 2013 19:17:51 +0000 (19:17 +0000)]
Fix #33838: light render passes for non-progressive integrator were not correct.

6 years agoCycles:
Thomas Dinges [Tue, 15 Jan 2013 19:02:17 +0000 (19:02 +0000)]
Cycles:
* CUDA: Make it more clear that sm_12 and below is not supported.
* OpenCL: __KERNEL_SHADING__ was declared twice for nvidia opencl device.
* Some reshuffle of defines in kernel_types.h. No functional changes.

6 years agoadd user_preference access to _RestrictContext() so addons can access their own prefe...
Campbell Barton [Tue, 15 Jan 2013 17:20:52 +0000 (17:20 +0000)]
add user_preference access to _RestrictContext() so addons can access their own preferences on load.

6 years agoBug fix #33873
Ton Roosendaal [Tue, 15 Jan 2013 16:53:52 +0000 (16:53 +0000)]
Bug fix #33873

CTRL+F in text editor now also works in the button region.
Added generic keymap for it, could get other shortcuts as well. Will leave it to the
maintainers :)

6 years agoFix #33830: cycles normal mapping was not quite correct, was not correctly
Brecht Van Lommel [Tue, 15 Jan 2013 16:35:05 +0000 (16:35 +0000)]
Fix #33830: cycles normal mapping was not quite correct, was not correctly
respecting the assumption that normal and tangent are interpolated without
normalization.

6 years agoAdded new function 'Remove Selection from All Vertex Groups' to the Vertex Group...
Gaia Clary [Tue, 15 Jan 2013 16:07:43 +0000 (16:07 +0000)]
Added new function 'Remove Selection from All Vertex Groups' to the Vertex Group Special functions popup

6 years agoBug fix #33748
Ton Roosendaal [Tue, 15 Jan 2013 15:42:12 +0000 (15:42 +0000)]
Bug fix #33748

Old fixes, since 2009 and before! Related to Curve object editmode:

- normals are not being drawn for hidden curves anymore
- even worse: Blender also didn't hide the extrusions or bevels for hidden curves
- outside edit mode, it shows all (as for all other modes)
- (de)select-all now works when 1st (or any) handle was hidden.

6 years agoLogic window usability:
Ton Roosendaal [Tue, 15 Jan 2013 14:46:55 +0000 (14:46 +0000)]
Logic window usability:

- Added a bit of more margin in bottom (for view pans)
- Made HOME option (view all) to show full width of editor, instead of zoom level 1:1.

6 years agostyle cleanup
Campbell Barton [Tue, 15 Jan 2013 13:08:51 +0000 (13:08 +0000)]
style cleanup

6 years agoCode cleanup: remove some remaining code from the old compositor.
Brecht Van Lommel [Tue, 15 Jan 2013 12:16:44 +0000 (12:16 +0000)]
Code cleanup: remove some remaining code from the old compositor.

6 years agoFix #33800: GLSL group nodes not using the external input value unless a node
Brecht Van Lommel [Tue, 15 Jan 2013 12:16:27 +0000 (12:16 +0000)]
Fix #33800: GLSL group nodes not using the external input value unless a node
was connected to the socket.

6 years agoFix #33875: minimize stretch UV tool incremented in steps of 0.2 instead of 0.1,
Brecht Van Lommel [Tue, 15 Jan 2013 11:14:27 +0000 (11:14 +0000)]
Fix #33875: minimize stretch UV tool incremented in steps of 0.2 instead of 0.1,
and now also shows the shortcut keys for setting the blend value.

6 years agoFix #33741,#33856: multi texture drawing problem with VBO's after a recent bugfix.
Brecht Van Lommel [Tue, 15 Jan 2013 10:47:44 +0000 (10:47 +0000)]
Fix #33741,#33856: multi texture drawing problem with VBO's after a recent bugfix.

6 years agoRender: set minimum render size to 1x1 instead of 2x2. As far as I can tell this
Brecht Van Lommel [Tue, 15 Jan 2013 10:47:13 +0000 (10:47 +0000)]
Render: set minimum render size to 1x1 instead of 2x2. As far as I can tell this
works ok, and it's useful for debugging.

6 years agoJpeg2000 should be saved with straight alpha
Sergey Sharybin [Tue, 15 Jan 2013 10:00:55 +0000 (10:00 +0000)]
Jpeg2000 should be saved with straight alpha

6 years agoFollow general mathutils rules for naming straight<->premul functions
Sergey Sharybin [Tue, 15 Jan 2013 08:37:17 +0000 (08:37 +0000)]
Follow general mathutils rules for naming straight<->premul functions

6 years agoMinor UI message fix (from [#33101] Minor interface typo in User Preferences > Themes...
Bastien Montagne [Tue, 15 Jan 2013 08:19:30 +0000 (08:19 +0000)]
Minor UI message fix (from [#33101] Minor interface typo in User Preferences > Themes > Add Preset, patch by gdh, on IRC).

6 years agofix [#33781] Confusing units in displacement modifier parameters
Campbell Barton [Tue, 15 Jan 2013 08:10:02 +0000 (08:10 +0000)]
fix [#33781] Confusing units in displacement modifier parameters

16bit PNG images were not doing any conversions when saving linear float buffers, but would always load them as SRGB.
apply the same method used for 16bit images from floats as used in jpeg2000.

6 years agoSpelling corrections
Sergey Sharybin [Tue, 15 Jan 2013 07:56:50 +0000 (07:56 +0000)]
Spelling corrections

6 years agoTwo threading issues:
Sergey Sharybin [Tue, 15 Jan 2013 07:56:38 +0000 (07:56 +0000)]
Two threading issues:

- Drawing masks in image editor requires LOCK_DRAW_IMAGE around
  ED_space_image_get* functions since they'll acquire image buffer.

  Lock is needed because viewers will be modified directly in
  compositor (see commend in draw_image_main)

- Seems that was wrong order of invalidating render result and
  viewer image invalidation happened in Composite node, which
  could easily lead to thread lock.

6 years agowrite 16 bit PNG files even when there is no float buffer,
Campbell Barton [Tue, 15 Jan 2013 07:35:32 +0000 (07:35 +0000)]
write 16 bit PNG files even when there is no float buffer,
the existence of a float buffer can depend on the image being used in the compositor for example, so better give the user what they expect - 16bit png if its selected from the UI.

6 years agofix issue reported in '[#33876] bpy.path.ensure_ext adds extension twice / extra...
Campbell Barton [Tue, 15 Jan 2013 04:33:08 +0000 (04:33 +0000)]
fix issue reported in '[#33876] bpy.path.ensure_ext adds extension twice / extra period if filename empty, just a period or equal to extension'

For python operators that used the ExportHelper mix-in class, an empty file field would become '.ext', entering and existing the text field would become '.ext.ext',
Now only add an extension if the filename part of the path is set, so '.ext' will still become '.ext.ext' but having only the extension isn't so likely to happen in the first place now.

This is a different fix then the changes suggested in the report but I'd prefer to keep path functions stupid+predictable.

6 years agoreplace vertex slide with the transform operator. (MESH_OT_vert_slide -> TRANSFORM_OT...
Campbell Barton [Tue, 15 Jan 2013 03:48:13 +0000 (03:48 +0000)]
replace vertex slide with the transform operator. (MESH_OT_vert_slide -> TRANSFORM_OT_vert_slide)

6 years agovertex slide was using flipped value, wasnt so noticable unless you types in a value.
Campbell Barton [Tue, 15 Jan 2013 03:35:31 +0000 (03:35 +0000)]
vertex slide was using flipped value, wasnt so noticable unless you types in a value.

6 years agoSome fixes:
Bastien Montagne [Mon, 14 Jan 2013 21:41:21 +0000 (21:41 +0000)]
Some fixes:
* handle nicely multiple empty lines in po files (still have to figure out why po writer sometime output two lines instead of one!)
* fix rtl processing!

6 years agodisplace modifier incorrectly had mid-level set as a 'distance' subtyped property.
Campbell Barton [Mon, 14 Jan 2013 20:27:25 +0000 (20:27 +0000)]
displace modifier incorrectly had mid-level set as a 'distance' subtyped property.
also change the minimum texture contrast to 0.0 (was 0.01).

6 years agofix [#33831] "Alt" key is "Alt Window Deactivated"
Campbell Barton [Mon, 14 Jan 2013 20:04:36 +0000 (20:04 +0000)]
fix [#33831] "Alt" key is "Alt Window Deactivated"
Patch from Patrick Zulke (pazul)

6 years agoremove NULL checks for BM_iter_new() element iterators. replace checks with assert().
Campbell Barton [Mon, 14 Jan 2013 19:46:30 +0000 (19:46 +0000)]
remove NULL checks for BM_iter_new() element iterators. replace checks with assert().

6 years agoFor non-windows systems, check for CUDA compiler during runtime
Antony Riakiotakis [Mon, 14 Jan 2013 19:33:16 +0000 (19:33 +0000)]
For non-windows systems, check for CUDA compiler during runtime

6 years agooptimize BM_face_exists(), was doing a lot of redundant checks.
Campbell Barton [Mon, 14 Jan 2013 18:37:58 +0000 (18:37 +0000)]
optimize BM_face_exists(), was doing a lot of redundant checks.

6 years agoCycles: enable lamp multiple importance sampling on the GPU, seems to be
Brecht Van Lommel [Mon, 14 Jan 2013 17:52:11 +0000 (17:52 +0000)]
Cycles: enable lamp multiple importance sampling on the GPU, seems to be
working ok with sm_20 and sm_21.