8 years agoFix freestyle compile with scons
Jens Verwiebe [Sat, 6 Apr 2013 18:06:06 +0000 (18:06 +0000)]
Fix freestyle compile with scons

8 years agoPart I of the Freestyle branch merger: new 'freestyle' folders.
Tamito Kajiyama [Sat, 6 Apr 2013 15:45:02 +0000 (15:45 +0000)]
Part I of the Freestyle branch merger: new 'freestyle' folders.

This commit is the first part of a two-part merger of the soc-2008-mxcurioni
(Freestyle) branch.  New 'freestyle' folders were added to the source/blender/
and release/script/ directories through a couple of svn copy operations
(instead of svn merge, due to broken svn:mergeinfo properties of the branch).

8 years agoRevert change made to bilinear sampler in libmv
Sergey Sharybin [Sat, 6 Apr 2013 14:47:45 +0000 (14:47 +0000)]
Revert change made to bilinear sampler in libmv

This made preview working but that broke internals
of tracking.

Namely, BlurredImageAndDerivativesChannels is giving
much more blurred image because it was assuming pixel
center is an integer position.

Guess other parts of libmv used to suffer because of
this issue.

Now pixel centering happens in blender side, and
libmv assumes integer position is a pixel center.

8 years agoPre-merger changes. soc-2008-mxcurioni
Tamito Kajiyama [Sat, 6 Apr 2013 14:45:50 +0000 (14:45 +0000)]
Pre-merger changes.

Deprecated Freestyle-specific elements were removed from the code base,
in order to address all comments from branch code reviews.

Backward compatibility won't be maintained in the following components:

- Freestyle edge/face marks in old .blend files are ignored.

Old .blend files can be converted by loading and saving the files using
a Freestyle branch build between revision 55581 and 55842.

- External style modules are no longer supported.

Instead text datablocks must be used to keep style module files within
.blend files.  A branch build between revision 55741 and 55842 is useful
for identifying the style module file names that need reconfiguring.

8 years agosvn merge ^/trunk/blender -r55815:55840
Sergey Sharybin [Sat, 6 Apr 2013 13:24:34 +0000 (13:24 +0000)]
svn merge ^/trunk/blender -r55815:55840

8 years agoNode UI:
Thomas Dinges [Sat, 6 Apr 2013 12:07:42 +0000 (12:07 +0000)]
Node UI:
* After PyNodes merge, many node sockets had sliders, instead of the arrow buttons (as the PROP_FACTOR subtype now actually was used). Change those back now, after artists feedback.

8 years agofix: #34871 Cycles/CUDA/sm_35: Build problems probably due to issues with float3...
Gaia Clary [Sat, 6 Apr 2013 11:52:40 +0000 (11:52 +0000)]
fix: #34871 Cycles/CUDA/sm_35: Build problems probably due to issues with float3 operators (on windows?)

8 years agoFix: 34874 Weight Paint UI inconsistent: removed conflicting shortcut definition...
Gaia Clary [Sat, 6 Apr 2013 10:52:52 +0000 (10:52 +0000)]
Fix: 34874 Weight Paint UI inconsistent: removed conflicting shortcut definition, added weight assign tools to specials menu

8 years agoctrl+a select all in button field
Campbell Barton [Sat, 6 Apr 2013 08:22:39 +0000 (08:22 +0000)]
ctrl+a select all in button field

8 years agoMinor white space fix.
Tamito Kajiyama [Sat, 6 Apr 2013 07:53:57 +0000 (07:53 +0000)]
Minor white space fix.

8 years agoRemoved Freestyle-specific code from DerivedMesh.c.
Tamito Kajiyama [Sat, 6 Apr 2013 06:09:08 +0000 (06:09 +0000)]
Removed Freestyle-specific code from DerivedMesh.c.

The removed code was necessary due to a logical bug in the use of CD_ORIGINDEX
layer entries.  Previously the index values were used to refer to the edges/polys
of the derived mesh, assuming that the derived mesh edges/polys consisted of those
from the original mesh plus newly added edges/polys.  This assumption was not
correct, although it worked well for several modifiers such as Mirror and Solidify.
Now the index values are specifically used to reference the edge/polys of the
original mesh.

8 years agoadd relative offset option for poke tool.
Campbell Barton [Sat, 6 Apr 2013 03:03:37 +0000 (03:03 +0000)]
add relative offset option for poke tool.

8 years agopatch [#34890] BMesh Poke Face.
Campbell Barton [Sat, 6 Apr 2013 02:45:43 +0000 (02:45 +0000)]
patch [#34890] BMesh Poke Face.
by Francisco De La Cruz (xercesblue), with some of my own changes/improvements.

Converts faces to triangle-fans (useful to run on ngons).

To access select a group of faces and press "Alt+P" or alternatively select the operator from the Faces menu (Ctrl+F)

8 years agoFix #34880: cycles motion blur render issue with some compilers. Actually is a bigger
Brecht Van Lommel [Fri, 5 Apr 2013 23:03:10 +0000 (23:03 +0000)]
Fix #34880: cycles motion blur render issue with some compilers. Actually is a bigger
problem where accessing float4 members with [] stops working due to optimizer, will
check that later.

8 years agobmesh operator rename inset -> inset_region
Campbell Barton [Fri, 5 Apr 2013 22:56:01 +0000 (22:56 +0000)]
bmesh operator rename inset -> inset_region

8 years agopatch [#34886] BMesh Individual Face Inset
Campbell Barton [Fri, 5 Apr 2013 22:21:14 +0000 (22:21 +0000)]
patch [#34886] BMesh Individual Face Inset
from Francisco De La Cruz (xercesblue) with some simplifications to the patch.

8 years agofix [#34870] bmesh.ops.* parameter lists and descriptions don't show in PyConsole...
Campbell Barton [Fri, 5 Apr 2013 19:58:18 +0000 (19:58 +0000)]
fix [#34870] bmesh.ops.* parameter lists and descriptions don't show in PyConsole on auto-complete

more a feature request then a bug but nice to have __doc__ on bmesh operators.

Tamito Kajiyama [Fri, 5 Apr 2013 19:34:26 +0000 (19:34 +0000)]
and moved them to init_render_mesh() in convertblender.c where these CustomData
layers are specifically required.

8 years agoadd BM_face_calc_center_mean_weighted() gives much better result at cost of some...
Campbell Barton [Fri, 5 Apr 2013 19:26:33 +0000 (19:26 +0000)]
add BM_face_calc_center_mean_weighted() gives much better result at cost of some speed.

8 years agoFix another part of #34877: cycles progress status text not showing correct with
Brecht Van Lommel [Fri, 5 Apr 2013 17:57:26 +0000 (17:57 +0000)]
Fix another part of #34877: cycles progress status text not showing correct with
per render layer samples in addition to the progress bar.

Also fixed job progress bar not working at all on high DPI / retina, was so small
the actual progress was not visible.

8 years agocode cleanup: include order
Campbell Barton [Fri, 5 Apr 2013 17:56:54 +0000 (17:56 +0000)]
code cleanup: include order

8 years agoFix eternal compo refresh when having image editor with mask opened
Sergey Sharybin [Fri, 5 Apr 2013 17:27:25 +0000 (17:27 +0000)]
Fix eternal compo refresh when having image editor with mask opened

This was a regression since 55719 and the reason is:

- image_refresh() will tag combo for re-calc when editing mask.
  This is a feature, so you could have immediate feedback on masking
  and compositing while editing mask. This is done from image_refresh().

- Color management sends NC_WINDOW notifier, so the whole window is
  updated when changing color management settings. Image editor used
  to refresh space when this notifier is sent.

  The same notifier is sent by compositor job to redraw all possible

Simple fix: don't refresh image space for NC_WINDOW, there's nothing
in image_refresh() which we would want to happen on NC_WINDOW event.

8 years agoBug fix #34866
Ton Roosendaal [Fri, 5 Apr 2013 17:10:28 +0000 (17:10 +0000)]
Bug fix #34866

Global undo/redo now clears the local undo editmode stack entirely.

Error goes back to the 2.3 days, when undo was added.

Global undo refreshes the entire internal database, so all ID pointers get invalid.
This cases editmode undo storage to fail, if it uses ID pointers as well.

The error was that for any Mesh undo stack, a single global undo would make the
mesh stack corrupt. Back in edit mode, on undo you'd lose assigned texture images,
or get bad crashes.

The downside is that people expect this to work... it's a fun feature to maintain
stacks separately. Having this instable is not acceptable though. Needs quite some
redesign work to solve it (like Dalai's kill-the-tface project :)

8 years agoCode cleanup / Cycles / Object Attributes:
Thomas Dinges [Fri, 5 Apr 2013 17:03:59 +0000 (17:03 +0000)]
Code cleanup / Cycles / Object Attributes:
* Change some long "else if" conditions into switch case.

8 years agoFix #34877: The render status feedback (progress bar) does not take into account...
Sergey Sharybin [Fri, 5 Apr 2013 16:59:19 +0000 (16:59 +0000)]
Fix #34877: The render status feedback (progress bar) does not take into account specific Renderlayer samples

8 years agostyle cleanup
Campbell Barton [Fri, 5 Apr 2013 16:55:12 +0000 (16:55 +0000)]
style cleanup

8 years agoWhite space fixes (to make a diff from the trunk cleaner).
Tamito Kajiyama [Fri, 5 Apr 2013 16:53:24 +0000 (16:53 +0000)]
White space fixes (to make a diff from the trunk cleaner).

8 years agoFix #34679: cycles image texture alpha fringes. New rule is now that color output
Brecht Van Lommel [Fri, 5 Apr 2013 16:43:53 +0000 (16:43 +0000)]
Fix #34679: cycles image texture alpha fringes. New rule is now that color output
will not give straight RGB values if the alpha output is used, so that mixing with
a transparent BSDF gives the correct result.

8 years agoKeep brush overlays below panels in triple buffer mode.
Antony Riakiotakis [Fri, 5 Apr 2013 16:34:27 +0000 (16:34 +0000)]
Keep brush overlays below panels in triple buffer mode.

8 years agosvn merge ^/trunk/blender -r55813:55815
Campbell Barton [Fri, 5 Apr 2013 16:27:39 +0000 (16:27 +0000)]
svn merge ^/trunk/blender -r55813:55815

8 years agocode cleanup: quiet some warnings and style
Campbell Barton [Fri, 5 Apr 2013 15:45:10 +0000 (15:45 +0000)]
code cleanup: quiet some warnings and style

8 years agosvn merge ^/trunk/blender -r55776:55813
Campbell Barton [Fri, 5 Apr 2013 15:42:31 +0000 (15:42 +0000)]
svn merge ^/trunk/blender -r55776:55813

8 years agofix [#34881] Bad characters in error output (PyConsole) if trying to use a Bmesh...
Campbell Barton [Fri, 5 Apr 2013 15:09:25 +0000 (15:09 +0000)]
fix [#34881] Bad characters in error output (PyConsole) if trying to use a Bmesh UV Layer on a BMVert

8 years agocode cleanup: use bool's for vgroup and editmode.
Campbell Barton [Fri, 5 Apr 2013 14:58:30 +0000 (14:58 +0000)]
code cleanup: use bool's for vgroup and editmode.

8 years agoMore fixes for under ubuntu 10.04: git package is called "git-core...
Bastien Montagne [Fri, 5 Apr 2013 13:34:32 +0000 (13:34 +0000)]
More fixes for under ubuntu 10.04: git package is called "git-core", and 'apt-cache policy' returns a different result than newer versions when no package is found, changed the "available deb package" test to use "apt-cache show" instead.

8 years agoStencil dimension control:
Antony Riakiotakis [Fri, 5 Apr 2013 13:00:16 +0000 (13:00 +0000)]
Stencil dimension control:

* Shift-Rclick and holding right click, x or y will trigger constrained
scaling of overlay. Pressing again will revert to uniform scaling.
* Added operator, visible under the mapping drop menu, to fit stencil
aspect ratio to brush image aspect ratio.
* Made it possible to access stencil attributes from python as vec.x,
vec.y. Thanks to kgeogeo for pointing out!

8 years agoFirst fix for install_deps and ubuntu 10.04 (no libtiff5, only libtiff4, wonder why...
Bastien Montagne [Fri, 5 Apr 2013 12:37:48 +0000 (12:37 +0000)]
First fix for install_deps and ubuntu 10.04 (no libtiff5, only libtiff4, wonder why this package does not work as jpeg or png ones)...

This allows compilation of OIIO, still working though (on this old OS, all libs have to be compiled, takes time... :/).

8 years agoPatch from kgeogeo:
Antony Riakiotakis [Fri, 5 Apr 2013 11:45:33 +0000 (11:45 +0000)]
Patch from kgeogeo:

* Change coordinates of stencil to float, helps with precision during
property manuipulations
* Expose stencil properties to RNA.

8 years agoFix #34873, Custom min/max node values get reset randomly while working and on save...
Lukas Toenne [Fri, 5 Apr 2013 11:16:06 +0000 (11:16 +0000)]
Fix #34873, Custom min/max node values get reset randomly while working and on save and quit. Node group socket interface was not storing the default_value struct in writefile.c, forgot to add this back when returning to DNA data for node sockets.

8 years agoFixed typo in OCIO GLSL module, was using address to a pointer..
Sergey Sharybin [Fri, 5 Apr 2013 11:10:59 +0000 (11:10 +0000)]
Fixed typo in OCIO GLSL module, was using address to a pointer..

8 years agoFix for compositor bug found by Ton Roosendaal. Color Balance node was using wrong...
Lukas Toenne [Fri, 5 Apr 2013 11:02:32 +0000 (11:02 +0000)]
Fix for compositor bug found by Ton Roosendaal. Color Balance node was using wrong socket index to map the operation socket to the UI node socket.

8 years agoFix #34872: Every images are displayed as black in UV/image editor
Sergey Sharybin [Fri, 5 Apr 2013 11:01:35 +0000 (11:01 +0000)]
Fix #34872: Every images are displayed as black in UV/image editor

Issue was caused by some mesa drivers does not support GL_RGBA16F.

Now added check around glTexImage2D to verify whether requested
internal format is actually supported. If not blender will fall
back to non-GLSL image display.

8 years agoUpdate libmv to current upstream version
Sergey Sharybin [Fri, 5 Apr 2013 09:23:20 +0000 (09:23 +0000)]
Update libmv to current upstream version

- Solves some strict compilation warning
- Style/code cleanup

8 years agoBundle current master of ceres-solver
Sergey Sharybin [Fri, 5 Apr 2013 09:22:54 +0000 (09:22 +0000)]
Bundle current master of ceres-solver

Thins brings up some speed improvements:

SPARSE_SCHUR is approx 1.3-1.5x times faster
ITERATIVE_SCHUR is approx 1.2x times faster

For blender this means camera solution go a bit
faster now. Would not have affect on tracking

8 years agoFix [#34857]: Negative temp.diff. in a smoke simulation doesn't work.
Miika Hamalainen [Fri, 5 Apr 2013 07:56:59 +0000 (07:56 +0000)]
Fix [#34857]: Negative temp.diff. in a smoke simulation doesn't work.

8 years agoApparently, you shall not define variables in the middle of the block
Sergey Sharybin [Fri, 5 Apr 2013 06:50:59 +0000 (06:50 +0000)]
Apparently, you shall not define variables in the middle of the block

8 years agofix bad memmove size (reading past buffer bounds)
Campbell Barton [Fri, 5 Apr 2013 03:44:07 +0000 (03:44 +0000)]
fix bad memmove size (reading past buffer bounds)

8 years agoBGE: Cleaning up the VBO code to use RAS_TexVert more directly instead of copying...
Mitchell Stokes [Fri, 5 Apr 2013 01:28:38 +0000 (01:28 +0000)]
BGE: Cleaning up the VBO code to use RAS_TexVert more directly instead of copying out pieces. This also gets rid of MapBuffers, which isn't available in OpenGL ES. Scenes that require constant VBO updates (like my skeletal mesh stress test) are now 10~13% faster.

8 years agoFix #34862: some operators like mesh separate or object clear parent were not
Brecht Van Lommel [Fri, 5 Apr 2013 00:53:37 +0000 (00:53 +0000)]
Fix #34862: some operators like mesh separate or object clear parent were not
showing shortcuts in menus, now it shows them in the submenu.

8 years agoFix #34867: cycles viewport render did not respect viewport visibility for
Brecht Van Lommel [Fri, 5 Apr 2013 00:33:59 +0000 (00:33 +0000)]
Fix #34867: cycles viewport render did not respect viewport visibility for
modifiers with text/curve/surface objects.

This is because the code here did not yet support the distinction between
generating the tesselated mesh at viewport/render resolution and generating a
separate displist/derivedmesh for render that is not stored in the object but
created and freed on the fly.

8 years agopy api additions needed for fixing [#34864].
Campbell Barton [Fri, 5 Apr 2013 00:30:32 +0000 (00:30 +0000)]
py api additions needed for fixing [#34864].
- add rna property 'as_bytes' method so you can get a string property as python bytes (bypass encoding).
- make bpy.path.abspath/relpath compatible with bytes.
- add 'relpath' option to bpy_extras.image_utils.load_image(), so you can load an image relative to a path.

8 years agocorrection to previous warning cleanup, also quiet shadow-warning for thumbnail ...
Campbell Barton [Fri, 5 Apr 2013 00:10:33 +0000 (00:10 +0000)]
correction to previous warning cleanup, also quiet shadow-warning for thumbnail `size`

8 years agoAttempt to fix #34871: random CUDA 3.5 compile failure due to recent change.
Brecht Van Lommel [Thu, 4 Apr 2013 23:52:33 +0000 (23:52 +0000)]
Attempt to fix #34871: random CUDA 3.5 compile failure due to recent change.

8 years agoFix #34601: cycles OSL crash when using preview render and viewport render at
Brecht Van Lommel [Thu, 4 Apr 2013 23:48:07 +0000 (23:48 +0000)]
Fix #34601: cycles OSL crash when using preview render and viewport render at
the same time, due to shared texture cache system.

8 years agocode cleanup: bge warnings
Campbell Barton [Thu, 4 Apr 2013 23:16:23 +0000 (23:16 +0000)]
code cleanup: bge warnings

8 years agoskip unneeded calculations when calling calculateTransformCenter()
Campbell Barton [Thu, 4 Apr 2013 21:40:39 +0000 (21:40 +0000)]
skip unneeded calculations when calling calculateTransformCenter()
which gets called whenever the view is rotated when rotate-around-selected preference is enabled.

8 years agoFix for 34703 Mix node (Hue, Saturation) update and rendering error
Jeroen Bakker [Thu, 4 Apr 2013 19:53:30 +0000 (19:53 +0000)]
Fix for 34703 Mix node (Hue, Saturation) update and rendering error
Fix for 34494 Blender 2.65 regression test error - compo_map_uv_cubes.blend - stripe/artifact between cubes

Hue and saturation node has an early break when saturarion is 0. When this happened the input 1 color needed to be used. This behaviour was not merged.

When no FSAA is used in the ZCombine. a mask will be created, this mask will be antialiased and based on this mask the colors between the two images are blended. This was also behaviour that was not merged correctly. Now it is back making much better z-combines.

Hope nobody uses these gabs as a work around.

 - At Mind -
Jeroen & Monique

8 years agopy api, bmesh
Campbell Barton [Thu, 4 Apr 2013 18:22:01 +0000 (18:22 +0000)]
py api, bmesh
- add BMEdge.calc_face_angle_signed() which gives a negative angle for for concave edges.
- add BMEdge.is_convex

8 years agocode cleanup: py ui
Campbell Barton [Thu, 4 Apr 2013 17:01:51 +0000 (17:01 +0000)]
code cleanup: py ui

8 years agoRelease Logs:
Thomas Dinges [Thu, 4 Apr 2013 16:23:00 +0000 (16:23 +0000)]
Release Logs:
* Readme and release links for upcoming Blender 2.67.

8 years agoJump to start/end of tracked segment works in Mask editing mode now.
Sergey Sharybin [Thu, 4 Apr 2013 16:05:02 +0000 (16:05 +0000)]
Jump to start/end of tracked segment works in Mask editing mode now.

8 years agocode cleanup: use bools in interface handlers, dont show translation menu when right...
Campbell Barton [Thu, 4 Apr 2013 15:16:29 +0000 (15:16 +0000)]
code cleanup: use bools in interface handlers, dont show translation menu when right clicking on splash, use less confusing args for copy/paste function.

8 years agoTwo small fixes:
Ton Roosendaal [Thu, 4 Apr 2013 15:10:52 +0000 (15:10 +0000)]
Two small fixes:

- "Add node" was showing on wrong location when used via pulldown menus.
  Now this option will put the nodes in center of the view.

- The Curves widget was making itself smaller/bigger based on width of region.
  That messes up the layout engine now - especially the code that checks if
  there's a scroller needed or not (it went into an eternal feedback loop).

  Now this widget has fixed height (like the other larger widgets).

  Better would be to allow such large widgets to be scaled vertically individually.
  That's for the todo!

8 years agofix for referencing freed memory when rendering materials (could crash material preview).
Campbell Barton [Thu, 4 Apr 2013 14:07:10 +0000 (14:07 +0000)]
fix for referencing freed memory when rendering materials (could crash material preview).

8 years agoFix #34863: bge.render.makeScreenshot from Blender was only saving PNG files,
Brecht Van Lommel [Thu, 4 Apr 2013 14:00:31 +0000 (14:00 +0000)]
Fix #34863: bge.render.makeScreenshot from Blender was only saving PNG files,
while the docs said it followed the settings in the Output panel, other file
formats work now.

Benderplayer still only saves PNG now as documented, but I cleaned up the code
there to reuse existing imbuf functions rather than using own libpng code.

8 years agosvn merge ^/trunk/blender -r55700:55776
Campbell Barton [Thu, 4 Apr 2013 13:37:07 +0000 (13:37 +0000)]
svn merge ^/trunk/blender -r55700:55776

8 years agoRemove unused function.
Sergey Sharybin [Thu, 4 Apr 2013 12:26:31 +0000 (12:26 +0000)]
Remove unused function.

It was only used for movie clips prefetching, no need
in it nowadays.

8 years agoUse GLSL display for compositor backdrop and sequencer preview
Sergey Sharybin [Thu, 4 Apr 2013 12:20:13 +0000 (12:20 +0000)]
Use GLSL display for compositor backdrop and sequencer preview

Now only background images remained to be ported. Plus implement
GLSL for dithering and RGB curves.

8 years agoFix blenderplayer (missing stub...).
Bastien Montagne [Thu, 4 Apr 2013 12:12:33 +0000 (12:12 +0000)]
Fix blenderplayer (missing stub...).

8 years agoquiet warnings (building with -Werror)
Campbell Barton [Thu, 4 Apr 2013 11:47:48 +0000 (11:47 +0000)]
quiet warnings (building with -Werror)

8 years agometaballs were not scaling/rotating about their own centers when V3D_LOCAL was used.
Campbell Barton [Thu, 4 Apr 2013 09:59:06 +0000 (09:59 +0000)]
metaballs were not scaling/rotating about their own centers when V3D_LOCAL was used.

8 years agoChanges to cache invalidation policy for movie clips
Sergey Sharybin [Thu, 4 Apr 2013 09:50:51 +0000 (09:50 +0000)]
Changes to cache invalidation policy for movie clips

- When changing clip in clip editor, remove all frames
  from it's cache to free memory for new clip.

- When changing proxy render settings, free cache as well.

8 years agoClip editor prefetch changes
Sergey Sharybin [Thu, 4 Apr 2013 09:50:38 +0000 (09:50 +0000)]
Clip editor prefetch changes

Made it an operator instead of automatic prefetching.
Filling the whole memory with frames is not always
desired behavior.

Now prefetching is available via P-key, or from Clip
panel in toolbox or from Clip menu.

Also enabled prefetching for non-proxied movies.

8 years agofix [#34802] Individual Transformation Confusing in Edit Mode
Campbell Barton [Thu, 4 Apr 2013 09:20:46 +0000 (09:20 +0000)]
fix [#34802] Individual Transformation Confusing in Edit Mode

Individual transformation now works in editmode mesh faces/edge, armature bones and metaballs.

8 years agoimproved method of getting the tangent axis from a bmesh triangle,
Campbell Barton [Thu, 4 Apr 2013 08:47:07 +0000 (08:47 +0000)]
improved method of getting the tangent axis from a bmesh triangle,
rather then getting the longest edge, get the edge which which is most different from the 2 others ends up giving more useful results: for an isosceles triangle it returns the base weather its longer or shorter then the other sides.

8 years agofix [#34860] View in Weight Painting mode no longer rotates around active bone
Campbell Barton [Thu, 4 Apr 2013 04:26:13 +0000 (04:26 +0000)]
fix [#34860] View in Weight Painting mode no longer rotates around active bone

8 years agocode cleanup: use bools, (float)sin/(float)cos -> sinf/cosf, more meaningful var...
Campbell Barton [Thu, 4 Apr 2013 04:22:38 +0000 (04:22 +0000)]
code cleanup: use bools, (float)sin/(float)cos -> sinf/cosf, more meaningful var names.

8 years agoFix for [#34754] "Revision 55527 provokes glitchy GLSL shadow map rendering" reported...
Mitchell Stokes [Thu, 4 Apr 2013 03:55:43 +0000 (03:55 +0000)]
Fix for [#34754] "Revision 55527 provokes glitchy GLSL shadow map rendering" reported by Alain Ducharme. Per material uniforms and per object uniforms are now better separated.

8 years agocode cleanup: use bools in UI and WM code, quiet some shadow warnings, remove unused...
Campbell Barton [Thu, 4 Apr 2013 02:05:11 +0000 (02:05 +0000)]
code cleanup: use bools in UI and WM code, quiet some shadow warnings, remove unused function uiEmboss()

8 years agoFix #34625: duplivert/face rendering with modifier could crash accessing UV and
Brecht Van Lommel [Wed, 3 Apr 2013 20:10:08 +0000 (20:10 +0000)]
Fix #34625: duplivert/face rendering with modifier could crash accessing UV and
generated coordinates on the original mesh, after the change that made duplis
take modifiers into account.

8 years agoFix for Freestyle face marks not effective with the Mirror modifier.
Tamito Kajiyama [Wed, 3 Apr 2013 18:26:51 +0000 (18:26 +0000)]
Fix for Freestyle face marks not effective with the Mirror modifier.
Reported by IRIE Shinsuke through a branch code review comment, thanks!

8 years agoFix #34700: orthographic camera DOF was still not working correct.
Brecht Van Lommel [Wed, 3 Apr 2013 17:32:30 +0000 (17:32 +0000)]
Fix #34700: orthographic camera DOF was still not working correct.

8 years agoApparently zoom in clip editor was broken
Sergey Sharybin [Wed, 3 Apr 2013 16:21:14 +0000 (16:21 +0000)]
Apparently zoom in clip editor was broken

Also silenced some warnings in glutil.

8 years agoFix #34852: multilayer SSS material rendering different in progressive and
Brecht Van Lommel [Wed, 3 Apr 2013 16:12:13 +0000 (16:12 +0000)]
Fix #34852: multilayer SSS material rendering different in progressive and
non-progressive integrator.

8 years agoBunch of fixes for GLSL display transform
Sergey Sharybin [Wed, 3 Apr 2013 15:59:54 +0000 (15:59 +0000)]
Bunch of fixes for GLSL display transform

- GLSL shader wasn't aware of alpha predivide option,
  always assuming alpha is straight. Gave wrong results
  when displaying transparent float buffers.

- GLSL display wasn't aware of float buffers with number
  of channels different from 4, crashing when trying to
  display image with different number of channels.

  This required a bit larger changes, namely now it's
  possible to pass format (GL_RGB, GL_RGBAm GL_LUMINANCE)
  to glaDrawPixelsTex, This also implied adding format to
  glaDrawPixelsAuto and modifying all places where this
  functions are called.

  Now GLSL will handle both 3 and 4 channels buffers,
  single channel images are handled by CPU.

- Replaced hack for render result displaying with a bit
  different hack.

  Namely CPU conversion will happen only during render,
  once render is done GLSL would be used for displaying
  render result on a screen.

  This is so because of the way renderer updates parts
  of the image -- it happens without respect to active
  render layer in image user. This is harmless because
  only display buffer is modifying, but this is tricky
  because we don't have original buffer opened during

  One more related fix here was about when rendering
  multiple layers, wrong image would be displaying when
  rendering is done. Added a signal to invalidate
  display buffer once rendering is done (only happens
  when using multiple layers). This solves issue with
  wrong buffer stuck on the display when using regular
  CPU display space transform and if GLSL is available
  it'll make image displayed with a GLSL shader.

- As an additional change, byte buffers now also uses
  GLSL display transform.

  So now only dutehr and RGB curves are stoppers for
  using GLSL for all kind of display transforms.

8 years agocode cleanup: unused functions
Campbell Barton [Wed, 3 Apr 2013 15:04:24 +0000 (15:04 +0000)]
code cleanup: unused functions

8 years agoFix #34856: crash passing an object rather than a mesh to,
Brecht Van Lommel [Wed, 3 Apr 2013 13:43:12 +0000 (13:43 +0000)]
Fix #34856: crash passing an object rather than a mesh to,
this should give an error message but it didn't.

8 years agoFix for old compatibility issue: 2.59.2 do_versions was not handling all local node...
Lukas Toenne [Wed, 3 Apr 2013 11:36:48 +0000 (11:36 +0000)]
Fix for old compatibility issue: 2.59.2 do_versions was not handling all local node trees (world and lamp missing).

8 years agocode cleanup: use more (blender) conventional naming for group functions.
Campbell Barton [Wed, 3 Apr 2013 11:28:42 +0000 (11:28 +0000)]
code cleanup: use more (blender) conventional naming for group functions.
also change to dump by default.

8 years agonew ruler option to be able to interactively measure surface thichness as you drag...
Campbell Barton [Wed, 3 Apr 2013 10:45:13 +0000 (10:45 +0000)]
new ruler option to be able to interactively measure surface thichness as you drag the ruler about.
Request from Bart Veldhuizen.

Access with Shift+Drag

8 years agopass snap arguments so the ruler doesn't have to temp overwrite scene vars.
Campbell Barton [Wed, 3 Apr 2013 09:48:21 +0000 (09:48 +0000)]
pass snap arguments so the ruler doesn't have to temp overwrite scene vars.
also expose snapObjectsRayEx() for more convenient ray-casting about the scene.

8 years agoFix #33628, Segmentation fault after pasting a closed group of nodes into an open...
Lukas Toenne [Wed, 3 Apr 2013 09:10:29 +0000 (09:10 +0000)]
Fix #33628, Segmentation fault after pasting a closed group of nodes into an open group. Finally now there is a proper check for pasting nodes into groups. It uses the poll_instance callback of node types to determine if a node can be added into a specific node tree. Currently this is only implemented for group nodes and does a recursive check to avoid pasting a node group into itself (on any level, also nested groups).

8 years agoFix/Workaround #34854: render buffer update writes to wrong layer
Sergey Sharybin [Wed, 3 Apr 2013 09:08:02 +0000 (09:08 +0000)]
Fix/Workaround #34854: render buffer update writes to wrong layer

Was caused by recent change in image_buffer_rect_update which
was writing data to ibuf-rect_float. Apparently, this buffer
could point to different render layer than came from RenderResult.

Made quick fix for this, which ends up in skipping float buffer
update in image_buffer_rect_update and skipping GLSL when image
has both byte and float buffers.

This will bring speed down a bit, but slower blender is better
than broken blender.

Proper fix will arrive later this week.

8 years agoFix #34838, Can not append mesh from 2.5 (Crash in Nodes). The compatibility code...
Lukas Toenne [Wed, 3 Apr 2013 08:25:29 +0000 (08:25 +0000)]
Fix #34838, Can not append mesh from 2.5 (Crash in Nodes). The compatibility code for node group socket indices was assuming the new group node types even for 2.56.2 files, before these node groups had actually been converted ... Needs to use old way of identifying node group links (fromnode/tonode == NULL) instead of input/output node types.

8 years agoFix for missing integer 'type' of the virtual extension socket in group nodes. This...
Lukas Toenne [Wed, 3 Apr 2013 07:56:36 +0000 (07:56 +0000)]
Fix for missing integer 'type' of the virtual extension socket in group nodes. This could lead to crash in node groups when trying to undefined stack values of the extension socket. type just needs to be set to SOCK_CUSTOM==-1, so the BI execution knows not to look for a stack entry.

8 years agoCleanup outliner_dropzone code
Dan Eicher [Wed, 3 Apr 2013 07:42:56 +0000 (07:42 +0000)]
Cleanup outliner_dropzone code

 * deduplicated a bunch of code and moved it into outliner_dropzone_find()
 * moved all the per-dropzone checks into the poll functions
 * one functional change, disable drop parenting on self & self->parent

The basic assumption: if poll() == true then outliner_dropzone_find() will return a valid TreeElement

8 years agouse floats for transform snapping distance comparisons
Campbell Barton [Wed, 3 Apr 2013 07:36:37 +0000 (07:36 +0000)]
use floats for transform snapping distance comparisons

8 years agofix [#34825] Transparent background of Empty Images clips objects behind them away...
Campbell Barton [Wed, 3 Apr 2013 05:16:15 +0000 (05:16 +0000)]
fix [#34825] Transparent background of Empty Images clips objects behind them away when Empty is not selected

allow 'Transparency' option to be used on empty-images.

8 years agofix [#34850] "x" to clear ID prop fields is too close to the right border
Campbell Barton [Wed, 3 Apr 2013 05:02:33 +0000 (05:02 +0000)]
fix [#34850] "x" to clear ID prop fields is too close to the right border

8 years agofix [#34847] Box selecting shape keys of a mask causes crash
Campbell Barton [Wed, 3 Apr 2013 03:25:26 +0000 (03:25 +0000)]
fix [#34847] Box selecting shape keys of a mask causes crash