blender.git
7 years agoMerged changes in the trunk up to revision 51448.
Tamito Kajiyama [Sat, 20 Oct 2012 16:48:48 +0000 (16:48 +0000)]
Merged changes in the trunk up to revision 51448.

Conflicts resolved:
source/blender/blenkernel/CMakeLists.txt
source/blender/blenloader/intern/readfile.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/makesrna/intern/rna_main_api.c

7 years agodont ise -Wuninitialized on gcc 4.2 and older, it gives annoying warnings.
Campbell Barton [Sat, 20 Oct 2012 13:29:07 +0000 (13:29 +0000)]
dont ise -Wuninitialized on gcc 4.2 and older, it gives annoying warnings.

7 years agoInteger socket support in Cycles. Int values are already supported natively in OSL...
Lukas Toenne [Sat, 20 Oct 2012 13:11:45 +0000 (13:11 +0000)]
Integer socket support in Cycles. Int values are already supported natively in OSL, but were not used as actual ints on the SVM stack. This patch implements all the necessary functionality to support reading input values from RNA properties and convert between SHADER_SOCKET_INT and other types.

7 years agoswitch order cmake includes warning flags so its possible to disable them
Campbell Barton [Sat, 20 Oct 2012 13:08:51 +0000 (13:08 +0000)]
switch order cmake includes warning flags so its possible to disable them

7 years agoCycles OSL: most closure code is now shared between OSL and SVM. Also fix
Brecht Van Lommel [Sat, 20 Oct 2012 12:18:00 +0000 (12:18 +0000)]
Cycles OSL: most closure code is now shared between OSL and SVM. Also fix
transmission pass and filter glossy option.

The BSDF closure class is now more similar to the SVM closures, and includes
some flags and labels that are needed to properly categorize the BSDF's for
render passes. Phong closure is gone for the moment, needs to be adapated to
the new structure still.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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...

7 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.

7 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

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

7 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

7 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.

7 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).

7 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.

7 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.

7 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...

7 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.

7 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().

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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

7 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

7 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).

TODO
- 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.

7 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.

7 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.

7 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.

7 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
projects.blender.org/tracker/?func=detail&aid=32919&group_id=9&atid=498

7 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...

7 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.

7 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.

7 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.

7 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)

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

7 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

7 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.

7 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.

7 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.

7 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

7 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.

7 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.

7 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

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

7 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.

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

7 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.

7 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

7 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

7 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.

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

7 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.

7 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

7 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.

7 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.

7 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.

7 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.

7 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

7 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.

7 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.

7 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.

7 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

7 years agostyle cleanup: make OSL follow our C style convention. http://wiki.blender.org/index...
Campbell Barton [Wed, 17 Oct 2012 01:47:37 +0000 (01:47 +0000)]
style cleanup: make OSL follow our C style convention. wiki.blender.org/index.php/Dev:Doc/CodeStyle

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

7 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)

7 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.

Result:
http://www.youtube.com/watch?v=KRtc8eAgaZA

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

WIP docs:
http://wiki.blender.org/index.php/User:Genscher/Smoke_Development_Project_2012

7 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.

example: http://www.graphicall.org/ftp/ideasman42/bmesh_unsubdivide.png

7 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" ...

7 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

7 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

7 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.

7 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.

7 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:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.65/Cycles#Motion_Blur

7 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.

7 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.

7 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.

7 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
locale.

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

7 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.

7 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...

7 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.

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

7 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
  BMO_SymmDirection.

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

* Documentation:
  http://wiki.blender.org/index.php/User:Nicholasbishop/Symmetrize

* Reviewed by Brecht:
  https://codereview.appspot.com/6618059

7 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

7 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.

7 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.

7 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.

7 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

New:
----------
Collision objects do cause vorticity when passing through smoke

Part of my Smoke Development Project (milestone III)

7 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

7 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.

7 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.

7 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...

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