7 years agoRevert part of r51487 (those files are needed by the boolean ops code, /intern/bsp...
Bastien Montagne [Mon, 22 Oct 2012 06:47:54 +0000 (06:47 +0000)]
Revert part of r51487 (those files are needed by the boolean ops code, /intern/bsp/...)!

7 years agosmall optimization for BLI_heap(), give some speedup in decimeter.
Campbell Barton [Mon, 22 Oct 2012 03:25:53 +0000 (03:25 +0000)]
small optimization for BLI_heap(), give some speedup in decimeter.
- use unsigned ints only (where mixing signed/unsigned)
- turn heap_swap into an inline function, add SWAP_TVAL macro to swap values using a temp value as storage.
- added type checking SHIFT3/4 macros

also style cleanup for CTR_Map

7 years agoremove LOD_Decimator (c++ decimator), now replaced by bmesh decimator. also remove...
Campbell Barton [Mon, 22 Oct 2012 02:39:26 +0000 (02:39 +0000)]
remove LOD_Decimator (c++ decimator), now replaced by bmesh decimator. also remove CTR c++ classes that are no longer used.

7 years agoTooltip/Description fixes for recent "tweaks"
Joshua Leung [Mon, 22 Oct 2012 02:20:41 +0000 (02:20 +0000)]
Tooltip/Description fixes for recent "tweaks"

1) "AnimData" is a technical term used for a specific entity in the system.
"anim data" is mangled fluff.
2) Old tooltip for DopeSheet.source is no longer valid. It's nearly always used
to represent the current scene now.

7 years agoenable bmesh decimator by default.
Campbell Barton [Mon, 22 Oct 2012 02:09:41 +0000 (02:09 +0000)]
enable bmesh decimator by default.

7 years agofix own mistake - passing wrong argument to bmesh decimator when calculating boundary...
Campbell Barton [Mon, 22 Oct 2012 02:02:52 +0000 (02:02 +0000)]
fix own mistake - passing wrong argument to bmesh decimator when calculating boundary quadric.

7 years agoFix for [#32931] Crop node resets values to 0
Jeroen Bakker [Sun, 21 Oct 2012 18:56:48 +0000 (18:56 +0000)]
Fix for [#32931] Crop node resets values to 0
Patch done by Markus Kasten
Thanks for that!

7 years agobmesh-decimator update
Campbell Barton [Sun, 21 Oct 2012 15:20:53 +0000 (15:20 +0000)]
bmesh-decimator update
- update face normals when triangulating.
- avoid divide by zero when interpolating customdata on a zero length edge.
- replace zero float comparisons with fabsf() < FLT_EPSILON to avoid numeric error.

also renamed BLI_heap_empty() --> BLI_heap_is_empty() so its obviously readonly function.

7 years ago== filebrowser ==
Andrea Weikert [Sun, 21 Oct 2012 14:47:16 +0000 (14:47 +0000)]
== filebrowser ==
* Separated bookmarks managed by the OS (System Bookmarks) and bookmarks managed by Blender (Bookmarks).
* Added user pref to hide (or show) system bookmarks to allow users doing a video tutorial for example to hide their private system bookmarks
This feature should help especially MAC users who reported excessively long list of bookmarks which were added to Blender.

7 years agoA final bunch of UI messages fixes and tweaks, and some BKE_report()<->BKE_reportf...
Bastien Montagne [Sun, 21 Oct 2012 14:02:30 +0000 (14:02 +0000)]
A final bunch of UI messages fixes and tweaks, and some BKE_report()<->BKE_reportf() fixes.

7 years agoBugfix #27504
Ton Roosendaal [Sun, 21 Oct 2012 13:30:18 +0000 (13:30 +0000)]
Bugfix #27504

Render error.
Particle systems that duplicate group instances were setting the wrong
layer to the instanced objects, the correct layer is the particle system
itself - as being shown in the viewport correctly already.

Old report from May 2011 :)

7 years agobmesh decimate fixes
Campbell Barton [Sun, 21 Oct 2012 12:35:01 +0000 (12:35 +0000)]
bmesh decimate fixes
- don't collapse boundary verts into non boundary edges (was ugly causing spikes)
- handle degenerate cases better, rather then removing double edges after collapse, check before collapsing that there won't be any degenerate faces/edges.

7 years agoTexture UI:
Thomas Dinges [Sun, 21 Oct 2012 11:04:04 +0000 (11:04 +0000)]
Texture UI:
* Use the full space for the Texture ID Block.

7 years agoCompatibility error: BLENDER_MINVERSION was set to 2.61, but that should be 2.62.
Ton Roosendaal [Sun, 21 Oct 2012 09:57:25 +0000 (09:57 +0000)]
Compatibility error: BLENDER_MINVERSION was set to 2.61, but that should be 2.62.

This define means "the minimum version of Blender that can read the current .blend"

In 2.62 there's compatibility code to read BMesh, not in 2.61.

7 years agoFix for OSL closure base class. The 'blur' method is not implemented and must be...
Lukas Toenne [Sun, 21 Oct 2012 09:10:47 +0000 (09:10 +0000)]
Fix for OSL closure base class. The 'blur' method is not implemented and must be declared pure virtual ('= 0') to avoid compiler error (on Ubuntu 12.04, gcc 4.6.3).

7 years agoFix [#32934] Some UI texts translated/untranslated regardless of "Interface" checkbox...
Bastien Montagne [Sun, 21 Oct 2012 08:13:34 +0000 (08:13 +0000)]
Fix [#32934] Some UI texts translated/untranslated regardless of "Interface" checkbox. Patch [#32935] by Shinsuke Irie, thanks!

7 years agoFix blenderplayer build (more stub funcs...).
Bastien Montagne [Sun, 21 Oct 2012 08:11:04 +0000 (08:11 +0000)]
Fix blenderplayer build (more stub funcs...).

7 years agostyle cleanup: bge, switch statements mostly.
Campbell Barton [Sun, 21 Oct 2012 07:58:38 +0000 (07:58 +0000)]
style cleanup: bge, switch statements mostly.
also left bmesh decimator on in previous commit.

7 years agostyle cleanup: trailing tabs & expand some non prefix tabs into spaces.
Campbell Barton [Sun, 21 Oct 2012 05:46:41 +0000 (05:46 +0000)]
style cleanup: trailing tabs & expand some non prefix tabs into spaces.

7 years agoBugfix [#32932] Can't see the Speaker properties when using Cycles
Joshua Leung [Sun, 21 Oct 2012 05:23:58 +0000 (05:23 +0000)]
Bugfix [#32932] Can't see the Speaker properties when using Cycles

7 years agoBGE VideoTexture: add depth buffer access to ImageViewport and ImageRender.
Benoit Bolsee [Sat, 20 Oct 2012 22:28:44 +0000 (22:28 +0000)]
BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender.

2 new attributes to ImageViewport and ImageRender object:
depth: set to True to retrieve the depth buffer as an array of float
       (not suitable for texture source).
zbuff: set to True to retrieve the depth buffer as a grey scale pixel array
       (suitable for texture source).

A new mode 'F' is added to VideoTexture.imageToArray() to allow returning the image
buffer as a one dimensional array of float. This mode should only be used to retrieve
the depth buffer of ImageViewport and ImageRender objects.


viewport = VideoTexture.ImageViewport()
viewport.depth = True
depth = VideoTexture.imageToArray(viewport,'F')
# show depth of bottom left pixel
# 1.0 = infinite, 0.0 = on near clip plane.

7 years agocode cleanup: spelling
Campbell Barton [Sat, 20 Oct 2012 20:36:51 +0000 (20:36 +0000)]
code cleanup: spelling

7 years agostyle cleanup: comments
Campbell Barton [Sat, 20 Oct 2012 20:20:02 +0000 (20:20 +0000)]
style cleanup: comments

7 years agoAtempt to get rid of those ugly "long locales" under windows. Tested by me (win7...
Bastien Montagne [Sat, 20 Oct 2012 19:54:09 +0000 (19:54 +0000)]
Atempt to get rid of those ugly "long locales" under windows. Tested by me (win7 64, VC2008) and by Sergey. However, older OS (XP) may not work...

The idea behind this is that gettext lib has a func that mimics usual setlocale, but doing also the conversion to windows locale names. Let's hope it works everywhere!

7 years agoFix for r51447 (my CMake 2.8.9 did not like it, looks like with quotes it suites...
Bastien Montagne [Sat, 20 Oct 2012 19:36:08 +0000 (19:36 +0000)]
Fix for r51447 (my CMake 2.8.9 did not like it, looks like with quotes it suites it...).

7 years agostyle cleanup
Campbell Barton [Sat, 20 Oct 2012 18:46:57 +0000 (18:46 +0000)]
style cleanup

7 years agobmesh-decimator, skip recalculating face normals on each edge collapse. (they are...
Campbell Barton [Sat, 20 Oct 2012 18:12:22 +0000 (18:12 +0000)]
bmesh-decimator, skip recalculating face normals on each edge collapse. (they are not used so faster to avoid)

7 years agoCycles / OSL:
Thomas Dinges [Sat, 20 Oct 2012 17:50:24 +0000 (17:50 +0000)]
Cycles / OSL:
* Fix Mapping node, used wrong identifiers for Vector In/Out.

7 years agobmesh-decimate now only does CustomData_has_math for loop layers, add CustomData_has_...
Campbell Barton [Sat, 20 Oct 2012 17:39:56 +0000 (17:39 +0000)]
bmesh-decimate now only does CustomData_has_math for loop layers, add CustomData_has_interp() for vert & edges.

7 years agobmesh decimator support for loop & edge customdata. (most importantly UVs and vertex...
Campbell Barton [Sat, 20 Oct 2012 17:31:07 +0000 (17:31 +0000)]
bmesh decimator support for loop & edge customdata. (most importantly UVs and vertex colors).

7 years agoAdd option to set object origin to the center of mass
Sergej Reich [Sat, 20 Oct 2012 16:48:54 +0000 (16:48 +0000)]
Add option to set object origin to the center of mass

This uses the weighted average of polygon centroids based on area
It work well in most cases but will be slightly wrong when polygons have
many vertices.

7 years agofix for BM_edge_other_loop() not working right (own error in recent commit), and...
Campbell Barton [Sat, 20 Oct 2012 16:48:04 +0000 (16:48 +0000)]
fix for BM_edge_other_loop() not working right (own error in recent commit), and add new function BM_vert_step_fan_loop() for stepping around the loops of a face fan with manifold edges.

7 years agodon't print mousemoves with wm_handlers_do and --debug-events
Campbell Barton [Sat, 20 Oct 2012 16:04:15 +0000 (16:04 +0000)]
don't print mousemoves with wm_handlers_do and --debug-events

7 years agoCycles OSL: light path, texture coordinate, bump and blended box mapping now up
Brecht Van Lommel [Sat, 20 Oct 2012 15:09:36 +0000 (15:09 +0000)]
Cycles OSL: light path, texture coordinate, bump and blended box mapping now up
to date and working.

7 years agoCycles: disable motion blur for CUDA entirely now, also goes wrong on other
Brecht Van Lommel [Sat, 20 Oct 2012 15:09:27 +0000 (15:09 +0000)]
Cycles: disable motion blur for CUDA entirely now, also goes wrong on other
architectures. Still did not find a good solution.

7 years agoadd comment about misuse of enum set function.
Campbell Barton [Sat, 20 Oct 2012 14:16:56 +0000 (14:16 +0000)]
add comment about misuse of enum set function.

7 years agoBugfix #32641
Ton Roosendaal [Sat, 20 Oct 2012 14:13:14 +0000 (14:13 +0000)]
Bugfix #32641

User preferences, keymap editor: it allowed to set any event for "key modifier", and not
even to NULL the option. Now it limits to keyboard events, on mouseclicks it clears,
on ESC it exits without changes.

7 years agoCycles:
Thomas Dinges [Sat, 20 Oct 2012 14:08:49 +0000 (14:08 +0000)]
* Build system fixes for closure refactor.

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

- 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

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/
Jason Wilkins [Wed, 17 Oct 2012 17:20:09 +0000 (17:20 +0000)]
Missing semicolons in intern/ghost/intern/

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.