blender.git
6 years agoRNA: add rna_space_api.c for space functions
Campbell Barton [Tue, 28 Jan 2014 20:30:42 +0000 (07:30 +1100)]
RNA: add rna_space_api.c for space functions

6 years agoFile Reading: add revert operator
Campbell Barton [Tue, 28 Jan 2014 18:34:57 +0000 (05:34 +1100)]
File Reading: add revert operator

Patch D247 by Evans Jahja with edits

6 years agoFile Reading: add wrapper function for WM_file_read
Campbell Barton [Tue, 28 Jan 2014 18:33:05 +0000 (05:33 +1100)]
File Reading: add wrapper function for WM_file_read

also return cancelled when an operator fails to load a file

6 years agoBevel: fix glitch in "pipe" case with square profile.
Howard Trickey [Tue, 28 Jan 2014 18:18:43 +0000 (13:18 -0500)]
Bevel: fix glitch in "pipe" case with square profile.

The "pipe" case -- where two beveled edges are in line
and there is at least one more beveled edge -- needed better
handling when profile parameter = 1.0 (square outward).

6 years agoCuda use streams and async to avoid busywaiting
Martijn Berger [Tue, 28 Jan 2014 17:40:08 +0000 (18:40 +0100)]
Cuda use streams and async to avoid busywaiting

This is my first stab at this and is based on this IRC converstation:

<mib2berlin> brecht: this is meaning as reminder only, I know you have other things to do > http://openvidia.sourceforge.net/index.php/Optimization_Notes#avoiding_busy_waits
<brecht> mib2berlin: thanks, bookmarked

only tested on Ubuntu 14.04 / cuda 5.0 but ill do some more testing tomorrow.

Also unsure about the placement and the lifetime of the stream and the event. But creating / deleting these seems to incur a non trivial cost.

Reviewers: brecht

Reviewed By: brecht

CC: mib2berlin, dingto
Differential Revision: https://developer.blender.org/D262

6 years agoFix T38383: glitch drawing inactive slider
Campbell Barton [Tue, 28 Jan 2014 17:10:39 +0000 (04:10 +1100)]
Fix T38383: glitch drawing inactive slider

6 years agoViewport Drawing: apply matcaps to all objects
Campbell Barton [Tue, 28 Jan 2014 16:39:19 +0000 (03:39 +1100)]
Viewport Drawing: apply matcaps to all objects

6 years agoCode cleanup: remove check for painting non-mesh objects (its impossible)
Campbell Barton [Tue, 28 Jan 2014 16:38:07 +0000 (03:38 +1100)]
Code cleanup: remove check for painting non-mesh objects (its impossible)

6 years agoFix unused variable in the right way
Sergey Sharybin [Tue, 28 Jan 2014 16:14:50 +0000 (22:14 +0600)]
Fix unused variable in the right way

It IS to be used :)

6 years agoCode cleanup: unused var
Campbell Barton [Tue, 28 Jan 2014 15:55:27 +0000 (02:55 +1100)]
Code cleanup: unused var

6 years agoFix T38367: operators activated from popups didnt reuse settings
Campbell Barton [Tue, 28 Jan 2014 15:52:06 +0000 (02:52 +1100)]
Fix T38367: operators activated from popups didnt reuse settings

6 years agoCode cleanup: pep8
Campbell Barton [Tue, 28 Jan 2014 15:16:16 +0000 (02:16 +1100)]
Code cleanup: pep8

6 years agoFix T38381, Fix T38184: key events getting lost when modal operator is running.
Brecht Van Lommel [Tue, 28 Jan 2014 14:52:20 +0000 (15:52 +0100)]
Fix T38381, Fix T38184: key events getting lost when modal operator is running.

There is a hack for modal keymaps and double click events, which was (ab)using
the wmEvent.prevval variable to temporarily assign it KM_DBL_CLICK indicating
that the double click event was disabled. However the value of prevval can
actually be KM_DBL_CLICK in other circumstances too, which caused a key press
event to get converted to a double click event.

6 years agoFix for a typo reported by flokkievids through code review comments D163#1.
Tamito Kajiyama [Thu, 2 Jan 2014 01:19:50 +0000 (10:19 +0900)]
Fix for a typo reported by flokkievids through code review comments D163#1.

6 years agoMoved the Operators class from the 'freestyle' module to the 'freestyle.types' submodule.
Tamito Kajiyama [Mon, 30 Dec 2013 14:43:47 +0000 (23:43 +0900)]
Moved the Operators class from the 'freestyle' module to the 'freestyle.types' submodule.

6 years agoPatch set by Folkert Vries (flokkievids) with respect to T37565-patch-v1.zip (F32402).
Tamito Kajiyama [Mon, 30 Dec 2013 14:26:31 +0000 (23:26 +0900)]
Patch set by Folkert Vries (flokkievids) with respect to T37565-patch-v1.zip (F32402).
Applied with minor modifications.

6 years agoFix for a missing submodule in the top-level 'freestyle' module package.
Tamito Kajiyama [Thu, 5 Dec 2013 22:26:37 +0000 (22:26 +0000)]
Fix for a missing submodule in the top-level 'freestyle' module package.
Reported by flokkievids, thanks!

6 years agoUpdated Freestyle API modules according to the new hierarchical package structure.
Tamito Kajiyama [Sun, 24 Nov 2013 22:18:38 +0000 (22:18 +0000)]
Updated Freestyle API modules according to the new hierarchical package structure.

Additional bug fixes were also done along with the code updates:
* Fix for the use of old Interface1D.pointsBegin() and .pointsEnd() method names
in the definition of pyDensityAnisotropyF1D and pyViewMapGradientNormF1D.
* Fix for wrong data types (int instead of bool) for:
- pyChainSilhouetteGenericIterator constructor and its .orientation property in
modules/freestyle/chainingiterators.py.
- SpatialNoiseShader constructor in styles/external_contour_sketchy.py.
- ChainSilhouetteIterator constructor in styles/multiple_parameterization.py.

6 years agoReorganized the Freestyle Python API in a hierarchical package structure.
Tamito Kajiyama [Sun, 24 Nov 2013 00:28:01 +0000 (00:28 +0000)]
Reorganized the Freestyle Python API in a hierarchical package structure.

Both C- and Python-coded API components were rearranged into logical groups.
New Python modules are packaged as follows:

freestyle - Top-level package
freestyle.types - Classes for core data structues (e.g., view map)
freestyle.chainingiterators - Pre-defined chaining iterators
freestyle.functions - Pre-defined 0D and 1D functions
freestyle.predicates - Pre-defined 0D and 1D predicates
freestyle.shaders - Pre-defined stroke shaders
freestyle.utils - Utility functions

The Python modules are installed in scripts/freestyle/modules.  Pre-defined
styles are installed in scripts/freestyle/styles.

To-do: update styles according to the new Freestyle API package structure.

6 years agoBundle latest Libmv from upstream
Sergey Sharybin [Tue, 28 Jan 2014 12:35:46 +0000 (18:35 +0600)]
Bundle latest Libmv from upstream

Currently no functional changes, but we might want
to have scoped_array in the future.

6 years agoBevel code cleanup: get rid of old 'ADJ' code.
Howard Trickey [Tue, 28 Jan 2014 12:01:55 +0000 (07:01 -0500)]
Bevel code cleanup: get rid of old 'ADJ' code.

The new subdiv 'adj' pattern is working well, so removing the
old code and taking opportunity to remove 'subdiv' from a number
of names.

6 years agoFollowup to the previous commit
Sergey Sharybin [Tue, 28 Jan 2014 12:01:03 +0000 (18:01 +0600)]
Followup to the previous commit

Need to take weight into account when drawing per-frame track
reprojection curve and when computing per-track average error.

6 years agoCode cleanup: remove references to svn and code style
Campbell Barton [Tue, 28 Jan 2014 12:00:28 +0000 (23:00 +1100)]
Code cleanup: remove references to svn and code style

6 years agoImprovements to weighted tracks behavior
Sergey Sharybin [Tue, 28 Jan 2014 11:25:47 +0000 (17:25 +0600)]
Improvements to weighted tracks behavior

First thing changed by this commit is making it so
Euclidean intersection takes track weight into account
when solving minimization problem. This behaves the
same exact way as it is for BA step.

Second thing is related on how average reprojection error
is being calculated. It didn't take track weight into
account which could confuse users. Now average reprojection
error will give the same result as intersection/BA uses
during minimization which gives much more predictable
behavior.

Differential Revision: https://developer.blender.org/D265

6 years agoFixes for keyframe selection
Sergey Sharybin [Tue, 28 Jan 2014 10:50:04 +0000 (16:50 +0600)]
Fixes for keyframe selection

Using tracks with constant zero weight used to crash
keyframe selection since it was trying to use missing
parameter blocks for Jacobian evaluation,

Also fixed possible issues with wrong camera block being
marked as variable. This could technically happen when
having zero weighted tracks. Made it so all camera blocks
are marked as variable for now.

6 years agoTheme: update ubuntu and blender2.4x tab colors
Campbell Barton [Tue, 28 Jan 2014 10:48:01 +0000 (21:48 +1100)]
Theme: update ubuntu and blender2.4x tab colors

6 years agoRework detector API and implement Harris detector
Sergey Sharybin [Tue, 8 Oct 2013 13:53:59 +0000 (19:53 +0600)]
Rework detector API and implement Harris detector

Switch the detector API to a single function which accepts
a float image and detector options. This makes usage of
feature detection more unified across different algorithms.

Options structure is pretty much straightforward and contains
detector to be used and all the detector-specific settings.

Also implemented Harris feature detection algorithm which
is not as fast as FAST one but is expected to detect more
robust feature points. It is also likely that less features
are detected, but better quality than quantity.

Blender will now use Harris detector by default, later we'll
remove FAST detector.

6 years agoCompilation fix for SCons
Sergey Sharybin [Tue, 28 Jan 2014 09:14:00 +0000 (15:14 +0600)]
Compilation fix for SCons

Was broken by recent FFmpeg changes.

6 years agoCode cleanup: more preprocessor indentation
Sergey Sharybin [Tue, 28 Jan 2014 08:34:52 +0000 (14:34 +0600)]
Code cleanup: more preprocessor indentation

6 years agoCode cleanup: indentation of interior preprocessor
Sergey Sharybin [Tue, 28 Jan 2014 08:33:42 +0000 (14:33 +0600)]
Code cleanup: indentation of interior preprocessor

6 years agoaudaspace: use new libavcodec audio encoding API where available
Anton Khirnov [Sun, 26 Jan 2014 12:22:26 +0000 (13:22 +0100)]
audaspace: use new libavcodec audio encoding API where available

6 years agolibavformat API usage: use avformat_close_input() instead of av_close_input_file()
Anton Khirnov [Thu, 16 Jan 2014 14:40:37 +0000 (15:40 +0100)]
libavformat API usage: use avformat_close_input() instead of av_close_input_file()

6 years agolibavformat API usage: use avg_frame_rate instead of r_frame_rate
Anton Khirnov [Thu, 16 Jan 2014 14:40:37 +0000 (15:40 +0100)]
libavformat API usage: use avg_frame_rate instead of r_frame_rate

r_frame_rate is a guessed number defined as "the least common multiple of
all framerates in the stream". It has been deprecated and removed in new
Libav releases.

Use avg_frame_rate instead, which is the average framerate of the
stream.

6 years agolibavcodec API usage: use new video encoding API
Anton Khirnov [Thu, 16 Jan 2014 14:40:37 +0000 (15:40 +0100)]
libavcodec API usage: use new video encoding API

avcodec_encode_video() has been replaced with avcodec_encode_video2()
in new libavcodec versions.

6 years agoChange libavcodec CODEC_ID_* to AV_CODEC_ID_*
Anton Khirnov [Thu, 16 Jan 2014 14:40:37 +0000 (15:40 +0100)]
Change libavcodec CODEC_ID_* to AV_CODEC_ID_*

CODEC_ID_* have been replaced with AV_CODEC_ID_* in new libavcodec
versions.

Update the code to use those new identifiers.

Added a compatibility code to ffmpeg_compat.h

6 years agoFix T37673: Ray casting could fail with 0 collision margins
Sergej Reich [Tue, 28 Jan 2014 07:26:51 +0000 (08:26 +0100)]
Fix T37673: Ray casting could fail with 0 collision margins

Use bullet's old method of doing ray casts to stay compatible with old
files. It's faster but a bit less accurate.

6 years agoBGE: remove freestyle from stubs, all functions were out of use
Campbell Barton [Tue, 28 Jan 2014 06:59:00 +0000 (17:59 +1100)]
BGE: remove freestyle from stubs, all functions were out of use

6 years agoIdentified the freestyle stubs breaking pragma GCC diagnostic error "-Wmissing-protot...
Jens Verwiebe [Mon, 27 Jan 2014 22:00:55 +0000 (23:00 +0100)]
Identified the freestyle stubs breaking pragma GCC diagnostic error "-Wmissing-prototypes”, diasabling this case for now

6 years agoCorrect typo in the patch file as well
Sergey Sharybin [Mon, 27 Jan 2014 20:16:44 +0000 (02:16 +0600)]
Correct typo in the patch file as well

6 years agoFix compilation on Windows, syntax error.
Thomas Dinges [Mon, 27 Jan 2014 19:53:42 +0000 (20:53 +0100)]
Fix compilation on Windows, syntax error.

6 years agoOSX/scons: fix own error in last commit and do a cleanup
Jens Verwiebe [Mon, 27 Jan 2014 19:39:09 +0000 (20:39 +0100)]
OSX/scons: fix own error in last commit and do a cleanup

6 years agoAttempt to fix compilation error with MSVC-2008
Sergey Sharybin [Mon, 27 Jan 2014 19:36:49 +0000 (01:36 +0600)]
Attempt to fix compilation error with MSVC-2008

6 years agoRevert the removal of Blender Internal Edge rendering, after artist feedback.
Thomas Dinges [Mon, 27 Jan 2014 18:58:54 +0000 (19:58 +0100)]
Revert the removal of Blender Internal Edge rendering, after artist feedback.

This reverts commit fb91a602c756f3ee5a122efa1862b8be7604186b.

6 years agoOSX/scons: consequently make use of the recently introduced C_COMPILER_ID and CCVERS...
Jens Verwiebe [Mon, 27 Jan 2014 18:56:15 +0000 (19:56 +0100)]
OSX/scons: consequently make use of the recently introduced C_COMPILER_ID and  CCVERSION env vars

6 years agoOSX/scons: fix gnu gcc compile by using clang assembler ( openMP builds)
Jens Verwiebe [Mon, 27 Jan 2014 18:46:05 +0000 (19:46 +0100)]
OSX/scons: fix gnu gcc compile by using clang assembler ( openMP builds)

6 years agoFix player compile in scons and disable -Wmissing-prototypes for Apple atm.
Jens Verwiebe [Mon, 27 Jan 2014 18:36:05 +0000 (19:36 +0100)]
Fix player compile in scons and disable -Wmissing-prototypes for Apple atm.

6 years agoRevert recent OpenEXR cmake/linux fix and earlier OS X fix to use GCC for AVX.
Brecht Van Lommel [Mon, 27 Jan 2014 18:11:36 +0000 (19:11 +0100)]
Revert recent OpenEXR cmake/linux fix and earlier OS X fix to use GCC for AVX.

Both need a better solution and break working builds.

6 years agoCode cleanup: use booleans where appropriate
Campbell Barton [Mon, 27 Jan 2014 16:52:21 +0000 (03:52 +1100)]
Code cleanup: use booleans where appropriate

6 years agoBuildbot OS X: compile with clang instead of GCC.
Brecht Van Lommel [Mon, 27 Jan 2014 16:14:16 +0000 (17:14 +0100)]
Buildbot OS X: compile with clang instead of GCC.

This should solve the missing -mavx option for Cycles, and also give better
performance since GCC 4.2 is now 5 years old already.

6 years agoUse includes for blenderplayer stubs
Campbell Barton [Mon, 27 Jan 2014 14:55:10 +0000 (01:55 +1100)]
Use includes for blenderplayer stubs

exposes many incorrect and redundant stubs

6 years agoFix incorrect extern
Campbell Barton [Mon, 27 Jan 2014 14:50:09 +0000 (01:50 +1100)]
Fix incorrect extern

6 years agoAttempt to fix T38373: cmake linux build failure with OpenEXR.
Brecht Van Lommel [Mon, 27 Jan 2014 14:25:22 +0000 (15:25 +0100)]
Attempt to fix T38373: cmake linux build failure with OpenEXR.

6 years agoFix T38355: Crash with Shader Node Group with missing datablock,
Lukas Tönne [Mon, 27 Jan 2014 11:26:49 +0000 (12:26 +0100)]
Fix T38355: Crash with Shader Node Group with missing datablock,
only in "Material" viewport shading.

6 years agoUpdate Carve to latest update
Sergey Sharybin [Mon, 27 Jan 2014 11:00:05 +0000 (17:00 +0600)]
Update Carve to latest update

Fixes some issues with NaN vertices in special cases.
Also adds edge interpolation routines which are currently
unused but which are requires to implement edge CD interpolation.

6 years agopatch by liblib (lid b)
Martijn Berger [Mon, 27 Jan 2014 10:42:38 +0000 (11:42 +0100)]
patch by liblib (lid b)

Default installation path of cuda nvcc.exe contain spaces

Reviewers: juicyfruit

Differential Revision: https://developer.blender.org/D239

6 years agoImplement clipboard for mask splines
Sergey Sharybin [Mon, 27 Jan 2014 09:41:16 +0000 (15:41 +0600)]
Implement clipboard for mask splines

So now it's possible to copy-paste splines between layers.

Implementation is pretty much straightforward and duplicates
some logic which we've got in sequencer/tracking clipboards.

Will work on a common routine for clipboards later, for now
it's not so much crucial to have.

6 years agoCode Cleanup: de-duplicate nested node tree checking
Campbell Barton [Mon, 27 Jan 2014 09:17:56 +0000 (20:17 +1100)]
Code Cleanup: de-duplicate nested node tree checking

6 years agoFix clip editor interface being broken by a71f072
Sergey Sharybin [Mon, 27 Jan 2014 09:10:08 +0000 (15:10 +0600)]
Fix clip editor interface being broken by a71f072

Please do test commits before committing them.
This is second working day in a row which was started with
solving issues caused by untested patches.

6 years agopatch by Mihai Melinescu: boost hardcoded MSVC12
Martijn Berger [Mon, 27 Jan 2014 08:24:44 +0000 (09:24 +0100)]
patch by Mihai Melinescu: boost hardcoded MSVC12

Updated CMakeLists.txt to account for boost hardcoded locations for VS 2013.

Reviewers: juicyfruit

Differential Revision: https://developer.blender.org/D261

6 years agoUI: Fix for icon-only menus too small click-able area
Campbell Barton [Mon, 27 Jan 2014 08:10:53 +0000 (19:10 +1100)]
UI: Fix for icon-only menus too small click-able area

6 years agoUI: Replace +/- menus with collapsible ones
Campbell Barton [Mon, 27 Jan 2014 07:38:53 +0000 (18:38 +1100)]
UI: Replace +/- menus with collapsible ones

Patch D160, by Scott Petrovic with  own modifications.

6 years agoBuild System: icon files now depend on UI_icons.h for CMake
Campbell Barton [Mon, 27 Jan 2014 06:25:29 +0000 (17:25 +1100)]
Build System: icon files now depend on UI_icons.h for CMake

Now changing UI_icons.h causes icons to be re-generated, without this
adding a new icon wouldn't automatically get into the generated PNG.

6 years agoCurves: save active point to file
Kevin Mackay [Mon, 27 Jan 2014 04:18:40 +0000 (15:18 +1100)]
Curves: save active point to file

Changed curve active point from pointer to index. Allows curve active point to be saved to file and retained between modes for free. Also some small optimisations by removing pointer look up code.

- Made active point access functions into BKE API calls.
- Fixes operators where curve de-selection resulted in unsel-active point.
- Split curve delete into 2 functions

6 years ago.gitignore: Adding CMakeLists.txt.user for QtCreator users.
Mitchell Stokes [Mon, 27 Jan 2014 01:52:14 +0000 (17:52 -0800)]
.gitignore: Adding CMakeLists.txt.user for QtCreator users.

6 years agoFix typo in nla blend modes.
Sv. Lockal [Sun, 26 Jan 2014 16:12:29 +0000 (20:12 +0400)]
Fix typo in nla blend modes.

6 years agoFix T38354: Excess memory allocation when projecting onto object with multires
Bastien Montagne [Sun, 26 Jan 2014 15:53:33 +0000 (16:53 +0100)]
Fix T38354: Excess memory allocation when projecting onto object with multires

Found three cases where created bvhtree was not freed...

6 years agoCycles Standalone: Basic support for external OSL shaders.
Thomas Dinges [Sun, 26 Jan 2014 15:22:19 +0000 (16:22 +0100)]
Cycles Standalone: Basic support for external OSL shaders.

* Very simple implementation, only allows for 1 output socket. As we haven't decided yet whether we keep the XML API, rather not spend more time on this now.

* To use an external osl shader, put the .osl file next to the xml file.
* Parameters: "output" is the output socket name, "output_type" the variable type (float, color and closure color are supported).
Example:
<osl_shader name="tex" src="ramp_closure.osl" output="Phong" output_type="closure color" />
<connect from="tex Phong" to="output surface" />

6 years agoFix T38366: export collada crash - if you set a keyframe
Bastien Montagne [Sun, 26 Jan 2014 15:06:47 +0000 (16:06 +0100)]
Fix T38366: export collada crash - if you set a keyframe

Don't assume all objects have a valid animdata...

6 years agoCleanup of BLI_smallhash
Bastien Montagne [Sun, 26 Jan 2014 14:17:06 +0000 (15:17 +0100)]
Cleanup of BLI_smallhash

Factorized a bit the code here, think it's more readable now... No performance enhancement though.

Reviewed by: campbellbarton

Differential Revision: https://developer.blender.org/D259

6 years agoCode Cleanup: style and correct API class ref
Campbell Barton [Sun, 26 Jan 2014 11:17:01 +0000 (22:17 +1100)]
Code Cleanup: style and correct API class ref

6 years agoCycles: Set samples to USHRT_MAX per default in the constructor, this is already...
Thomas Dinges [Sat, 25 Jan 2014 18:25:24 +0000 (19:25 +0100)]
Cycles: Set samples to USHRT_MAX per default in the constructor, this is already used elsewhere.

6 years agoCycles Standalone: Various changes
Thomas Dinges [Sat, 25 Jan 2014 17:57:02 +0000 (18:57 +0100)]
Cycles Standalone: Various changes

* Change Info in header, put more important info to the left
* API: Move Camera width/height to camera, add some film properties
* Add ESC key to help menu

6 years agoFix T38353: some EXR files from other applications not loading correctly.
Brecht Van Lommel [Sat, 25 Jan 2014 16:44:15 +0000 (17:44 +0100)]
Fix T38353: some EXR files from other applications not loading correctly.

* EXR layers with names like 'Z' without any pass name were not loaded at all
  and would break the Combined pass as well.
* EXR pass names longer than 16 characters where writing past the end of the
  array and getting invalid names.

6 years agofix building cycles standalone on windows / cmake
Martijn Berger [Sat, 25 Jan 2014 13:19:32 +0000 (14:19 +0100)]
fix building cycles standalone on windows / cmake

6 years agoCleanup: Simplify Cycles standalone OSL detection code.
Thomas Dinges [Sat, 25 Jan 2014 12:25:26 +0000 (13:25 +0100)]
Cleanup: Simplify Cycles standalone OSL detection code.

6 years agoBlender docs: Correct upper limit, shown for missing -t option value.
Lawrence D'Oliveiro [Sat, 25 Jan 2014 11:27:39 +0000 (12:27 +0100)]
Blender docs: Correct upper limit, shown for missing -t option value.

Differential Revision: https://developer.blender.org/D248

6 years agoFix T38359: Not a bug, but better to grey out Material selector of particles when...
Bastien Montagne [Sat, 25 Jan 2014 08:01:32 +0000 (09:01 +0100)]
Fix T38359: Not a bug, but better to grey out Material selector of particles when using Object or Group render type (since we always use duplicated objects' materials in this case!).

6 years agoFix T38356: Crash when UIList.filter_items returns too few items.
Bastien Montagne [Fri, 24 Jan 2014 21:12:38 +0000 (22:12 +0100)]
Fix T38356: Crash when UIList.filter_items returns too few items.

6 years agoChange tooltip text for Vertex Group in Bevel Modifier.
Howard Trickey [Fri, 24 Jan 2014 17:52:18 +0000 (12:52 -0500)]
Change tooltip text for Vertex Group in Bevel Modifier.

Reflects previous commit that now allows this group to
control edge bevels too.

6 years agoBevel modifier can use vertex groups for edge bevel now.
Howard Trickey [Fri, 24 Jan 2014 17:42:20 +0000 (12:42 -0500)]
Bevel modifier can use vertex groups for edge bevel now.

Until now, the "vertex group" limit method in the modifier
only worked for "vertex only" bevels. With this change,
edges with both ends in a vertex group will be beveled
in the non-"vertex only" case.
Also changed the test for being in a vertex group from
"any nonzero weight" to "weight >= 0.5". This is because
cascaded bevels on disjoint vertex groups did not give
disjoint bevels, because weight interpolation would give
non-zero weights to newly created vertices in earlier bevels.
Chose 0.5 because that won't result from interpolation, but
still allows some dilution (e.g., cascaded bevels on the
same vertex group).

6 years agoAdd convinient access to full bitangent for loops (some export formats like FBX expec...
Bastien Montagne [Fri, 24 Jan 2014 16:49:29 +0000 (17:49 +0100)]
Add convinient access to full bitangent for loops (some export formats like FBX expect full bitangents, better to compute them in C than in python...)

6 years agoFix T38347: adding object visibility keyframes in the outliner groups and
Brecht Van Lommel [Fri, 24 Jan 2014 15:07:29 +0000 (16:07 +0100)]
Fix T38347: adding object visibility keyframes in the outliner groups and
libraries view not working.

This was disabled in the operator, there may have been a reason for this at
some point, but I can't see any reason to disallow it in the current code or
find a good reason why it was done in the commit logs.

6 years agoMake multisegment bevel profiles even for all parameters.
Howard Trickey [Fri, 24 Jan 2014 15:07:24 +0000 (10:07 -0500)]
Make multisegment bevel profiles even for all parameters.

The method for calculating points on the profile for non-circles
and non-lines meant that the segments making up an edge had
uneven widths.
Use a numeric search technique to find superellipse evaluation
points that lead to equal-sized chords across the profile.
Also calculate the actual profile points sooner, so that they
don't have to be recalculated again and again.
This also sets up for a possible later feature of arbitrary
profile shapes, set by user.

6 years agoCycles Standalone: Add a help message, which appears when pressing the "h" key.
Thomas Dinges [Fri, 24 Jan 2014 11:57:19 +0000 (12:57 +0100)]
Cycles Standalone: Add a help message, which appears when pressing the "h" key.

This is very basic for now, but can be extended with more info (available devices for example) later.

Thanks to Bastien and Sergey for some help with the glRect coordinates stuff.

6 years agoFix currently harmless issue with converting ImBuf from sequencer space
Sergey Sharybin [Fri, 24 Jan 2014 08:29:50 +0000 (14:29 +0600)]
Fix currently harmless issue with converting ImBuf from sequencer space

6 years agoFix compilation error caused by 67f1fd2
Sergey Sharybin [Fri, 24 Jan 2014 08:06:23 +0000 (14:06 +0600)]
Fix compilation error caused by 67f1fd2

Did one tried building blender before commit even?

6 years agogame engine: implement hitMaterial for collision and ray sensors
Dalai Felinto [Fri, 24 Jan 2014 04:10:04 +0000 (02:10 -0200)]
game engine: implement hitMaterial for collision and ray sensors

Reviewed By: moguri, kupoman

Differential Revision: https://developer.blender.org/D167

6 years agoAdd support for new "bl_category" member (new panels "tabs" system).
Bastien Montagne [Thu, 23 Jan 2014 21:29:04 +0000 (22:29 +0100)]
Add support for new "bl_category" member (new panels "tabs" system).

6 years agoFix T38150: implementation mismatch in bmesh python
Bastien Montagne [Thu, 23 Jan 2014 19:08:23 +0000 (20:08 +0100)]
Fix T38150: implementation mismatch in bmesh python

Hopefully this time all mismatches are fixed (quickly checked the whole BMesh API files,
found a few others in addition to those reported in T38150).

6 years agoMake Tab Divider interopolate between the region background and tab outline.
Jonathan Williamson [Thu, 23 Jan 2014 18:28:41 +0000 (12:28 -0600)]
Make Tab Divider interopolate between the region background and tab outline.

Previously the divider was using the region background and the region text, leading to bad outlines with custom themes. This makes the outline behave more expectedly and allows better control.

6 years agoFix T38337: Crash when calling to_mesh() on a Curve object after clearing its parent
Sergey Sharybin [Thu, 23 Jan 2014 18:16:10 +0000 (00:16 +0600)]
Fix T38337: Crash when calling to_mesh() on a Curve object after clearing its parent

This is rather a workaround which only works because curve evaluation is only called
for a temporary object. Not a big deal if we'll skip path creation for such objects.

Still would need to think of general solution.

6 years agoFix T36165: blender internal HDR textures with negative values got clamped.
Brecht Van Lommel [Thu, 23 Jan 2014 17:38:48 +0000 (18:38 +0100)]
Fix T36165: blender internal HDR textures with negative values got clamped.

For example for vector displacement, you may have an EXR texture that has
negative colors values. Blender clamps these by default, now the Colors panel
for textures has a Clamp option to disable this clamping.

This option affects all texture types and is enabled by default, you need
to disable it if you want negative values to have an influence.

Patch by Fredrik Hansson with modifications by me.

6 years agoFix T37302: cycles slow hair export with many hairs, especially on Windows.
Brecht Van Lommel [Thu, 23 Jan 2014 17:14:19 +0000 (18:14 +0100)]
Fix T37302: cycles slow hair export with many hairs, especially on Windows.

6 years agoFix T37685: automatic weights affected by face masking outside weight paint mode.
Brecht Van Lommel [Thu, 23 Jan 2014 16:47:20 +0000 (17:47 +0100)]
Fix T37685: automatic weights affected by face masking outside weight paint mode.

Only when in weight paint mode should it check the selected vertices and faces,
in object mode it should just affect the entire mesh.

6 years agoCleanup: int/short to bool in BKE_cdderivedmesh.h functions (and TRUE/FALSE to true...
Bastien Montagne [Thu, 23 Jan 2014 13:50:50 +0000 (14:50 +0100)]
Cleanup: int/short to bool in BKE_cdderivedmesh.h functions (and TRUE/FALSE to true/false in code using them).

6 years agoFix crash when changing space type to 3D space when having multiple windows
Sergey Sharybin [Thu, 23 Jan 2014 13:27:59 +0000 (19:27 +0600)]
Fix crash when changing space type to 3D space when having multiple windows

it is possible that different windows shares scene but displays different
layers. And it's also possible that different areas in the same window will
show different layers.

First case was violated in `dag_current_scene_layers()` which only checked
scene layers only once and if multiple windows shares the same scene only
one window was handled. Now made it so layers from all windows will be
squashed together into a single `DagSceneLayer`. This mainly solves issue
with `DAG_on_visible_update()` which didn't work reliable with multiple
open windows.

Second case required call of `DAG_on_visible_update()` when changing space
are type.

This commit slows things a bit actually because `dag_current_scene_layers()`
is actually called on every main WM loop iteration. It is possible to speed
some logic up perhaps. Not sure it's so much critical to do now because there
are unlikely to be more than few windows open anyway.

Will rather think of skipping all that flushing things if no objects are
tagged for update actually.

6 years agoFix for crash getting the name of RNA properties with empty name
Campbell Barton [Thu, 23 Jan 2014 13:25:11 +0000 (00:25 +1100)]
Fix for crash getting the name of RNA properties with empty name

6 years agoCode Cleanup: whitespace
Campbell Barton [Thu, 23 Jan 2014 11:34:56 +0000 (22:34 +1100)]
Code Cleanup: whitespace

6 years agoCode Cleanup: find operator once and reuse
Campbell Barton [Thu, 23 Jan 2014 11:05:51 +0000 (22:05 +1100)]
Code Cleanup: find operator once and reuse

6 years agoFix typo in mmap commit from a while ago
Sergey Sharybin [Thu, 23 Jan 2014 12:41:38 +0000 (18:41 +0600)]
Fix typo in mmap commit from a while ago