8 years agoCycles / OpenCL:
Thomas Dinges [Mon, 27 May 2013 17:13:36 +0000 (17:13 +0000)]
Cycles / OpenCL:
* Use advanced shading for nvidia as well, works fine on my Geforce 540M with sm_21.
I tested the files from regression suite.

8 years agoParticles: patch #35205 by Jakub Zolcik
Brecht Van Lommel [Mon, 27 May 2013 17:11:05 +0000 (17:11 +0000)]
Particles: patch #35205 by Jakub Zolcik

The Emission panel now has a Use Modifier Stack option to emit particles from
the mesh with modifiers applied. Previously particles would only be emitted from
faces that exist in the original mesh. There are some caveats however:

8 years agoCycles OpenCL: patch #35514 by Doug Gale
Brecht Van Lommel [Mon, 27 May 2013 16:21:07 +0000 (16:21 +0000)]
Cycles OpenCL: patch #35514 by Doug Gale

* Support using devices from all OpenCL platforms, so that you can use e.g. both
  Intel and NVidia OpenCL implementations if you have them installed.
* Fix compile error due to missing fmodf after recent math node change.
* Enable advanced shading for Intel OpenCL.
* CYCLES_OPENCL_DEBUG environment variable for generating debug symbols so you
  can debug with gdb. This crashes the compiler with Intel OpenCL on Linux though.
  To make this work the preprocessed kernel source code is written out, as gdb
  needs this.
* Show OpenCL compiler warnings even if the build succeeded.
* Some small fixes to initialize cdDevice to NULL, add missing NULL check when
  creating buffer and add missing space at end of build options for Apple OpenCL.
* Fix crash with multi device + opencl, now e.g. CPU + GPU render should work.

I did a few tweaks to the code and also:

* Fix viewport render failing sometimes with Apple CPU OpenCL, was not taking
  workgroup size limits into account properly.
* Add compile error when advanced shading in the Blender binary and OpenCL kernel
  are not in sync.

8 years agonow an addons preference are available when it start,
Campbell Barton [Mon, 27 May 2013 16:12:06 +0000 (16:12 +0000)]
now an addons preference are available when it start,
this change is made so addons may initialize their own settings.

8 years agoFix #35480: object without material crash blender when starting game engine
Sergey Sharybin [Mon, 27 May 2013 15:13:14 +0000 (15:13 +0000)]
Fix #35480: object without material crash blender when starting game engine

Was a missing NULL-pointer check. No idea why it took so long to figure
issue out -- apparently there was no crash in linux for me and msvc
didn't show any backtrace :S

Also corrected weirdo way of bit flag check which was:
  !ma->mode & MA_FACETEXTURE
better do !(ma->mode & MA_FACETEXTURE) since ! is a logic NOT.

8 years agoAnd add Aarch (tested with amd64). Everything should be functionnal now...
Bastien Montagne [Mon, 27 May 2013 13:22:55 +0000 (13:22 +0000)]
And add Aarch (tested with amd64). Everything should be functionnal now...

8 years agoFix for #35495, Material preview do not update. This was caused by a line inserted...
Lukas Toenne [Mon, 27 May 2013 13:13:21 +0000 (13:13 +0000)]
Fix for #35495, Material preview do not update. This was caused by a line inserted by pynodes merge that would cancel all running preview jobs on each node area refresh. Not sure what the rationale for
this behavior was, but it certainly doesn't work correctly.

8 years agomodification to r57023, use active color but only draw face-stipple when selected...
Campbell Barton [Mon, 27 May 2013 13:03:33 +0000 (13:03 +0000)]
modification to r57023, use active color but only draw face-stipple when selected. (active-unselected isn't in common usage for mesh editmode).

8 years agobmesh optimization: use offsets for deform-vert lookups to avoid customdata layer...
Campbell Barton [Mon, 27 May 2013 12:42:48 +0000 (12:42 +0000)]
bmesh optimization: use offsets for deform-vert lookups to avoid customdata layer lookups within loops.

8 years agoCycles / Passes:
Thomas Dinges [Mon, 27 May 2013 11:33:17 +0000 (11:33 +0000)]
Cycles / Passes:
* Some closures (Toon, Diffuse Ramp) were not assigned to a CLOSURE_IS_* define, which made them invisible on render passes.
* Westin closures had wrong type, Sheen is Diffuse, Backscatter is Glossy.

8 years agoFix #35504: Blender crashes on separating curves with different Evaluation Time ...
Sergey Sharybin [Mon, 27 May 2013 10:08:56 +0000 (10:08 +0000)]
Fix #35504: Blender crashes on separating curves with different Evaluation Time / keyframes

Used slightly different approach from what was discussed with Campbell,
and the reason of this is slightly better support of curve point animation

There're actually some limitations which better be discussed bewfore 'b':
- If there're no point animation, spline separation goes just fine.
- If there're animated points in the curve, blender will preserve
  animation for currently editing curve. But, since new curve created
  by Separate operator shares the same AnimData, it'll be animatied
  in a weird way.

So not sure whether it's better to preserve animation for current spline
but require switching animationdata for new spline or resetting animation
for current curve's animation data.

8 years agostyle cleanup: nodes
Campbell Barton [Mon, 27 May 2013 08:04:07 +0000 (08:04 +0000)]
style cleanup: nodes

8 years agostyle cleanup: nodes
Campbell Barton [Mon, 27 May 2013 07:57:17 +0000 (07:57 +0000)]
style cleanup: nodes

8 years agofix [#35518] UV Mapping crashes the Blender with specific image file
Campbell Barton [Mon, 27 May 2013 06:06:35 +0000 (06:06 +0000)]
fix [#35518] UV Mapping crashes the Blender with specific image file

2 bugs here
- missing NULL check in IMB_colormanagement_display_settings_from_ctx()
- deadlock in draw_image_paint_helpers()

Simple solution is to not draw paint helpers for render/viewer images.

8 years agoCycles / Fresnel:
Thomas Dinges [Sun, 26 May 2013 22:34:45 +0000 (22:34 +0000)]
Cycles / Fresnel:
* Avoid redundant assignment and use correct Normal for Ray Differentials.

8 years agoCycles / Hair:
Thomas Dinges [Sun, 26 May 2013 22:13:59 +0000 (22:13 +0000)]
Cycles / Hair:
* Fix a condition in the hair BVH code.

8 years agoBLI_math rename functions:
Campbell Barton [Sun, 26 May 2013 18:36:25 +0000 (18:36 +0000)]
BLI_math rename functions:
- mult_m4_m4m4 -> mul_m4_m4m4
- mult_m3_m3m4 -> mul_m3_m3m4

these temporary names were used to avoid problems when argument order was switched.

8 years agothe viewport align-active option was flipping the viewport direction,
Campbell Barton [Sun, 26 May 2013 18:24:13 +0000 (18:24 +0000)]
the viewport align-active option was flipping the viewport direction,
now you can add an object, enable align to view, then align the view back to the object without flipping.

8 years agoFixed own error: used wrong iteration count for cleaning weight groups
Gaia Clary [Sun, 26 May 2013 17:34:03 +0000 (17:34 +0000)]
Fixed own error: used wrong iteration count for cleaning weight groups

8 years agoCycles / OSL:
Thomas Dinges [Sun, 26 May 2013 17:10:22 +0000 (17:10 +0000)]
Cycles / OSL:
* Rename fresnel_dielectric() to fresnel_dielectric_cos() to match SVM, easier when searching code.
* Also remove an old code comment in bsdf_reflection.h from Cycles branch days.

8 years agoVarious fixes. Tested with OpenSuse 12.3 (amd64).
Bastien Montagne [Sun, 26 May 2013 15:00:42 +0000 (15:00 +0000)]
Various fixes. Tested with OpenSuse 12.3 (amd64).

8 years agocode cleanup: typos
Campbell Barton [Sun, 26 May 2013 12:02:29 +0000 (12:02 +0000)]
code cleanup: typos

8 years agobmesh: replace BLI_array reallocs with alloca, also don't check all faces for connect...
Campbell Barton [Sat, 25 May 2013 23:34:25 +0000 (23:34 +0000)]
bmesh: replace BLI_array reallocs with alloca, also don't check all faces for connecting verts.

8 years agocode cleanup: quiet pedantic warning in array macro.
Campbell Barton [Sat, 25 May 2013 22:26:41 +0000 (22:26 +0000)]
code cleanup: quiet pedantic warning in array macro.

8 years agofix for incorrect type casting when checking macros exec() functions.
Campbell Barton [Sat, 25 May 2013 22:07:21 +0000 (22:07 +0000)]
fix for incorrect type casting when checking macros exec() functions.
infact this worked by accident, but didn't crash.

8 years agoLive resize on Windows. Based on Ton's patch for mac.
Alexander Kuznetsov [Sat, 25 May 2013 21:59:34 +0000 (21:59 +0000)]
Live resize on Windows. Based on Ton's patch for mac.
Removing old resize stuff.
Windows has resize lag, which creates black gap with openGL. Still looking to fix it.

8 years agobmesh: replace array reallocation with a single face array and use STACK macros.
Campbell Barton [Sat, 25 May 2013 21:24:09 +0000 (21:24 +0000)]
bmesh: replace array reallocation with a single face array and use STACK macros.

8 years agobmesh: copy function - replace use of array reallocations with alloca in a static...
Campbell Barton [Sat, 25 May 2013 20:47:06 +0000 (20:47 +0000)]
bmesh: copy function - replace use of array reallocations with alloca in a static function.

8 years agoSimple usability fix:
Ton Roosendaal [Sat, 25 May 2013 17:42:20 +0000 (17:42 +0000)]
Simple usability fix:

Mesh editmode, active face was always drawing same stipple pattern color,
whether face is selected or not.
Now it uses selection color + stipple. Looks much more consistent.

8 years agoSome cleanup/reorganisation, and:
Bastien Montagne [Sat, 25 May 2013 14:49:29 +0000 (14:49 +0000)]
Some cleanup/reorganisation, and:
* Script should now remove relevant dirs in $INST when a package becomes suitable
* Script systematically runs relevant ldconfig commands when building boost/oiio

8 years agoSolving ancient Blender window sizing issue;
Ton Roosendaal [Sat, 25 May 2013 14:08:56 +0000 (14:08 +0000)]
Solving ancient Blender window sizing issue;

- Removed grid-snapping for area coordinates on scaling windows.
  That caused the areas to shrink or expand, and eventually corrupt screen layouts.

- Added simple but efficient life resize for OSX. I need to know why this is so much
  code for Windows... I suggest Windows to just copy same method; dispatch the queue,
  and just let the event system draw.

8 years agoCycles / Wireframe node:
Thomas Dinges [Sat, 25 May 2013 13:34:21 +0000 (13:34 +0000)]
Cycles / Wireframe node:
* Make sure we have valid geometry data, fixes a crash with Lamp objects.

Reported by lichtwerk in IRC, thanks!

8 years agoBug fix, irc submitted:
Ton Roosendaal [Sat, 25 May 2013 11:52:52 +0000 (11:52 +0000)]
Bug fix, irc submitted:

3D Viewport render (internal) didn't render bump maps (it was black even).

8 years agobmesh: optimize iterator size using a union for iterator specific data.
Campbell Barton [Sat, 25 May 2013 09:46:28 +0000 (09:46 +0000)]
bmesh: optimize iterator size using a union for iterator specific data.
on 64bit system reduces the struct to 64bytes, was 120, also avoids initializing unused values.

8 years agouse math functions rather then macros for bicubic interpolation.
Campbell Barton [Sat, 25 May 2013 09:33:08 +0000 (09:33 +0000)]
use math functions rather then macros for bicubic interpolation.

8 years agofix misalignement of timeliner marker with timeline
Gaia Clary [Sat, 25 May 2013 09:33:05 +0000 (09:33 +0000)]
fix misalignement of timeliner marker with timeline

8 years agoEnabled new openexr for RPM-based distro. Checked with FC18/amd64 for now, will check...
Bastien Montagne [Sat, 25 May 2013 09:31:45 +0000 (09:31 +0000)]
Enabled new openexr for RPM-based distro. Checked with FC18/amd64 for now, will check with Suse later.

8 years agocode cleanup: typo and stop manpage turning '$' into italic.
Campbell Barton [Sat, 25 May 2013 02:21:50 +0000 (02:21 +0000)]
code cleanup: typo and stop manpage turning '$' into italic.

8 years agofix [#35500] Material Copy Crash on specific scenes
Campbell Barton [Sat, 25 May 2013 00:23:23 +0000 (00:23 +0000)]
fix [#35500] Material Copy Crash on specific scenes
check material textures exist before using in a pasted material.

8 years agofix for out of bounds memory access in solidify (harmless with guardedalloc padding...
Campbell Barton [Sat, 25 May 2013 00:22:04 +0000 (00:22 +0000)]
fix for out of bounds memory access in solidify (harmless with guardedalloc padding but bad practice)

8 years agoA bunch of fixes to (most notably, a bug in oiio's embeded version...
Bastien Montagne [Fri, 24 May 2013 14:31:57 +0000 (14:31 +0000)]
A bunch of fixes to (most notably, a bug in oiio's embeded version of tbb, buggy oiio archive handling, moved ilmbase files into openexr dir (as expected by Blender), ...).

Tested with debian testing/i386 this time.

8 years agoweight tools: added more selection types to limit total operator
Gaia Clary [Fri, 24 May 2013 13:50:26 +0000 (13:50 +0000)]
weight tools: added more selection types to limit total operator

8 years agoFix bug #35450, bevel make large spikes sometimes.
Howard Trickey [Fri, 24 May 2013 13:13:05 +0000 (13:13 +0000)]
Fix bug #35450, bevel make large spikes sometimes.
Needed special case for when beveled edge is
antiparallel to an adjacent edge.

8 years agoFix for [#35490] Initial cube is green, turn off matcap and it is correct color
Thomas Dinges [Fri, 24 May 2013 12:25:18 +0000 (12:25 +0000)]
Fix for [#35490] Initial cube is green, turn off matcap and it is correct color
* Own error from r56980, "smooth" is an Interpolation qualifier in GLSL, so use another variable name to avoid the error.

8 years agoChanges for masks API
Sergey Sharybin [Fri, 24 May 2013 11:19:57 +0000 (11:19 +0000)]
Changes for masks API

Made it more consistent with blender convensions
and now it's very familiar to curve's python api.

- Made it spline.points.add(count) wich is more
  efficient in cases lots of points are adding.
  ( was removed tho).

- Removed mask_layer.splines.add(), now it's only, which is how splines
  are adding for curves.

8 years agostyle cleanup
Campbell Barton [Fri, 24 May 2013 10:59:57 +0000 (10:59 +0000)]
style cleanup

8 years agofixed memory leak in weight tool: levels
Gaia Clary [Fri, 24 May 2013 10:54:26 +0000 (10:54 +0000)]
fixed memory leak in weight tool: levels

8 years agoweight tools: added more selection types to levels operator
Gaia Clary [Fri, 24 May 2013 10:46:37 +0000 (10:46 +0000)]
weight tools: added more selection types to levels operator

8 years agoFirst attempt to handle openexr/ilmbase 2.0 in (linux builds).
Bastien Montagne [Fri, 24 May 2013 10:16:07 +0000 (10:16 +0000)]
First attempt to handle openexr/ilmbase 2.0 in (linux builds).

Only activated for Deb-like distro for now, only tested with testing/amd64. Notes :
* Had to add a hell of patches to ilmbase/openexr/oiio cmake files (some are real, stupid bugs fixing [like files missing in lists or wrong linking order], others are "enhancements" [like being able to compile both static and dyn libs for openexr]).
* Unfortunately, I could not manage to keep oiio static (can't compile osl later, as it does not link all deps of oiio, tiff, jpeg, png, etc.). I’ll try to fix this later, but for now, you'll have to do as with boost (ldconfig).

I won't say here what I think about not having any (reliable) way to really link a static lib into another one... :/

Will test and enable other distro in following day(s), I do not *expect* much difficulties here.

8 years agofix for building on osx with recent freestyle bugfix.
Campbell Barton [Fri, 24 May 2013 10:15:20 +0000 (10:15 +0000)]
fix for building on osx with recent freestyle bugfix.

8 years agoBring back "Local" as second orientation choice after "Global", as in previuos "manua...
Bastien Montagne [Fri, 24 May 2013 10:05:25 +0000 (10:05 +0000)]
Bring back "Local" as second orientation choice after "Global", as in previuos "manual" menu. Pointed out by sebastian_k on IRC, thanks.

8 years agoweight tools: added more selection types to invert operator
Gaia Clary [Fri, 24 May 2013 09:30:13 +0000 (09:30 +0000)]
weight tools: added more selection types to invert operator

8 years agoFix #35493: Blender crash when rendering in terminal mode
Sergey Sharybin [Fri, 24 May 2013 07:56:32 +0000 (07:56 +0000)]
Fix #35493: Blender crash when rendering in terminal mode

Use the same window manager for freestyle bmain as
real bmain uses. This is needed because freestyle's
bmain could be used to tag scenes for update, which
implies call of ED_render_scene_update in some cases
and that function requires proper windoew manager
to present.

Alternative would be to make render scene update does
nothing if there's no window manager, but we wanted
freestyle to be applied in rendered viewport once and
think current change is what we'll need to support
freestyle in viewport.

But a bit further, perhaps that'd make sense to not
register ED_render_scene_update as a scene update
callback when in background mode?

8 years agofix own error in r56649, caused normal calculation to fail, reported as [#35448]...
Campbell Barton [Fri, 24 May 2013 06:50:15 +0000 (06:50 +0000)]
fix own error in r56649, caused normal calculation to fail, reported as [#35448], also quiet float/double warning.

8 years agodisable auto indent when pasting text into the python console.
Campbell Barton [Fri, 24 May 2013 01:04:37 +0000 (01:04 +0000)]
disable auto indent when pasting text into the python console.

8 years agofix [#35478] Spatial Noise crashes Blender on Render
Campbell Barton [Fri, 24 May 2013 00:30:22 +0000 (00:30 +0000)]
fix [#35478] Spatial Noise crashes Blender on Render

8 years agofix own regression with ortho-camera adding points reported as [#35462]
Campbell Barton [Fri, 24 May 2013 00:01:20 +0000 (00:01 +0000)]
fix own regression with ortho-camera adding points reported as [#35462]

8 years agoFollow up to previous commit. Non tiled mask wouldn't work on airbrushes
Antony Riakiotakis [Thu, 23 May 2013 21:37:18 +0000 (21:37 +0000)]
Follow up to previous commit. Non tiled mask wouldn't work on airbrushes

8 years agofix [#35488] Toggle "Show All Layers"
Campbell Barton [Thu, 23 May 2013 21:24:56 +0000 (21:24 +0000)]
fix [#35488] Toggle "Show All Layers"

8 years agoremove v3d.modeselect, reduce size of other vars in v3d.
Campbell Barton [Thu, 23 May 2013 21:14:17 +0000 (21:14 +0000)]
remove v3d.modeselect, reduce size of other vars in v3d.

8 years agoFix #35426, masking works wrong in projection painting. When we don't
Antony Riakiotakis [Thu, 23 May 2013 21:02:51 +0000 (21:02 +0000)]
Fix #35426, masking works wrong in projection painting. When we don't
use tiling, we need to sample the mask texture when determining the
pixel masking.

8 years agostyle cleanup: also remove unused var
Campbell Barton [Thu, 23 May 2013 20:20:24 +0000 (20:20 +0000)]
style cleanup: also remove unused var

8 years agoCleaned up draw_selected_name() to avoid redundant BLI_snprintf() calls
Gaia Clary [Thu, 23 May 2013 20:02:53 +0000 (20:02 +0000)]
Cleaned up draw_selected_name() to avoid redundant BLI_snprintf() calls

8 years agoFix stack corruptions in special cases
Sergey Sharybin [Thu, 23 May 2013 18:19:50 +0000 (18:19 +0000)]
Fix stack corruptions in special cases

Issue was caused by wrong array length used
for result of name_uiprefix_id, which shall
actually be 1 byte bugger than MAX_ID_NAME.

Reported by Sebastian Koenig in IRC.

8 years agoMade display of object : bone : shapes unique for weight painting and armature posing
Gaia Clary [Thu, 23 May 2013 18:01:43 +0000 (18:01 +0000)]
Made display of object : bone : shapes unique for weight painting and armature posing

8 years agoCycles / Toon BSDF:
Thomas Dinges [Thu, 23 May 2013 17:45:20 +0000 (17:45 +0000)]
Cycles / Toon BSDF:
* Added a toon bsdf node to Cycles. This was already available as OSL only closure, but is now available inside the SVM backed as well, for CPU and GPU rendering.
* There are 2 variations available, diffuse and glossy toon, selectable via a menu inside the node.


Example render & blend file:

8 years agoImproved display of active bone (in 3DView) when weight painting a mesh Object
Gaia Clary [Thu, 23 May 2013 16:45:12 +0000 (16:45 +0000)]
Improved display of active bone (in 3DView) when weight painting a mesh Object

8 years agoAdded display of active bone (in 3DView) when weight painting a mesh Object
Gaia Clary [Thu, 23 May 2013 16:24:36 +0000 (16:24 +0000)]
Added display of active bone (in 3DView) when weight painting a mesh Object

8 years agoBug fix, IRC report.
Ton Roosendaal [Thu, 23 May 2013 16:01:25 +0000 (16:01 +0000)]
Bug fix, IRC report.

Mesh with very strange topology makes loop-select (ALT+select) crash.
Missing NULL check for do-while loop that can return NULL.

For Campbell: here's the file to check:

8 years agoBug fix #35481
Ton Roosendaal [Thu, 23 May 2013 15:10:36 +0000 (15:10 +0000)]
Bug fix #35481

Browsing screens via menu disabled screen editing (area divider drag) and made
popup menu hanging (select same editor for example).

Caused by bug fix #35434, commit gets rewinded, and report reopened.

8 years agoMasks api improvements
Sergey Sharybin [Thu, 23 May 2013 10:50:55 +0000 (10:50 +0000)]
Masks api improvements

- Added (which creates single spline
  and returns pointer to it).
- Added MaskLayer.splines.remove() to remove given spline.
- Added which creates new point
  in the origin and returns pointer to it.
- Added MaskSpline.points.remove() to remove given point.

8 years agoSupport for bridge tool subdivisions, smoothing and shape along the profile.
Campbell Barton [Thu, 23 May 2013 06:19:04 +0000 (06:19 +0000)]
Support for bridge tool subdivisions, smoothing and shape along the profile.
also added the underlying subdivision as a standalone operator in the edge menu, named: subdivide edge-ring.

8 years agofix/workaround for problem with osx permissions.
Campbell Barton [Thu, 23 May 2013 03:35:57 +0000 (03:35 +0000)]
fix/workaround for problem with osx permissions.

8 years agoFix #35449: image sequences to drive e.g. particle length or used in modifiers
Brecht Van Lommel [Wed, 22 May 2013 22:17:07 +0000 (22:17 +0000)]
Fix #35449: image sequences to drive e.g. particle length or used in modifiers
were no properly updating when rendering animations.

The render engine was only updating the image user current frame on images used
by material textures. Now moved the function that updates all from the editors
to blenkernel level and do it on all frame changes.

8 years agoWeight tools: Clean added additional selection options in operator Panel
Gaia Clary [Wed, 22 May 2013 22:03:14 +0000 (22:03 +0000)]
Weight tools: Clean added additional selection options in operator Panel

8 years agowrong list member size for memory setting(was too short)
Gaia Clary [Wed, 22 May 2013 20:46:48 +0000 (20:46 +0000)]
wrong list member size for memory setting(was too short)

8 years agoFix #35459: global texture coordinates not working with GLSL shaders. Got broken
Brecht Van Lommel [Wed, 22 May 2013 20:18:17 +0000 (20:18 +0000)]
Fix #35459: global texture coordinates not working with GLSL shaders. Got broken
in shader uniform binding optimizations in revision 55527.

8 years agoFix #35469: image editor smear and soften paint tools not working correct for
Brecht Van Lommel [Wed, 22 May 2013 20:06:50 +0000 (20:06 +0000)]
Fix #35469: image editor smear and soften paint tools not working correct for
float images, was not taking premul/straight convention into account properly.

8 years agoTemporary fix for [#35467] wrong lines with panoramic camera.
Tamito Kajiyama [Wed, 22 May 2013 19:21:42 +0000 (19:21 +0000)]
Temporary fix for [#35467] wrong lines with panoramic camera.
A warning message is shown when the panoramic camera is combined with Freestyle.

8 years agoTexture Nodes:
Thomas Dinges [Wed, 22 May 2013 17:24:52 +0000 (17:24 +0000)]
Texture Nodes:
* Use node size presets as well, some nodes were too small and also too limited in max size.

8 years agoDe-duplicate zero resolution check in marker add operators.
Sergey Sharybin [Wed, 22 May 2013 06:28:59 +0000 (06:28 +0000)]
De-duplicate zero resolution check in marker add operators.

8 years agoFix #35458: SIGSEGV ( crash ) in imagewraposa()
Sergey Sharybin [Wed, 22 May 2013 06:22:28 +0000 (06:22 +0000)]
Fix #35458: SIGSEGV ( crash ) in imagewraposa()

Was missing a NULL-check.

8 years agoFix #35461: Marker gets initialized to arbitrary position
Sergey Sharybin [Wed, 22 May 2013 06:06:22 +0000 (06:06 +0000)]
Fix #35461: Marker gets initialized to arbitrary position

Use center of currently visible frame part instead of
center of the whole frame for position of marker which
is adding from toolbox.

Used separate operator for this to keep operators more
atomic and not confuse with lots of conflicting properties.

8 years agoutility bmesh functions, for edge loop creation, optionally pass array BM_edge_split_...
Campbell Barton [Wed, 22 May 2013 06:00:26 +0000 (06:00 +0000)]
utility bmesh functions, for edge loop creation, optionally pass array BM_edge_split_n() to get verts created.

8 years agoMark toggling and create missing and non-save properties for brush selection
Sergey Sharybin [Wed, 22 May 2013 05:41:39 +0000 (05:41 +0000)]
Mark toggling and create missing and non-save properties for brush selection

Re-using this properties were rather confusing -- selecting mask brush once
lead to changes in behavior of other brushes hotkeys.

8 years agoFix for a crash due to de-referencing of a StrokeVertex Python wrapper object.
Tamito Kajiyama [Tue, 21 May 2013 23:11:25 +0000 (23:11 +0000)]
Fix for a crash due to de-referencing of a StrokeVertex Python wrapper object.
Problem report by flokkievids in the BA Freestyle thread, thanks!

8 years agoAdded new method Stroke.remove_all_vertices() for removing all vertices from the...
Tamito Kajiyama [Tue, 21 May 2013 22:59:44 +0000 (22:59 +0000)]
Added new method Stroke.remove_all_vertices() for removing all vertices from the stroke.
Patch from flokkievids in the BA Freestyle thread, thanks!

8 years agoShader Nodes:
Thomas Dinges [Tue, 21 May 2013 20:21:46 +0000 (20:21 +0000)]
Shader Nodes:
* Use unified node sizes, as already was done with compositor nodes. Only Mapping node uses a custom size. This way we don't have too small nodes on creation anymore.
* Don't show Script Category for Blender Internal nodes.

8 years agoSmoke: Remove accidental leftover code from gSoC Smoke + my Smoke code merge.
Daniel Genrich [Tue, 21 May 2013 19:52:22 +0000 (19:52 +0000)]
Smoke: Remove accidental leftover code from gSoC Smoke + my Smoke code merge.

Thanks to Miika for pointing this issue out and fixing it.

8 years agoFix: Smoke simulations of very high resolutions often produced weird results, as...
Miika Hamalainen [Tue, 21 May 2013 19:20:48 +0000 (19:20 +0000)]
Fix: Smoke simulations of very high resolutions often produced weird results, as if smoke was colliding in an invisible wall.

This was caused by a "hack" Daniel Genrich introduced in his moving obstacles commit in r46050. I suppose it was originally added to prevent issues with too fast moving obstacles, but now it ended up limiting maximum velocity of higher resolution simulations.

Here is an comparision of 184 resolution simulation (simulation area limited by adaptive domain):

I now reverted that hack until a better solution is found. Daniel, can you check this out? Pressure was limited to maximum of dt * dx (= dt / res) which doesn't make sense to limit pressure based on grid resolution. Maybe better to limit with a constant factor instead?

8 years agoFix: Smoke adaptive domain applied velocity in wrong unit space causing high velociti...
Miika Hamalainen [Tue, 21 May 2013 18:59:46 +0000 (18:59 +0000)]
Fix: Smoke adaptive domain applied velocity in wrong unit space causing high velocities never apply additional margin ahead the fluid.

Also skip new flow velocity because thats not accurate enough to be of any use in there.

8 years agoFix: Smoke simulator produced slightly different results on every run if openmp was...
Miika Hamalainen [Tue, 21 May 2013 18:57:19 +0000 (18:57 +0000)]
Fix: Smoke simulator produced slightly different results on every run if openmp was enabled.

This was a typical threading issue. Move that particular function out of the parallel block.

8 years agoOSX/scons: use ditto --arch <arch> instead of cp, to thin out unused architecture...
Jens Verwiebe [Tue, 21 May 2013 16:44:39 +0000 (16:44 +0000)]
OSX/scons: use ditto --arch <arch> instead of cp, to thin out unused architecture on the fly

8 years agoFix #35232: Marker right-click misbehavior on adding
Sergey Sharybin [Tue, 21 May 2013 14:44:50 +0000 (14:44 +0000)]
Fix #35232: Marker right-click misbehavior on adding

Made it so Add Marker button from toolbox will place
marker in the middle of the frame.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Tue, 21 May 2013 13:22:11 +0000 (13:22 +0000)]
Code cleanup / Cycles:
* Use M_2PI_F in more places and do multiplication instead of division in gradient texture.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Tue, 21 May 2013 13:15:27 +0000 (13:15 +0000)]
Code cleanup / Cycles:
* Re-use already defined Westin closure class.

8 years agoFix #35443: Animation player doesn't play some movie formats
Sergey Sharybin [Tue, 21 May 2013 12:18:35 +0000 (12:18 +0000)]
Fix #35443: Animation player doesn't play some movie formats

Need to initialize FFmpeg for animation player.

This is a bit confusing, but the only way to do this
properly and clear is to call IMB_ffmpeg_init from
playback_mode command line callback.

This is because this callback is blocking and
"usual" FFmpeg initializetion (which happens after
command line parsing) was never called.

Could be switched to separate FFmpeg initializtion
and debug level set but let's keep simple for now.

8 years agoFluid simulation manual number of threads option now doesn't set the number
Brecht Van Lommel [Tue, 21 May 2013 11:37:42 +0000 (11:37 +0000)]
Fluid simulation manual number of threads option now doesn't set the number
of threads to the number of cores when the fluid is created. Rather it is now
set to 0 which means "use the number of threads specified for the scene".

8 years agoFix compiler warnings with westin OSL code.
Brecht Van Lommel [Tue, 21 May 2013 10:13:47 +0000 (10:13 +0000)]
Fix compiler warnings with westin OSL code.

8 years agoFix to show numpad . instead of NDOF fit as first shortcut key in menus.
Brecht Van Lommel [Tue, 21 May 2013 10:13:45 +0000 (10:13 +0000)]
Fix to show numpad . instead of NDOF fit as first shortcut key in menus.