9 years agoCycles OSL: some build system tweaks to avoid global includes and definitions,
Brecht Van Lommel [Sat, 20 Oct 2012 12:17:45 +0000 (12:17 +0000)]
Cycles OSL: some build system tweaks to avoid global includes and definitions,
which ensures there is no conflict with other libraries, and avoids full rebuild
when toggling OSL on/off.

9 years agoadd TIMEIT_VALUE_PRINT() macro for printing timing between start/end macros.
Campbell Barton [Sat, 20 Oct 2012 10:37:15 +0000 (10:37 +0000)]
add TIMEIT_VALUE_PRINT() macro for printing timing between start/end macros.

9 years agoMore UI messages fixes and tweaks, and BKE_report<->BKE_reportf.
Bastien Montagne [Sat, 20 Oct 2012 10:28:34 +0000 (10:28 +0000)]
More UI messages fixes and tweaks, and BKE_report<->BKE_reportf.

9 years agocode cleanup: remove unused members of BMIter struct to save some space. (this iterat...
Campbell Barton [Sat, 20 Oct 2012 10:11:26 +0000 (10:11 +0000)]
code cleanup: remove unused members of BMIter struct to save some space. (this iterator is used everywhere).
also rename vars in the struct.

9 years agocode cleanup: quiet -Wshadow warning, var name changes for splice functions and add...
Campbell Barton [Sat, 20 Oct 2012 09:56:40 +0000 (09:56 +0000)]
code cleanup: quiet -Wshadow warning, var name changes for splice functions and add assert for BM_edge_splice() when edges don't use the same vertices.

9 years agoadd BM_edge_find_double() and use in bmesh decimator to fix crash.
Campbell Barton [Sat, 20 Oct 2012 09:48:41 +0000 (09:48 +0000)]
add BM_edge_find_double() and use in bmesh decimator to fix crash.

9 years agoRemove six languages from Blender UI (rational: very low level of translation, 1...
Bastien Montagne [Sat, 20 Oct 2012 08:52:54 +0000 (08:52 +0000)]
Remove six languages from Blender UI (rational: very low level of translation, 1-2% at most, and no commit done in branch since more than one year): fi (Finnish), ca (Catalan), bg (Bulgarian), el (Greek), ne (Nepali) and pl (Polish).

Also fix compile in paranoid warning=errors mode for own last commit.

9 years agoFix unix language setting fallback (long_locale is windows only!). This was preventin...
Bastien Montagne [Sat, 20 Oct 2012 08:33:54 +0000 (08:33 +0000)]
Fix unix language setting fallback (long_locale is windows only!). This was preventing setting language when you did not have the relevant locale installed under Linux...

9 years agocode cleanup:
Campbell Barton [Sat, 20 Oct 2012 08:02:18 +0000 (08:02 +0000)]
code cleanup:
- define array sizes for functions that take vectors.
- quiet some -Wshadow warnings.
- some copy/paste error in readfile.c made it set the same particle recalc flag twice.

9 years agorna_sequencer_api.c doc string cleanup
Dan Eicher [Sat, 20 Oct 2012 05:51:45 +0000 (05:51 +0000)]
rna_sequencer_api.c doc string cleanup

9 years agoCode cleanup
Joshua Leung [Sat, 20 Oct 2012 05:08:26 +0000 (05:08 +0000)]
Code cleanup

9 years agoGrease Pencil: Tweaks to make tooltips show up for the different drawing tool
Joshua Leung [Sat, 20 Oct 2012 04:56:24 +0000 (04:56 +0000)]
Grease Pencil: Tweaks to make tooltips show up for the different drawing tool
types available

9 years agoFix for drawing meshes with VBOs disabled in sculpt mode
Nicholas Bishop [Sat, 20 Oct 2012 00:45:44 +0000 (00:45 +0000)]
Fix for drawing meshes with VBOs disabled in sculpt mode

* This is another fix for r51118. Was drawing flat-shaded GPU buffers
  with VBOs even when VBOs were disabled in the preferences.

9 years agoFix [#32925] Center cursor (shift+C) crashing blender after duplicating bone in armat...
Bastien Montagne [Fri, 19 Oct 2012 19:16:18 +0000 (19:16 +0000)]
Fix [#32925] Center cursor (shift+C) crashing blender after duplicating bone in armature edit mode.

Center Cursor uses BKE_object_minmax(), which uses pchans' bone member to check whether a bone is visible or not. But after a duplication, the duplicated pchan->bone are NULL, skiping in this case (as if they were hidden, not optimal but should do the work for now - anyway, using pchan's values in Edit mode does not really make sense, imho).

9 years agoMinor fix to BKE_reportf(): also output the report's type when printing to console.
Bastien Montagne [Fri, 19 Oct 2012 17:08:46 +0000 (17:08 +0000)]
Minor fix to BKE_reportf(): also output the report's type when printing to console.

9 years agoFix #32920: cloth physics with collision exploding in some cases, due to
Brecht Van Lommel [Fri, 19 Oct 2012 16:44:08 +0000 (16:44 +0000)]
Fix #32920: cloth physics with collision exploding in some cases, due to
uninitialized memory usage.

9 years agoMore UI messages fixes and tweaks, BKE_report<->BKE_reportf, and stuff to translate...
Bastien Montagne [Fri, 19 Oct 2012 16:43:10 +0000 (16:43 +0000)]
More UI messages fixes and tweaks, BKE_report<->BKE_reportf, and stuff to translate...

9 years agoAdditional debug assert in the compositor for checking correct conversion of Nodes...
Lukas Toenne [Fri, 19 Oct 2012 16:29:17 +0000 (16:29 +0000)]
Additional debug assert in the compositor for checking correct conversion of Nodes to Operations. This will trigger an assert failure whenever a node has remaining socket connections after conversion. This would mean that not all sockets have been properly relinked and helps detect incomplete code.

9 years agoAdd stub for new ED_view3d_grid_scale().
Bastien Montagne [Fri, 19 Oct 2012 14:38:32 +0000 (14:38 +0000)]
Add stub for new ED_view3d_grid_scale().

9 years agoCycles/ Layer Weight Node:
Thomas Dinges [Fri, 19 Oct 2012 13:51:37 +0000 (13:51 +0000)]
Cycles/ Layer Weight Node:
* Small tweak for the blend value, to avoid division by zero.

Thanks to Brecht for pointing out the solution.

9 years agoFix #32219: Inconsistent influence of Units Scale on new objects
Sergey Sharybin [Fri, 19 Oct 2012 12:53:03 +0000 (12:53 +0000)]
Fix #32219: Inconsistent influence of Units Scale on new objects

Made it so meshes, curves, surfaces and metaballs are scaling to a grid cell size,
which makes them behave consistently now.

There're still issues to be resolved still:

- Lattice is not scaled to grid cell size yet, it uses slightly different add
  function which makes scaling a bit tricky and hacky. Would prefer to do a
  bit bigger refactor here, so it's a TODO for now.

- Cameras, speakers and other helpers are not scaling. They don't have data
  on which scale could be applied and perhaps it should be some kind of draw
  scale. Also would consider it's a TODO for now.

9 years agofix for some issues with modal mesh tool interaction.
Campbell Barton [Fri, 19 Oct 2012 12:45:31 +0000 (12:45 +0000)]
fix for some issues with modal mesh tool interaction.

When inset and bevel used the mouse input as a distance value, the change could be far too great when zoomed in, or far too small when zoomed out. Now get the pixel-size based on the center point of the selection.

9 years agoFix #32705: Esc a value change doesn't recalc compositor
Sergey Sharybin [Fri, 19 Oct 2012 11:47:33 +0000 (11:47 +0000)]
Fix #32705: Esc a value change doesn't recalc compositor

Seems the issue was caused by G.is_break set to Truth on both escape
press and release. This ended up in situation when after press event
compositor was tagged to redraw and new job was started. On escape
release this compositor job was cancelled.

Made it so G.is_break is setting on escape press event only.

9 years agoadd option to initialize heap with a known number of elements, since this may be...
Campbell Barton [Fri, 19 Oct 2012 10:40:32 +0000 (10:40 +0000)]
add option to initialize heap with a known number of elements, since this may be known in advance - it avoids re-allocing too much.

9 years agosimplify addon install print, Now it only prints the source and destination dirs...
Campbell Barton [Fri, 19 Oct 2012 10:37:24 +0000 (10:37 +0000)]
simplify addon install print, Now it only prints the source and destination dirs, with a list of addons added.
don't think its needed to print the full path of each addon.

also remove the __MACOX check, its harmless and people can make sure there zips dont have cruft in them before distributing them.

9 years ago[#32921] Fix: Python error triggered when installing an addon via 'install addon...
Gaia Clary [Fri, 19 Oct 2012 08:51:31 +0000 (08:51 +0000)]
[#32921] Fix: Python error triggered when installing an addon via 'install addon' button

9 years agoFix: Text fields for Generator FModifier were too small
Joshua Leung [Fri, 19 Oct 2012 08:49:49 +0000 (08:49 +0000)]
Fix: Text fields for Generator FModifier were too small

This was caused by the x^n labels being far too large. Also, replaced old string
functions with "safer" versions

9 years agodecimate modifier rewrite to use bmesh (#ifdef-disabled by default for now).
Campbell Barton [Fri, 19 Oct 2012 07:31:51 +0000 (07:31 +0000)]
decimate modifier rewrite to use bmesh (#ifdef-disabled by default for now).
- maintains quads & ngons
- supports some customdata (weight paint for example works fine).

- add suppory for loop data (UV's / VCol's).
- outputs invalid geometry when heavily reducing some meshes, needs to be made stable in these cases.

9 years agosmall quadric library ported from Laurence Bourn's LOD_decimator LOD_Quadric class...
Campbell Barton [Fri, 19 Oct 2012 07:20:37 +0000 (07:20 +0000)]
small quadric library ported from Laurence Bourn's LOD_decimator LOD_Quadric class. not used just yet.

9 years agoDM_to_bmesh_ex() now initializes index values when running in empty meshes. saves...
Campbell Barton [Fri, 19 Oct 2012 03:28:41 +0000 (03:28 +0000)]
DM_to_bmesh_ex() now initializes index values when running in empty meshes. saves running extra loop on vert/edge/face data if these values are needed after.

9 years agocode cleanup: minor style change & quiet warning, also add assert for BM_vert_splice...
Campbell Barton [Fri, 19 Oct 2012 03:07:58 +0000 (03:07 +0000)]
code cleanup: minor style change & quiet warning, also add assert for BM_vert_splice() to check for invalid use.

9 years agoFix for VBO drawing in multires sculpting
Nicholas Bishop [Fri, 19 Oct 2012 02:38:50 +0000 (02:38 +0000)]
Fix for VBO drawing in multires sculpting

Was a mistake in a code cleanup commit, r51118.

Fixes bug [#32919] Sculting performance regression in svn_51118

9 years agoMore UI messages and BKE_reportf<->BKE_report fixes...
Bastien Montagne [Thu, 18 Oct 2012 16:25:58 +0000 (16:25 +0000)]
More UI messages and BKE_reportf<->BKE_report fixes...

9 years agoBetter fix for #32846. Instead of using time change or object recalc condition, set...
Lukas Toenne [Thu, 18 Oct 2012 15:54:24 +0000 (15:54 +0000)]
Better fix for #32846. Instead of using time change or object recalc condition, set an explicit object flag to disable particle system modifier update during dupli list creation. This is more transparent and should prevent issues with hair path generation being skipped.

9 years agoFix #32912: cycles crash with dead particles, actual crash was caused by an
Brecht Van Lommel [Thu, 18 Oct 2012 15:00:32 +0000 (15:00 +0000)]
Fix #32912: cycles crash with dead particles, actual crash was caused by an
inconsistency in the particle system code, using <= and <. Also tightened up
checks on cycles side to avoid other potential crashes.

9 years agoFix: Smoke 3d viewport shading was sometimes calculated incorrectly when adaptive...
Miika Hamalainen [Thu, 18 Oct 2012 14:23:04 +0000 (14:23 +0000)]
Fix: Smoke 3d viewport shading was sometimes calculated incorrectly when adaptive domain was enabled.

9 years agoCycles: suppress path to nvcc appearing in the console in cases
Sergey Sharybin [Thu, 18 Oct 2012 13:48:02 +0000 (13:48 +0000)]
Cycles: suppress path to nvcc appearing in the console in cases
cuda toolkit is installed to different place than /usr/local/cuda
(i.e. happens when using cuda toolkit from repository)

9 years agoMark unused variables.
Sergey Sharybin [Thu, 18 Oct 2012 13:20:23 +0000 (13:20 +0000)]
Mark unused variables.

9 years agoFix #32851: Mouse click coordinates when adding and selecting mask vertices on undist...
Sergey Sharybin [Thu, 18 Oct 2012 13:18:11 +0000 (13:18 +0000)]
Fix #32851: Mouse click coordinates when adding and selecting mask vertices on undistorted footage are off

9 years agoFix for OSL compile errors.
Lukas Toenne [Thu, 18 Oct 2012 13:16:57 +0000 (13:16 +0000)]
Fix for OSL compile errors.

1) object_fetch_transform_motion omits the per-object motion blur test (r51394), must use object_fetch_transform_motion_test.
2) KernelCamera.ndctoworld has been removed (r51402), do transform invert directly.

9 years agoMore fixes related to #32900, motion blur with cuda sm 2.0 still disabled.
Brecht Van Lommel [Thu, 18 Oct 2012 12:45:27 +0000 (12:45 +0000)]
More fixes related to #32900, motion blur with cuda sm 2.0 still disabled.

9 years agoFix #32903: bring cycles glsl up to date with latest changes.
Brecht Van Lommel [Thu, 18 Oct 2012 12:37:51 +0000 (12:37 +0000)]
Fix #32903: bring cycles glsl up to date with latest changes.

9 years agoMask editor: create new mask when trying to create new vertex without active mask set
Sergey Sharybin [Thu, 18 Oct 2012 12:29:22 +0000 (12:29 +0000)]
Mask editor: create new mask when trying to create new vertex without active mask set

9 years agoFix #32913: missing cycles viewport update when toggling visibility in outliner
Brecht Van Lommel [Thu, 18 Oct 2012 11:58:54 +0000 (11:58 +0000)]
Fix #32913: missing cycles viewport update when toggling visibility in outliner
with V and R shortcut keys.

9 years agoFix #32905: Crash with Levels node when no input is connected.
Sergey Sharybin [Thu, 18 Oct 2012 10:27:09 +0000 (10:27 +0000)]
Fix #32905: Crash with Levels node when no input is connected.

9 years agoFix #32896: No compositor tree update with image input color space change
Sergey Sharybin [Thu, 18 Oct 2012 09:48:51 +0000 (09:48 +0000)]
Fix #32896: No compositor tree update with image input color space change

9 years agostyle cleanup
Campbell Barton [Thu, 18 Oct 2012 04:51:37 +0000 (04:51 +0000)]
style cleanup

9 years agoFix #32904: strange pattern on subdivided cube with anistropic shader. Now
Brecht Van Lommel [Wed, 17 Oct 2012 23:09:12 +0000 (23:09 +0000)]
Fix #32904: strange pattern on subdivided cube with anistropic shader. Now
tangents from generated coordinates are computed per pixel on the fly, avoids
bad interpolation of singularities.

9 years agoCycles: OSL compile fixes.
Thomas Dinges [Wed, 17 Oct 2012 22:58:18 +0000 (22:58 +0000)]
Cycles: OSL compile fixes.

9 years agoAttempts to fix CUDA issues on sm 2.0 cards, still no luck getting motion blur
Brecht Van Lommel [Wed, 17 Oct 2012 22:48:29 +0000 (22:48 +0000)]
Attempts to fix CUDA issues on sm 2.0 cards, still no luck getting motion blur
working, but this should make it not crash.

Also fix for wrong shutter time, should have been shorter.

9 years agoMaybe hard limmit is good enough. Removing soft limmit for sky turbidity
Daniel Salazar [Wed, 17 Oct 2012 20:06:58 +0000 (20:06 +0000)]
Maybe hard limmit is good enough. Removing soft limmit for sky turbidity

9 years agoCycles: Sensible limmits for Sky Texture turbidity value
Daniel Salazar [Wed, 17 Oct 2012 19:29:35 +0000 (19:29 +0000)]
Cycles: Sensible limmits for Sky Texture turbidity value

9 years agoFix cycles motion blur not working correct with shutter time > 2.0. The soft
Brecht Van Lommel [Wed, 17 Oct 2012 17:27:30 +0000 (17:27 +0000)]
Fix cycles motion blur not working correct with shutter time > 2.0. The soft
limit is 2.0, and anything beyond that is extrapolation which might not work
so well but is still allowed.

9 years agoMissing semicolons in intern/ghost/intern/
Jason Wilkins [Wed, 17 Oct 2012 17:20:09 +0000 (17:20 +0000)]
Missing semicolons in intern/ghost/intern/

9 years agoCycles / OSL:
Thomas Dinges [Wed, 17 Oct 2012 16:16:35 +0000 (16:16 +0000)]
Cycles / OSL:
* Layer Weight is now available in OSL.

9 years agominor changes
Campbell Barton [Wed, 17 Oct 2012 16:10:04 +0000 (16:10 +0000)]
minor changes
- stub from last commit was incorrect (copied old docs)
- decimator was making copy of quadric for no reason.
- correct typo

9 years agoadd a template for a stub script - runs the script relative to the currently open...
Campbell Barton [Wed, 17 Oct 2012 16:01:57 +0000 (16:01 +0000)]
add a template for a stub script - runs the script relative to the currently open blend file.

9 years agoRender: local light group option for materials, blender internal feature from
Brecht Van Lommel [Wed, 17 Oct 2012 13:32:43 +0000 (13:32 +0000)]
Render: local light group option for materials, blender internal feature from
the render branch.

When a material is linked in and has a light group override, this can now use
a local group in the scene file, by replacing the linked light group with a
local group that has the same name. A use case might be controlling the specular
highlight on linked character's eyes per scene.

Patch from render branch by Pablo Vazquez.

9 years agoCycles: motion blur is now curved and passes exactly through the midpoint.
Brecht Van Lommel [Wed, 17 Oct 2012 12:55:23 +0000 (12:55 +0000)]
Cycles: motion blur is now curved and passes exactly through the midpoint.

Previously it would only interpolate between the previous and next frame,
which meant it might not hit the current frame position.

9 years agoCycles: add Tangent input for Anisotropic BSDF.
Brecht Van Lommel [Wed, 17 Oct 2012 12:17:17 +0000 (12:17 +0000)]
Cycles: add Tangent input for Anisotropic BSDF.

Also refactor SVM BSDF code, preparing it to be shared with OSL.

9 years agoFix for OSL 'background' attributes (attributes that are not associated to a particul...
Lukas Toenne [Wed, 17 Oct 2012 12:12:26 +0000 (12:12 +0000)]
Fix for OSL 'background' attributes (attributes that are not associated to a particular object). Atm this is only the 'ray_length' attribute.
Background attributes are used as fallback in two cases:
1) Non-object light samples (e.g. lamp shaders)
2) Fallback if no implicit object attribute can be found

9 years agoFix #32856, Crash in compositor due to deprecated node socket flag in old files.
Lukas Toenne [Wed, 17 Oct 2012 10:49:42 +0000 (10:49 +0000)]
Fix #32856, Crash in compositor due to deprecated node socket flag in old files.

Bit flag 5 has apparently been used for another purpose in old versions, then deprecated and was actually removed from DNA (this should never be done), then later it got reused for SOCK_DYNAMIC. Now a one-time check to clean up these flags is done in do_versions.

9 years agoFix #32887, ParticleInstance: crash with hidden particle system + children.
Lukas Toenne [Wed, 17 Oct 2012 09:49:32 +0000 (09:49 +0000)]
Fix #32887, ParticleInstance: crash with hidden particle system + children.

The issue here is that the particle instance modifier (pimd) accesses data from the linked particle system modifier (psmd). This data is only correctly generated when the psmd is enabled; here the design violates the modifier principle of providing valid object data (or rather DM) even when disabled.

The solution in this case is to make a custom isDisabled check for the pimd to see if the psmd is enabled. This means the pimd won't work for disabled psmd, but doesn't crash.

9 years agocode cleanup:
Campbell Barton [Wed, 17 Oct 2012 04:13:03 +0000 (04:13 +0000)]
code cleanup:
- move object_iterators.c --> view3d_iterators. (ED_object.h had to include ED_view3d.h which isn't so nice)
- move projection functions from view3d_view.c --> view3d_project.c (view3d_view was becoming a mishmash of utility functions and operators).
- some some cmake includes as system-includes.

9 years agocode cleanup: add check spelling osl
Campbell Barton [Wed, 17 Oct 2012 01:53:29 +0000 (01:53 +0000)]
code cleanup: add check spelling osl

9 years agostyle cleanup: make OSL follow our C style convention.
Campbell Barton [Wed, 17 Oct 2012 01:47:37 +0000 (01:47 +0000)]
style cleanup: make OSL follow our C style convention.

9 years agoCycles / OSL:
Thomas Dinges [Wed, 17 Oct 2012 00:28:46 +0000 (00:28 +0000)]
Cycles / OSL:
* Add Light Falloff Node.

9 years agoCycles / OSL:
Thomas Dinges [Tue, 16 Oct 2012 22:42:05 +0000 (22:42 +0000)]
Cycles / OSL:
* Ray Length is now available in OSL (via get_attribute)

9 years agoSmoke: Animated collision objects do no longer block smoke. Smoke gets transfered...
Daniel Genrich [Tue, 16 Oct 2012 17:01:22 +0000 (17:01 +0000)]
Smoke: Animated collision objects do no longer block smoke. Smoke gets transfered velocity from moving collision object.


Part of my Blender Development Project Phase III, merged from Smoke2 branch

WIP docs:

9 years agoun-subdivide bmesh operator, useful for making lower polygon versions of models,...
Campbell Barton [Tue, 16 Oct 2012 16:04:12 +0000 (16:04 +0000)]
un-subdivide bmesh operator, useful for making lower polygon versions of models, can give nicer results then edge collapsing which tends to give a lot of sharp triangles.

works on edges and faces, has iteration option to further reduce the poly count.

access from the edge menu, under subdivide.


9 years agoFix for second bug reported in #32846: Particle emitters are still shown for secondar...
Lukas Toenne [Tue, 16 Oct 2012 15:38:52 +0000 (15:38 +0000)]
Fix for second bug reported in #32846: Particle emitters are still shown for secondary instances with "show emitter" disabled. This requires checking the duplicator visibility on dupli objects themselves after generating the dupli-list.

The emitter visibility option is messy design, it makes such checks unnecessarily complicated. A better approach would be to allow non-mesh objects to carry particle data, these objects would just be invisible anyway without having to care about extra settings. However, this conflicts with the simplistic particle design of "owner is the emitter" ...

9 years agoColor Management: texture baking should be correct when color management is disabled
Sergey Sharybin [Tue, 16 Oct 2012 15:20:18 +0000 (15:20 +0000)]
Color Management: texture baking should be correct when color management is disabled

9 years agoFix #32891: Bake to Texture didn't use color management flag properly
Sergey Sharybin [Tue, 16 Oct 2012 15:07:01 +0000 (15:07 +0000)]
Fix #32891: Bake to Texture didn't use color management flag properly

9 years agoFix/workaround #32846, dupli group + particle instances gets messed up in Cycles...
Lukas Toenne [Tue, 16 Oct 2012 14:55:36 +0000 (14:55 +0000)]
Fix/workaround #32846, dupli group + particle instances gets messed up in Cycles viewport rendering.

Caused by modifier updates during dupli-list generation. The dupli-list generation temporarily changes the ob->obmat matrix, which in turn leads to wrong particle states if used for reset. Skip the particle update if no timestep is performed or initialization required.

Proper solution for this problem would be to avoid changing the object data (= particles) state altogether in modifiers, which are usually only writing to DM data and not touching the object or base mesh. This would require a well designed physics framework and integrating it into current particles is close to impossible.

9 years agofix for free NULL pointer in BM_vert_splice() and BM_iter_as_arrayN() failed with...
Campbell Barton [Tue, 16 Oct 2012 14:35:37 +0000 (14:35 +0000)]
fix for free NULL pointer in BM_vert_splice() and BM_iter_as_arrayN() failed with BM_VERTS_OF_MESH/BM_EDGES_OF_MESH/BM_FACES_OF_MESH.

9 years agoFix object motion blur crash with lamp sampling(?), missed a check.
Brecht Van Lommel [Tue, 16 Oct 2012 13:20:57 +0000 (13:20 +0000)]
Fix object motion blur crash with lamp sampling(?), missed a check.

Motion blur documentation is here:

9 years agoCycles: non-camera viewport render border support
Sergey Sharybin [Tue, 16 Oct 2012 11:57:46 +0000 (11:57 +0000)]
Cycles: non-camera viewport render border support

This makes it possible to do a border render inside a viewport even
when not looking through the camera.

Render border could be defined by Ctrl-B shortcut (works for both
camera render border and viewport render border).

Camera render border could still be defined using Shift-B (so no
muscule memory would be broken). Currently used a special flag of
operator to do this, otherwise you'll need to either two operators
with different poll callback or it could go into conflict with a
border zoom,

Border render of a viewport could be enabled/disabled in View
panel using "Render Border" option.

9 years agoFix for (camera) motion blur changes in Cycles OSL. Compilation was broken due to...
Lukas Toenne [Tue, 16 Oct 2012 10:59:35 +0000 (10:59 +0000)]
Fix for (camera) motion blur changes in Cycles OSL. Compilation was broken due to changed object transform functions. Also added a few missing renderer service implementations for matrix callbacks.

9 years agoCycles: object motion blur enabled, so in addition to camera motion, moving
Brecht Van Lommel [Tue, 16 Oct 2012 10:48:19 +0000 (10:48 +0000)]
Cycles: object motion blur enabled, so in addition to camera motion, moving
objects in the scene will also cause motion blur.

This change does come with a bit of a slow down to the CPU rendering kernel even
with motion blur disabled, due to extra overhead in handling of object matrices.
It's a few percentages on simpler scenes, not so noticeable on more complex ones.
With motion blur enabled rendering is of course also slower as would be expected,
though from testing especially GPU rendering handles it quite well.

This does not support motion blur from deforming objects yet, only translation,
scale and rotation. Deformation blur is probably for another release.

9 years agoFix #32819: Crash when starting CUDA kernel compilation if UI translation is not...
Sergey Sharybin [Tue, 16 Oct 2012 10:29:34 +0000 (10:29 +0000)]
Fix #32819: Crash when starting CUDA kernel compilation if UI translation is not "Default"

Issue was caused by some boost filesystem routines accessing current locale
and such an access failed in cases code page isn't specified for the current

Made it so UTF-8 locale name would be tried to be used first.

9 years agofix for 2 cases BM_disk_dissolve() could fail/assert.
Campbell Barton [Tue, 16 Oct 2012 09:11:07 +0000 (09:11 +0000)]
fix for 2 cases BM_disk_dissolve() could fail/assert.
- when there was a vertex with 2 boundary edges and one manifold edge (vert at the boundary between 2 quads) it could assert.
- when there is a vertex with 2 boundary verts connected that both use the same face, it would do nothing.

9 years agoMore UI messages and BKE_reportf<->BKE_report fixes...
Bastien Montagne [Tue, 16 Oct 2012 07:53:10 +0000 (07:53 +0000)]
More UI messages and BKE_reportf<->BKE_report fixes...

9 years agoMESH_OT_vert_connect was missing select flush (newly created edges were not selected).
Campbell Barton [Tue, 16 Oct 2012 03:21:22 +0000 (03:21 +0000)]
MESH_OT_vert_connect was missing select flush (newly created edges were not selected).
also <120 line length for cycles property descriptions.

9 years agostyle cleanup
Campbell Barton [Tue, 16 Oct 2012 01:56:54 +0000 (01:56 +0000)]
style cleanup

9 years agoAdd BMesh and WM symmetrize operators
Nicholas Bishop [Mon, 15 Oct 2012 23:50:09 +0000 (23:50 +0000)]
Add BMesh and WM symmetrize operators

* The symmetrize operation makes the input mesh elements symmetrical,
  but unlike mirroring it only copies in one direction. The edges and
  faces that cross the plane of symmetry are split as needed to
  enforce symmetry.

* The symmetrize operator can be controlled with the "direction"
  property, which combines the choices of symmetry plane and
  positive-negative/negative-positive. The enum for this is

* Added menu items in the top-level Mesh menu and the WKEY specials

* Documentation:

* Reviewed by Brecht:

9 years agocode cleanup: picky rna naming convention
Campbell Barton [Mon, 15 Oct 2012 23:17:24 +0000 (23:17 +0000)]
code cleanup: picky rna naming convention

9 years agocode cleanup: use float sizes for function args.
Campbell Barton [Mon, 15 Oct 2012 23:11:59 +0000 (23:11 +0000)]
code cleanup: use float sizes for function args.

9 years agodragging the playhead now uses continuous grab.
Campbell Barton [Mon, 15 Oct 2012 22:45:47 +0000 (22:45 +0000)]
dragging the playhead now uses continuous grab.

9 years agoCycles: fix some update issues with camera motion blur, and do some more work
Brecht Van Lommel [Mon, 15 Oct 2012 21:12:58 +0000 (21:12 +0000)]
Cycles: fix some update issues with camera motion blur, and do some more work
for getting object motion blur ready.

9 years agoSmoke: Merge parts of Smoke2 branch
Daniel Genrich [Mon, 15 Oct 2012 19:57:18 +0000 (19:57 +0000)]
Smoke: Merge parts of Smoke2 branch

Collision objects do cause vorticity when passing through smoke

Part of my Smoke Development Project (milestone III)

9 years agoCycles: tweak progressive refine tooltip to make it more clear
Brecht Van Lommel [Mon, 15 Oct 2012 17:56:53 +0000 (17:56 +0000)]
Cycles: tweak progressive refine tooltip to make it more clear

9 years agoFix for #32852: set uv unwrap default packing marging to 0.001.
Brecht Van Lommel [Mon, 15 Oct 2012 17:56:51 +0000 (17:56 +0000)]
Fix for #32852: set uv unwrap default packing marging to 0.001.

9 years agoFix #32844: cycles camera motion blur producing completely blurred frames sometimes.
Brecht Van Lommel [Mon, 15 Oct 2012 17:56:40 +0000 (17:56 +0000)]
Fix #32844: cycles camera motion blur producing completely blurred frames sometimes.

9 years agoAdding Estonian and Esperanto iso codes in allowed non-capitalized UI messages...
Bastien Montagne [Mon, 15 Oct 2012 17:52:09 +0000 (17:52 +0000)]
Adding Estonian and Esperanto iso codes in allowed non-capitalized UI messages...

9 years agoAdding new Esperanto language.
Bastien Montagne [Mon, 15 Oct 2012 17:48:33 +0000 (17:48 +0000)]
Adding new Esperanto language.

9 years agoUpdate to stable Eigen 3.1.1
Daniel Genrich [Mon, 15 Oct 2012 16:29:23 +0000 (16:29 +0000)]
Update to stable Eigen 3.1.1

- Fixes several bugs within the Eigen library:

9 years agoanother change needed for qtcreator project generator to work with ninja.
Campbell Barton [Mon, 15 Oct 2012 14:26:14 +0000 (14:26 +0000)]
another change needed for qtcreator project generator to work with ninja.

9 years agoadd support for using ninja to extract build info for qtcreator/netbeans/error-checkers.
Campbell Barton [Mon, 15 Oct 2012 14:11:30 +0000 (14:11 +0000)]
add support for using ninja to extract build info for qtcreator/netbeans/error-checkers.

9 years agoForget this in svn rev51336
Sergey Sharybin [Mon, 15 Oct 2012 13:02:11 +0000 (13:02 +0000)]
Forget this in svn rev51336

9 years agoClamp minimal tile size with Save Buffers and FSAA enabled
Sergey Sharybin [Mon, 15 Oct 2012 12:54:12 +0000 (12:54 +0000)]
Clamp minimal tile size with Save Buffers and FSAA enabled

That was an old check whether tiled EXRs are used during rendering
since version 2.42 where there indeed was a special check for tile
size in EXR tile code.

Now it seems EXR could handle tiles with non-equal size and no
extra tile size check happens for EXR. Anyway EXR tile initialization
happens after initparts, so clamping size in initparts should be
safe for EXR tiles as well.