blender.git
8 years agofix [#34609] mesh.getVertex doesn't work as spected with poly.getMaterialIndex()...
Campbell Barton [Wed, 1 May 2013 22:41:55 +0000 (22:41 +0000)]
fix [#34609] mesh.getVertex doesn't work as spected with poly.getMaterialIndex() and poly vertex indexes
revert r22906 (own old commit, was incorrectly trying to make vertex indices absolute)

8 years agomake rna layer access less cryptic by using ARRAY_HAS_ITEM(), modified this to use...
Campbell Barton [Wed, 1 May 2013 22:39:34 +0000 (22:39 +0000)]
make rna layer access less cryptic by using ARRAY_HAS_ITEM(), modified this to use unsigned offset.

8 years agoFix 2D painting gave squares rather than a disk for the "Max" curve falloff shape.
Brecht Van Lommel [Wed, 1 May 2013 19:50:37 +0000 (19:50 +0000)]
Fix 2D painting gave squares rather than a disk for the "Max" curve falloff shape.

8 years agoFix double free error in OpenEXR when file cannot be saved
Sv. Lockal [Wed, 1 May 2013 19:07:32 +0000 (19:07 +0000)]
Fix double free error in OpenEXR when file cannot be saved

8 years agoSome minor cleanup/polish...
Bastien Montagne [Wed, 1 May 2013 17:49:19 +0000 (17:49 +0000)]
Some minor cleanup/polish...

8 years agoFix #35081: opening .blend files with chinese characters not working. For
Brecht Van Lommel [Wed, 1 May 2013 17:43:33 +0000 (17:43 +0000)]
Fix #35081: opening .blend files with chinese characters not working. For
compressed files we were not passing the full wide char path to zlib, so not
all file names worked. Now we use gzopen_w available in new zlib versions.

Patch by Tamito Kajiyama, I added an extra check for the zlib version so it
keeps compiling with older versions for now.

For platform maintainers:

Part of this commit are zlib 1.2.8 libraries for windows 32 bit. We still
need update libraries for windows 64 bit and mingw. There's a readme.txt
and build.bat included with instructions on how to build.

8 years agoedge_inside_circle was doing redundant float -> int -> float conversion, also dist_sq...
Campbell Barton [Wed, 1 May 2013 17:27:14 +0000 (17:27 +0000)]
edge_inside_circle was doing redundant float -> int -> float conversion, also dist_squared_to_line_segment_v2 is quite simple so remove radius checks.

8 years agoThis should at least prevent crash in [#35172]...
Bastien Montagne [Wed, 1 May 2013 17:11:07 +0000 (17:11 +0000)]
This should at least prevent crash in [#35172]...

8 years agofix error running ED_view3d_project_float_v3_m4 on 2d vec (thanks Sergey for pointing...
Campbell Barton [Wed, 1 May 2013 17:03:00 +0000 (17:03 +0000)]
fix error running ED_view3d_project_float_v3_m4 on 2d vec (thanks Sergey for pointing out!), also remove redundant vector copy in knife project.

8 years agoFix Show Brush button being missing from the UI for paint modes, the feature was
Brecht Van Lommel [Wed, 1 May 2013 15:28:56 +0000 (15:28 +0000)]
Fix Show Brush button being missing from the UI for paint modes, the feature was
already implemented, it's in the Appearance panel now. Also added that panel to
the image editor now since it's relevant there too.

8 years agoFix missing brush cursor redraw for texture paint when no pixels changed in the
Brecht Van Lommel [Wed, 1 May 2013 14:59:50 +0000 (14:59 +0000)]
Fix missing brush cursor redraw for texture paint when no pixels changed in the
image, no images need to be refreshed then but the cursors needs to be redrawn
still. Otherwise it gets stuck, especially annoying in unexpected cases where the
mask has reached the maximum for all pixels in the brush.

8 years agoFix #35149: solidify modifier + vertex parent not working after going in and out
Brecht Van Lommel [Wed, 1 May 2013 14:34:12 +0000 (14:34 +0000)]
Fix #35149: solidify modifier + vertex parent not working after going in and out
of editmode on the child object.

Problem was that the object custom data mask was not taken into account when
rebuilding the derivedmesh in some cases, which is needed for the derivedmesh
to contain the mapping back to the original vertices. Now this data mask is
used for any derivedmesh build that will be cached.

Also problematic was that the datamask for the active object was applied to
all objects in the scene, which caused the parent object to be recalculated
when it didn't need to be. Now this datamask is only used for the active object.

8 years agoFix for [#35116] Freestyle StringUtils::toAscii breakes non-ascii path values.
Tamito Kajiyama [Wed, 1 May 2013 13:34:56 +0000 (13:34 +0000)]
Fix for [#35116] Freestyle StringUtils::toAscii breakes non-ascii path values.

Just removed all calls of StringUtils::toAscii() as well as the function definitions.

8 years agoFix for bug reported by Thomas Dinges on IRC: OSL script node was not initializing...
Lukas Toenne [Wed, 1 May 2013 13:28:44 +0000 (13:28 +0000)]
Fix for bug reported by Thomas Dinges on IRC: OSL script node was not initializing the data_type variable for shader sockets and so tried to set a non-existing float RNA property, leading to failed assert.

8 years agoCycles / OSL:
Thomas Dinges [Wed, 1 May 2013 13:21:15 +0000 (13:21 +0000)]
Cycles / OSL:
* Add a few more OSL templates to the Text Editor, so people can use some of the OSL only shaders and closures.

* Temperature (Kelvin) to RGB converter
* Wavelength to RGB converter
* Ramp closure (Phong and Diffuse)
* Toon closure (Diffuse and Specular)

8 years agoFix missing brush texture mask in texture properties, for cycles. Handling this
Brecht Van Lommel [Wed, 1 May 2013 12:58:37 +0000 (12:58 +0000)]
Fix missing brush texture mask in texture properties, for cycles. Handling this
properly with blender internal is probably for after release, when we can add
the same system to gather textures from brushes, modifiers, force fields, ...

8 years agoFix #35171: crash rendering cube with two subsurf modifier in some circumstances.
Brecht Van Lommel [Wed, 1 May 2013 12:35:31 +0000 (12:35 +0000)]
Fix #35171: crash rendering cube with two subsurf modifier in some circumstances.
Problem was actually integer overflow in the requested data layers (1 << 31) does
not fit in an integer, it only goes up to (1 << 31) - 1.

8 years agoFix #35166: texture paint mask texture stencil not scaling properly.
Brecht Van Lommel [Wed, 1 May 2013 11:57:31 +0000 (11:57 +0000)]
Fix #35166: texture paint mask texture stencil not scaling properly.

8 years ago[Bug #35108] Shortcuts 3dsmax blender 2.67RC
Michael Fox [Wed, 1 May 2013 11:35:36 +0000 (11:35 +0000)]
[Bug #35108] Shortcuts 3dsmax blender 2.67RC

Quad View: ALT + W
Switch Wireframe / Solid: F3
Render: F10
Properties: F12
Ortho / perspective View: P
Zoom to selected center: Z
Select/ Deselect all: CTRL + A

in changing A hotkeys ctrl-a hotkeys are now ctrl-shift-a and GameEngine is now ctrl-alt-shift-p

8 years agoreplace error reports with poll() function for editmesh select ungrouped
Campbell Barton [Wed, 1 May 2013 06:07:26 +0000 (06:07 +0000)]
replace error reports with poll() function for editmesh select ungrouped

8 years agofix for select ungrouped vertices not flushing, also group select menu items more...
Campbell Barton [Wed, 1 May 2013 05:59:58 +0000 (05:59 +0000)]
fix for select ungrouped vertices not flushing, also group select menu items more logically.

8 years agouse 'normal' orientation rather then 'local' with individual origins to use the per...
Campbell Barton [Wed, 1 May 2013 05:26:10 +0000 (05:26 +0000)]
use 'normal' orientation rather then 'local' with individual origins to use the per-element axis-matrix.

8 years agoFix projection paint clone/soften/smear no longer working with textures,
Brecht Van Lommel [Wed, 1 May 2013 03:28:14 +0000 (03:28 +0000)]
Fix projection paint clone/soften/smear no longer working with textures,

Moved the code after the masking check so we can skip the texture lookup
if the pixel is done, is a bit faster. Also hide the color wheel for these
tools, only did it for 2D paint in previous commit.

8 years agostyle cleanup
Campbell Barton [Wed, 1 May 2013 02:53:45 +0000 (02:53 +0000)]
style cleanup

8 years agofix [#35164] UV unwrapping crash blender
Campbell Barton [Wed, 1 May 2013 02:40:53 +0000 (02:40 +0000)]
fix [#35164] UV unwrapping crash blender
(own fail with misuse of alloca)

8 years agoremove headers from FRS_freestyle.h
Campbell Barton [Wed, 1 May 2013 00:26:47 +0000 (00:26 +0000)]
remove headers from FRS_freestyle.h

8 years agoholding ctrl when using arrow keys in the text editor didn't navigate newlines.
Campbell Barton [Wed, 1 May 2013 00:15:22 +0000 (00:15 +0000)]
holding ctrl when using arrow keys in the text editor didn't navigate newlines.

8 years agofix for missing slot in edge bisect bmesh operator.
Campbell Barton [Tue, 30 Apr 2013 23:35:02 +0000 (23:35 +0000)]
fix for missing slot in edge bisect bmesh operator.

8 years agofix for exception in console auto-completing an object with __getitem__ but no __len_...
Campbell Barton [Tue, 30 Apr 2013 23:01:12 +0000 (23:01 +0000)]
fix for exception in console auto-completing an object with __getitem__ but no __len__ (BMEdge).

8 years agofix for yet another off by one error in console code, could crash deleting words...
Campbell Barton [Tue, 30 Apr 2013 22:46:41 +0000 (22:46 +0000)]
fix for yet another off by one error in console code, could crash deleting words (but mostly it was hidden by guardedalloc), hopefully the last of this kind in console.

8 years agoremove direct freestyle data access from bmesh, was crashing and this should really...
Campbell Barton [Tue, 30 Apr 2013 22:27:52 +0000 (22:27 +0000)]
remove direct freestyle data access from bmesh, was crashing and this should really only be done via customdata layer support.

8 years agoFix tiled overlay not matching up with stroke result in 2d painting.
Antony Riakiotakis [Tue, 30 Apr 2013 22:14:19 +0000 (22:14 +0000)]
Fix tiled overlay not matching up with stroke result in 2d painting.

8 years agoFix: Overlay was getting invalidated too often in image editor making
Antony Riakiotakis [Tue, 30 Apr 2013 21:17:21 +0000 (21:17 +0000)]
Fix: Overlay was getting invalidated too often in image editor making
refresh extremely slow.

8 years agoFix: texture alpha masking not functional after recent commits. Mask is
Antony Riakiotakis [Tue, 30 Apr 2013 20:57:45 +0000 (20:57 +0000)]
Fix: texture alpha masking not functional after recent commits. Mask is
used to see if area has been covered by brush, so exclude the texture
alpha and texture alpha masks from mask comparisons. Coming next:
texture masks for 2d painting.

8 years agoProperties Editor / UI:
Thomas Dinges [Tue, 30 Apr 2013 18:57:04 +0000 (18:57 +0000)]
Properties Editor / UI:
* Render Passes -> Passes, same as Cycles.

8 years agofix for setting int customdata layer names not ensuring uniqueness.
Campbell Barton [Tue, 30 Apr 2013 17:30:40 +0000 (17:30 +0000)]
fix for setting int customdata layer names not ensuring uniqueness.
also use generic layer name callbacks for vert/edge/face/poly/loop.

8 years agoMore painting fixes:
Brecht Van Lommel [Tue, 30 Apr 2013 16:07:52 +0000 (16:07 +0000)]
More painting fixes:

* 2D image painting with textures that contained alpha did not work correctly,
  had been broken for a while.

* 2D image panels texture (mask) panels showed wrong buttons for texture overlay.

* Texture map mode 3D now also uses masking, like Tiled and Stencil the texture
  does not move along with the brush so it works fine.

* 2D image paint View mapping did not work correct, especially noticeable with
  Rake rotation.

* Masking is now disabled for the smear tool, this can't really work because
  the original image is constantly changing and gave artifacts.

8 years agoBug fix #35151
Ton Roosendaal [Tue, 30 Apr 2013 15:17:20 +0000 (15:17 +0000)]
Bug fix #35151

NLA editor: the channel list and the main area were not perfectly aligned, and could
jump a bit around. Easy fix.

8 years agoFix compilation in release mode with strict flags
Sergey Sharybin [Tue, 30 Apr 2013 12:18:09 +0000 (12:18 +0000)]
Fix compilation in release mode with strict flags

8 years agoBug fix #35143
Ton Roosendaal [Tue, 30 Apr 2013 11:11:18 +0000 (11:11 +0000)]
Bug fix #35143

Animplayer treated .tif extensions as movie files, so that didn't work.
Added another hardcoded check for it, like for png tga exr jpg etc.

Why FFmpeg thinks .tif is a movie... that's for another day :)
Quicktime QTKit did same btw.

8 years agoFix another part of #35141: there was no way to reset the stencil transform after...
Brecht Van Lommel [Tue, 30 Apr 2013 10:32:02 +0000 (10:32 +0000)]
Fix another part of #35141: there was no way to reset the stencil transform after e.g.
scaling it along one axis, now there's a Reset Transform button.

The Image Aspect button is now also hidden unless the texture is an image texture.
And also hide the color wheel for painting tools that don't use colors.

8 years agoFix #35141: stencil and 3D texture mode did not work with 2D image paint.
Brecht Van Lommel [Tue, 30 Apr 2013 09:59:40 +0000 (09:59 +0000)]
Fix #35141: stencil and 3D texture mode did not work with 2D image paint.

8 years agoFix for #35147, view in backdrop and image editor in compositor don't work anymore...
Lukas Toenne [Tue, 30 Apr 2013 07:40:15 +0000 (07:40 +0000)]
Fix for #35147, view in backdrop and image editor in compositor don't work anymore. The active_viewer_key which sets the active node tree to use for the viewer image was not initialized in do_versions yet.

8 years agoPartial fix for #35108: Shortcuts 3dsmax Blender 2.67RC
Sergey Sharybin [Tue, 30 Apr 2013 07:34:23 +0000 (07:34 +0000)]
Partial fix for #35108: Shortcuts 3dsmax Blender 2.67RC

Made keyap use the same select_or_deselect_all operator
as used for maya keymap instead of tricks with deselect_all.

Solves issue with selection in editor mode (reported as #3
in the original bug report).

8 years agoChanges for updated operators
Sergey Sharybin [Tue, 30 Apr 2013 07:18:07 +0000 (07:18 +0000)]
Changes for updated operators

8 years agoMore image painting fixes:
Brecht Van Lommel [Tue, 30 Apr 2013 06:07:42 +0000 (06:07 +0000)]
More image painting fixes:

* 2D image painting support for masking to limit the max contribution of a stroke
  to a pixel, to get it working compatible with projection painting. Not strictly
  a bugfix, but the inconsistency here was annoying.

* Fix python errors in Texture Mask panel in image editor, was missing overlay
  options.

* Clamp paint mask to 0..1 in case some texture exceeds it, this could give black
  pixels due to integer overflow.

8 years agoFix #35144: Image editor is not updateing if in new window
Sergey Sharybin [Tue, 30 Apr 2013 06:03:17 +0000 (06:03 +0000)]
Fix #35144: Image editor is not updateing if in new window

Was a regression in own optimization on which viewer node to
update -- need to check all the windows' screens, not just
active one.

8 years agofix [#35156] Edge slide gg shortcut brings up wrong settings.
Campbell Barton [Tue, 30 Apr 2013 03:44:03 +0000 (03:44 +0000)]
fix [#35156] Edge slide gg shortcut brings up wrong settings.

switch operator types from transform, this would normally be problematic, but transform operators share callbacks so it can be supported.

8 years agofix for an issue raised in [#35154],
Campbell Barton [Tue, 30 Apr 2013 02:45:57 +0000 (02:45 +0000)]
fix for an issue raised in [#35154],
the cross icon to clear a field wasn't working within popups.

8 years agouse const vars for UI arrays.
Campbell Barton [Tue, 30 Apr 2013 01:51:25 +0000 (01:51 +0000)]
use const vars for UI arrays.

8 years agofix [#35154] Python: UI issues with invoke_props_dialog()
Campbell Barton [Tue, 30 Apr 2013 01:08:55 +0000 (01:08 +0000)]
fix [#35154] Python: UI issues with invoke_props_dialog()
- highlighed buttons that were never pressed could be activated by accident when canceling search popup.
- canceling a search popup on a popup would close both.

8 years agoconvert macro PASS_EVENT_TO_PARENT_IF_NONACTIVE into a static function. (having flow...
Campbell Barton [Mon, 29 Apr 2013 21:44:28 +0000 (21:44 +0000)]
convert macro PASS_EVENT_TO_PARENT_IF_NONACTIVE into a static function. (having flow control in a macro is bad practice), own doing.

8 years agoFix for previous noisy stroke fix, mask didn't converge to the right strength
Brecht Van Lommel [Mon, 29 Apr 2013 20:52:27 +0000 (20:52 +0000)]
Fix for previous noisy stroke fix, mask didn't converge to the right strength
value, formula should have been simpler actually.

8 years agofix [#35150] Crash when bmesh operation called from within a Panel draw()
Campbell Barton [Mon, 29 Apr 2013 20:21:19 +0000 (20:21 +0000)]
fix [#35150] Crash when bmesh operation called from within a Panel draw()

accessing a bmesh from python would reallocate all customdata layers.

add an assert to BM_data_layer_free(), when its called unnecessarily since its reallocating all layers.

8 years agoMore build fixes for visual studio 2012.
Brecht Van Lommel [Mon, 29 Apr 2013 19:15:56 +0000 (19:15 +0000)]
More build fixes for visual studio 2012.

Patch #35019, #35131 and #35152 by Jurgen Herrmann.

8 years agoFix collada module build for visual studio 2012.
Brecht Van Lommel [Mon, 29 Apr 2013 19:15:53 +0000 (19:15 +0000)]
Fix collada module build for visual studio 2012.

Patch #35153 by Jurgen Herrmann.

8 years agoDo not report formatting mismatch between org and translation when message is fuzzy...
Bastien Montagne [Mon, 29 Apr 2013 18:22:22 +0000 (18:22 +0000)]
Do not report formatting mismatch between org and translation when message is fuzzy (but "fix" it anyway if asked so).

8 years agomove modal view3d keymaps out of main list of keymaps into the view3d section.
Campbell Barton [Mon, 29 Apr 2013 17:59:44 +0000 (17:59 +0000)]
move modal view3d keymaps out of main list of keymaps into the view3d section.

8 years agoFix #35140: texture paint would give 'noisy' strokes and poor results for strokes
Brecht Van Lommel [Mon, 29 Apr 2013 17:35:50 +0000 (17:35 +0000)]
Fix #35140: texture paint would give 'noisy' strokes and poor results for strokes
crossing themselves.

Again an old issue, the code that was limiting the max contribution to a pixel by
doing a max() operation, which is very sensitive to the spacing of the stroke dabs.
Instead we now use a formula does adds up on repeated dabs but approaches the
maximum brush value slowly and never exceeds it, which gives nice smooth results.

mask_accum = mask_accum + (sqrt(brush_max) - mask_accum) * sqrt(brush_max) * mask;

8 years agoselect loose wasn't working very usefully if you only wanted to select loose verts...
Campbell Barton [Mon, 29 Apr 2013 16:59:53 +0000 (16:59 +0000)]
select loose wasn't working very usefully if you only wanted to select loose verts, now select loose verts/edges/faces depending on the selection mode.

8 years agoupdate sphinx docgen
Campbell Barton [Mon, 29 Apr 2013 16:20:49 +0000 (16:20 +0000)]
update sphinx docgen
was missing context property attributes - context.mode for example. add RNA properties into context docs.

also minor updates
- exclude freestyle if its not enabled.
- add missing context member.

8 years agoFix for --debug-ffmpeg not giving enough information
Sergey Sharybin [Mon, 29 Apr 2013 16:03:21 +0000 (16:03 +0000)]
Fix for --debug-ffmpeg not giving enough information

8 years agoCycles / SCons:
Thomas Dinges [Mon, 29 Apr 2013 15:52:38 +0000 (15:52 +0000)]
Cycles / SCons:
* Fast math compiler flag was set for Cycles, but not OSL.

8 years agoChanges to image draw method options
Sergey Sharybin [Mon, 29 Apr 2013 15:50:12 +0000 (15:50 +0000)]
Changes to image draw method options

It's now default to 2D textures, and no AUTO mode at this
moment, since detecting which method is the best not so
simple.

Image drawing could manually be switched to GLSL for tests
and feedback, but for default GLSL is not so much great.

Reason of this is huge images, where operations like panning
becomes dead slow comparing GLSL vs. 2D texture.

8 years agoFix [#35110]: Dynamic Paint does not paint accurately in baked "Image Sequence" on...
Miika Hamalainen [Mon, 29 Apr 2013 15:02:54 +0000 (15:02 +0000)]
Fix [#35110]: Dynamic Paint does not paint accurately in baked "Image Sequence" on Armature-Posed-Mesh

Dynamic Paint was also being calculated during "orco" mesh generation, causing image sequence baking to use orco derived mesh instead. This likely affected vertex type surfaces too in some cases.

8 years agoUsual UI messages fixes...
Bastien Montagne [Mon, 29 Apr 2013 14:09:19 +0000 (14:09 +0000)]
Usual UI messages fixes...

8 years agoavoid calling BKE_brush_alpha_get() when project painting onto each pixel,
Campbell Barton [Mon, 29 Apr 2013 13:26:43 +0000 (13:26 +0000)]
avoid calling BKE_brush_alpha_get() when project painting onto each pixel,
also increase the epsilon for ruler thickness offset.

8 years agoFix for [#35146] Move Clip Editor: "T-key panel" bug
Thomas Dinges [Mon, 29 Apr 2013 13:18:29 +0000 (13:18 +0000)]
Fix for [#35146] Move Clip Editor: "T-key panel" bug

8 years agoproject paint unnecessarily split of texure checks into separate checks, calculating...
Campbell Barton [Mon, 29 Apr 2013 13:07:12 +0000 (13:07 +0000)]
project paint unnecessarily split of texure checks into separate checks, calculating the texture coords when outside the falloff.

8 years agodon't use GPU_extensions for BLF, its not initialized when using the blender-playanim...
Campbell Barton [Mon, 29 Apr 2013 12:07:27 +0000 (12:07 +0000)]
don't use GPU_extensions for BLF, its not initialized when using the blender-playanim and not really needed.
this reverts part of 55995

8 years agoFix for non-linear float buffer displaying on raw display
Sergey Sharybin [Mon, 29 Apr 2013 11:07:49 +0000 (11:07 +0000)]
Fix for non-linear float buffer displaying on raw display

8 years agoTweak allocation vars for XYZ space for more accurate GPU transform
Sergey Sharybin [Mon, 29 Apr 2013 10:53:10 +0000 (10:53 +0000)]
Tweak allocation vars for XYZ space for more accurate GPU transform

Also extend 3DLUT edge size to 64 (1 meg of memory) to increase
transform accuracy as well.

8 years agoFix #35139] Output panel options are not taken into account when you safe your render...
Sergey Sharybin [Mon, 29 Apr 2013 09:56:01 +0000 (09:56 +0000)]
Fix #35139] Output panel options are not taken into account when you safe your render (JPG)

Was caused by svn rev53181, and it worked before because
image buffer didn't have quality set and in this case
fall back to scene settings happened.

Now or render result quality from scene settings is always
used, image buffer's settings is ignored.

8 years agoFix for #35134.
Lukas Toenne [Mon, 29 Apr 2013 08:59:38 +0000 (08:59 +0000)]
Fix for #35134.

The node link operator had a feature to automatically expose sockets in node groups when ctrl+shift+clicking on a node socket, which would create a node group input/output node. This was intended as a shortcut but conflicts with other features such as socket selection and viewer creation. It is also hardly necessary now that input/output nodes have an extension socket, which is much easier to use. Removed this expose functionality completely.

8 years agoBug fix:
Ton Roosendaal [Mon, 29 Apr 2013 08:45:39 +0000 (08:45 +0000)]
Bug fix:

Labels in UI were not drawing greyed out when disabled.
Bug in post 2.66a commit to make greying out buttons draw much nicer.

User reported Addon menu was not clearly showing disabled Addons anymore.

8 years agoFix for a typo in scons configuration
Sergey Sharybin [Mon, 29 Apr 2013 07:24:45 +0000 (07:24 +0000)]
Fix for a typo in scons configuration

8 years agominor adjustment to vertex color baking, tag the meshes directly, no need to do via...
Campbell Barton [Mon, 29 Apr 2013 00:49:44 +0000 (00:49 +0000)]
minor adjustment to vertex color baking, tag the meshes directly, no need to do via the objects.

8 years agocmake - warn when an option is turned off because of boost being disabled.
Campbell Barton [Mon, 29 Apr 2013 00:44:33 +0000 (00:44 +0000)]
cmake - warn when an option is turned off because of boost being disabled.

8 years agotweak for epsilon of intersection check, was too small for some cases.
Campbell Barton [Sun, 28 Apr 2013 22:35:08 +0000 (22:35 +0000)]
tweak for epsilon of intersection check, was too small for some cases.

8 years agobullet: Fix avoiding collision response between static/kinematic objects
Sergej Reich [Sun, 28 Apr 2013 21:40:54 +0000 (21:40 +0000)]
bullet: Fix avoiding collision response between static/kinematic objects

Sent patch upstream.

Fixes [#35115] Character physics type fails collision with static type with an action on 2.67 rc

8 years agofix for reset brushes curve setting a flipped curve
Campbell Barton [Sun, 28 Apr 2013 20:51:44 +0000 (20:51 +0000)]
fix for reset brushes curve setting a flipped curve

8 years agofix for inserting a color-curve point.
Campbell Barton [Sun, 28 Apr 2013 20:25:25 +0000 (20:25 +0000)]
fix for inserting a color-curve point.
- was reading outside memory bounds checking the 'x' point.
- inserting a point to the right of the last point would add a point to the very left instead.

8 years agofix for bug with edge-slide doing UV correction when the faces connected to one of...
Campbell Barton [Sun, 28 Apr 2013 17:44:28 +0000 (17:44 +0000)]
fix for bug with edge-slide doing UV correction when the faces connected to one of the sliding edges dont have contiguous UV's (or vcols etc).
resolve by using faces adjacent to the ones directly connected to the edge that sliding.

This isnt a prefect solution but it resolves the common case where an edge slides along a UV seam.

8 years agosimplify projectEdgeSlideData(), was doing unneeded looping, remove and remove need...
Campbell Barton [Sun, 28 Apr 2013 17:34:23 +0000 (17:34 +0000)]
simplify projectEdgeSlideData(), was doing unneeded looping, remove and remove need for visithash also.

8 years agoFluid UI:
Thomas Dinges [Sun, 28 Apr 2013 16:52:51 +0000 (16:52 +0000)]
Fluid UI:
* Display Simulation threads only, when built with OpenMP.

8 years agowarning cleanup: assignment to unused vars, r56359 changes how brush falloff is used...
Campbell Barton [Sun, 28 Apr 2013 15:37:18 +0000 (15:37 +0000)]
warning cleanup: assignment to unused vars, r56359 changes how brush falloff is used slightly but this isn't so important so just remove falloff adjustment.

8 years agoFix for "new" Cycles handling of textures, UI code assumed all texture users use...
Bastien Montagne [Sun, 28 Apr 2013 15:20:52 +0000 (15:20 +0000)]
Fix for "new" Cycles handling of textures, UI code assumed all texture users use "texture" as prop name, but at least WeightVG modifiers do not.

Fixed by adding a "texture_user_property" member to spacebuts' context, and using it to get the prop identifier in ui script.

Thanks to Brecht for its advice!

8 years agoFix [#35127] Layout -> Frame doen't exist anymore
Thomas Dinges [Sun, 28 Apr 2013 13:02:46 +0000 (13:02 +0000)]
Fix [#35127] Layout -> Frame doen't exist anymore

8 years agoFix #35121: cycles 3D viewport render pause button not working during render.
Brecht Van Lommel [Sun, 28 Apr 2013 12:31:24 +0000 (12:31 +0000)]
Fix #35121: cycles 3D viewport render pause button not working during render.

8 years agoFix #34233: bad alpha blending for 3D texture painting. Same changes as the
Brecht Van Lommel [Sun, 28 Apr 2013 11:55:41 +0000 (11:55 +0000)]
Fix #34233: bad alpha blending for 3D texture painting. Same changes as the
previous fix for 2D image painting were done, and also:

* For brushes that do masking (keeping the max contribution to a pixel limited),
  the alpha from textures is now part of the mask. In many cases the logic
  worked out the same and where it didn't it used to cause artifacts.

* Color interpolation for smear and soften tools now happens in premultipied
  space, to avoid bleeding of RGB colors from zero alpha areas.

* Fix a few cases where byte <=> float conversion was not doing the proper
  straight <=> premul conversion.

* Replace some float division by constants with multiplications, is faster.

Note: float texture painting seems to have some issues updating the OpenGL
texture, but issue was already there before this commit.

8 years agoKeeping my commit count high!
Ton Roosendaal [Sun, 28 Apr 2013 11:05:49 +0000 (11:05 +0000)]
Keeping my commit count high!

Previous GLSL code had error, the if() statement had to be negated.

8 years agoGLSL display of float buffers with alpha:
Ton Roosendaal [Sun, 28 Apr 2013 11:03:01 +0000 (11:03 +0000)]
GLSL display of float buffers with alpha:
Previous version worked, now a version with simplifying this GLSL code.

8 years agoThis glsl shader works for OCIO with alpha. OSX iMac with ATI.
Ton Roosendaal [Sun, 28 Apr 2013 10:46:18 +0000 (10:46 +0000)]
This glsl shader works for OCIO with alpha. OSX iMac with ATI.

There's no logical reason I can find... but I commit it because many others have
the same error, so we can check.

8 years agoBug fix #35117
Ton Roosendaal [Sun, 28 Apr 2013 09:47:11 +0000 (09:47 +0000)]
Bug fix #35117

Sequencer: Properties region didn't have the general Sequencer keymap, so it didn't
respond to "Nkey" to hide the region.

8 years agoBug fix #35124
Ton Roosendaal [Sun, 28 Apr 2013 09:16:10 +0000 (09:16 +0000)]
Bug fix #35124

Outliner was drawing "Animation" category even when no actions/strips/drivers existed.
Would happen after adding Action and unlinking it.

8 years agoBGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66. Reported...
Mitchell Stokes [Sun, 28 Apr 2013 06:13:24 +0000 (06:13 +0000)]
BGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66. Reported and fixed by HG1.

8 years agofix for crash while drawing editmesh with weights in rare cases when the length was...
Campbell Barton [Sat, 27 Apr 2013 23:42:42 +0000 (23:42 +0000)]
fix for crash while drawing editmesh with weights in rare cases when the length was set but array NULL.

8 years agofix for out of bounds memory read when running wire-frame tool on empty mesh.
Campbell Barton [Sat, 27 Apr 2013 22:10:06 +0000 (22:10 +0000)]
fix for out of bounds memory read when running wire-frame tool on empty mesh.

8 years agominor changes, BLI_uvproject_from_view was doing matrix multiply for no reason, quiet...
Campbell Barton [Sat, 27 Apr 2013 21:56:28 +0000 (21:56 +0000)]
minor changes, BLI_uvproject_from_view was doing matrix multiply for no reason, quiet float/double warning.

8 years agoBLI_strlen_utf8 was doing size_t / int conversion unnecessarily.
Campbell Barton [Sat, 27 Apr 2013 19:40:23 +0000 (19:40 +0000)]
BLI_strlen_utf8 was doing size_t / int conversion unnecessarily.