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

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

7 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

7 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

7 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

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

7 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

7 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

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

7 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

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

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

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

7 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

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

7 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

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

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

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

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

7 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

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

7 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

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

7 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

7 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

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

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

7 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

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

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

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

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

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

7 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

7 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

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

7 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

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

7 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

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

7 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

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

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

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

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

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

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

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

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

7 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

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

7 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

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

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

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

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

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

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

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

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

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

7 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

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

7 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

7 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

7 years agoFix for IMB_(un)premultiply_rect_float() not doing right business
Sergey Sharybin [Thu, 23 Jan 2014 10:51:32 +0000 (16:51 +0600)]
Fix for IMB_(un)premultiply_rect_float() not doing right business

- Made them receive number of channels rather than number of planes.
  This matches to how ImBuf structure stored planes and channels.
- IMB_premultiply_rect_float() was called with channels passed instead
  of planes already :S.

7 years agoFix T38284: Crash with several shrinkwrap constraint using same target
Sergey Sharybin [Thu, 23 Jan 2014 10:24:41 +0000 (16:24 +0600)]
Fix T38284: Crash with several shrinkwrap constraint using same target

Issue is caused by the race condition between getting custom data layers
from target's derived mesh (for vertices and faces) and releasing this
derived mesh from other threads.

When one releases the derived mesh it'll free temporary data from it,
and it'll also update data layers mapping.

General rule for threading is that no one is ever allowed to modify
data he doesn't own. This means that no temp layers are to be allocated
in derived mesh and making it so `CustomData_free_temporary()` doesn't
update mapping if nothing was freed will solve the race condition.

It is still possible to do other improvements, namely detect which
additional data/layers are to be present in derived mesh and create
it as a part of `object_handle_update()`, but this is to be solved
separately.

7 years agoRemoved the omat matrix from DupliObject.
Lukas Tönne [Thu, 23 Jan 2014 09:20:42 +0000 (10:20 +0100)]
Removed the omat matrix from DupliObject.

This was storing the original object matrix, which builds on the
assumption that obmat is modified during dupli construction, which is a
bad hack.

Now the obmats are still modified, but this only happens outside of the
dupli system itself and the original ("omat") is stored as local
variables in the same place where the obmat manipulation takes place.
This is easier to follow and avoids hidden hacks as much as possible.

Reviewed By: campbellbarton

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

7 years agoFix T38042: Keymap crash after reloading operators
Campbell Barton [Thu, 23 Jan 2014 08:00:30 +0000 (19:00 +1100)]
Fix T38042: Keymap crash after reloading operators

After some investigation with mont29, seems like the best way to ensure
keymaps point to valid operators is using WM_keyconfig_update().

7 years agoWM: add WM_operatortype_remove_ptr to remove a known operator
Campbell Barton [Thu, 23 Jan 2014 07:01:52 +0000 (18:01 +1100)]
WM: add WM_operatortype_remove_ptr to remove a known operator

7 years agoFix T38328: GLSL display shows texture mapping completely messed up in some cases
Bastien Montagne [Thu, 23 Jan 2014 07:37:07 +0000 (08:37 +0100)]
Fix T38328: GLSL display shows texture mapping completely messed up in some cases

Own stupid typo in rB28ca299d4dfc...

7 years agoFix T38110: GameEngine keyboard sensor ignores unicode characters
Campbell Barton [Thu, 23 Jan 2014 03:58:04 +0000 (14:58 +1100)]
Fix T38110: GameEngine keyboard sensor ignores unicode characters

7 years agoBGE Bitmap Text: add in check if the character is outside the range
Campbell Barton [Thu, 23 Jan 2014 02:37:09 +0000 (13:37 +1100)]
BGE Bitmap Text: add in check if the character is outside the range

7 years agoFix T38325: Game Engine Bitmap fonts failed for characters >128
Campbell Barton [Thu, 23 Jan 2014 02:29:49 +0000 (13:29 +1100)]
Fix T38325: Game Engine Bitmap fonts failed for characters >128

7 years agoThemes: update for tab colors
Campbell Barton [Thu, 23 Jan 2014 01:08:39 +0000 (12:08 +1100)]
Themes: update for tab colors

7 years agoTab theme colors
Campbell Barton [Thu, 23 Jan 2014 00:44:35 +0000 (11:44 +1100)]
Tab theme colors

patch D234 from Jonathan Williamson with edits

- de-duplicate rna_def_userdef_theme_space_gradient and rna_def_userdef_theme_space_generic
- ui_theme_init_new_do now always sets theme settings (no need to test),
  used by bpy.ops.ui.reset_default_theme()

7 years agoFix T38311: cycles BVH cache crash on Windows.
Brecht Van Lommel [Thu, 23 Jan 2014 00:13:09 +0000 (01:13 +0100)]
Fix T38311: cycles BVH cache crash on Windows.

7 years agoMemory allocation: do not use mmap for memory allocation on 64 bit.
Brecht Van Lommel [Thu, 23 Jan 2014 00:08:37 +0000 (01:08 +0100)]
Memory allocation: do not use mmap for memory allocation on 64 bit.

On Windows we can only do mmap memory allocation up to 4 GB, which causes a
crash when doing very large renders on 64 bit systems with a lot of memory.

As far as I can tell the reason to use mmap is to get around address space
limitation on some 32 bit operating systems, and I can't see a reason to use
it on 64 bit. For the original explanation see here:
http://orange.blender.org/blog/stupid-memory-problems

Fixes T37841.

7 years agoFix T38316: Half of a Face is Missing on Newly Created Cubes or Cylinders.
Bastien Montagne [Wed, 22 Jan 2014 18:49:14 +0000 (19:49 +0100)]
Fix T38316: Half of a Face is Missing on Newly Created Cubes or Cylinders.

Own bug from rBc691551249f3. Now at least I understand why `test_index_face()` is needed for tessellated quads!

Added a bunch of comments to explain the issue, as it's far from an obvious one...

We loose some performances, but it's still much quicker than org code.

7 years agoFix T38323: blender viewport render in particle hair edit mode renders halos.
Brecht Van Lommel [Wed, 22 Jan 2014 18:50:36 +0000 (19:50 +0100)]
Fix T38323: blender viewport render in particle hair edit mode renders halos.

Currently it's not supported to do viewport render of particles while in
particle edit mode, hide the particle instead of rendering halos.

7 years agoFix T37940: Curve Render bug in Blender Internal Render.
Sergey Sharybin [Wed, 22 Jan 2014 16:53:50 +0000 (22:53 +0600)]
Fix T37940: Curve Render bug in Blender Internal Render.

Issue was caused by curve object really scale up. It was
caused by 677f519 to make scaled down curves work fine.

After some tweaks to epsilon value scaled up curves seems
to work as well.

7 years agoFix T38319: no camera error message for render not showing correctly.
Brecht Van Lommel [Wed, 22 Jan 2014 16:40:10 +0000 (17:40 +0100)]
Fix T38319: no camera error message for render not showing correctly.

7 years agoFix T37198: Vorbis encoding is broken
Sergey Sharybin [Wed, 22 Jan 2014 16:11:13 +0000 (22:11 +0600)]
Fix T37198: Vorbis encoding is broken

Issue was caused by wrong PTS calculation. This commit
makes this calculation closer to what's happening in
FFmpeg itself.

Seems everything is working now including newer FFmpeg,
but there's one thing which still doesn't work: writing
avi files with h264 codec and Vorbis audio doesn't play
correct in mplayer here. But didn't manage to get this
working even using FFmpeg CLI, so this might be just a
bug in FFmpeg/mplayer. Since this file works fine in
blender just fine wouldn't consider this is crucial thing
to look into at this moment.

7 years agoFix tool properties region drawing even if the toolbar is hidden.
Brecht Van Lommel [Wed, 22 Jan 2014 15:35:11 +0000 (16:35 +0100)]
Fix tool properties region drawing even if the toolbar is hidden.

This would show as a line on the side of the 3D view with high DPI / retina,
not easy to notice.

7 years agoFix T38318: blender internal viewport now uses viewport, not render visibility.
Brecht Van Lommel [Wed, 22 Jan 2014 14:48:17 +0000 (15:48 +0100)]
Fix T38318: blender internal viewport now uses viewport, not render visibility.

This is the same as cycles and more consistent with it also using viewport
resolution.

7 years agoFix for particle emission bug, reported on IRC by Thomas Beck
Lukas Tönne [Wed, 22 Jan 2014 15:26:09 +0000 (16:26 +0100)]
Fix for particle emission bug, reported on IRC by Thomas Beck
(@plasmasolutions): When the particle emitter is parented to a fast
moving object, the emission locations will not be interpolated over
subframes. This works if the particle emitter is animated itself.
Particle system evaluates the emitter location for each subframe, but
has to do this for the parent objects as well to get reliable results.

7 years agoRevert "Fix T37920: BGE LibLoad failed for meshes with no materials"
Campbell Barton [Wed, 22 Jan 2014 13:49:58 +0000 (00:49 +1100)]
Revert "Fix T37920: BGE LibLoad failed for meshes with no materials"

This reverts commit 6a473305af22468abfc4c4f8f3002dc0a97fffd7.

Caused T38296, need to investigate this further but for now
better not leave blender in unstable state.

7 years agoFix T38011 and cleanup of Lens Distortion node code.
Lukas Tönne [Wed, 22 Jan 2014 13:32:21 +0000 (14:32 +0100)]
Fix T38011 and cleanup of Lens Distortion node code.

The area-of-interest calculation for that node didn't work reliably.
It tries to estimate the distorted rectangular area based on min/max
distortion and dispersion values, but this fails in some cases and
leaves uninitialized buffer chunks. So now simply use the full input
rect as the area, even though it may not be as efficient - at least it
works ...

Also cleaned up the code somewhat to make it understandable, using
separate functions for common stuff instead of cryptic walls of math.

7 years agoFix T38315: keymap configuration export did not export deactivated items correct.
Brecht Van Lommel [Wed, 22 Jan 2014 13:24:37 +0000 (14:24 +0100)]
Fix T38315: keymap configuration export did not export deactivated items correct.

7 years agoFix T38312: Crash when using snap transform in edit mode
Sergey Sharybin [Wed, 22 Jan 2014 10:28:28 +0000 (16:28 +0600)]
Fix T38312: Crash when using snap transform in edit mode

Issue was caused by uninitialized boolean flag.

7 years agoMake memory checker happy about FileGlobal
Sergey Sharybin [Wed, 22 Jan 2014 10:23:55 +0000 (16:23 +0600)]
Make memory checker happy about FileGlobal

FileGlobal structure in write_global() didn't initialize
the while build_hash property and only placed there null
terminated meaningful content, leaving trailing uninitialized.

This made valgrind complain about using uninitialized memory
later in undo stack.

7 years agoBMesh: collapse_uvs - avoid clearing and flagging for every cd-layer
Campbell Barton [Wed, 22 Jan 2014 06:11:46 +0000 (17:11 +1100)]
BMesh: collapse_uvs - avoid clearing and flagging for every cd-layer

7 years agoFix T38306: dupliframes causing viewport render to continually restart.
Brecht Van Lommel [Tue, 21 Jan 2014 20:01:12 +0000 (21:01 +0100)]
Fix T38306: dupliframes causing viewport render to continually restart.

Evaluating the animation is causing the object to get tagged as changed, but in
this case it's not a permanent change so no one should be notified. Also found
a case where the persistent ID for duplis wasn't unique, fixed that as well.

7 years agoCycles Standalone: Volume integrator settings.
Thomas Dinges [Tue, 21 Jan 2014 19:56:29 +0000 (20:56 +0100)]
Cycles Standalone: Volume integrator settings.

7 years agoUsual UI messages fixes.
Bastien Montagne [Tue, 21 Jan 2014 19:18:07 +0000 (20:18 +0100)]
Usual UI messages fixes.

7 years agoCycles Standalone: XML Updates for the integrator.
Thomas Dinges [Tue, 21 Jan 2014 18:15:54 +0000 (19:15 +0100)]
Cycles Standalone: XML Updates for the integrator.

7 years agoAdd missing struct Lattice declaration.
Bastien Montagne [Tue, 21 Jan 2014 16:24:15 +0000 (17:24 +0100)]
Add missing struct Lattice declaration.

7 years agoCode Cleanup: reduce sign conversion
Campbell Barton [Tue, 21 Jan 2014 15:56:52 +0000 (02:56 +1100)]
Code Cleanup: reduce sign conversion

7 years agoCode Cleanup: use bool for return values and correct comments
Campbell Barton [Tue, 21 Jan 2014 15:48:11 +0000 (02:48 +1100)]
Code Cleanup: use bool for return values and correct comments

also remove CDDM_Check, theres no need for it.