blender.git
5 years agoMerge branch 'master' into soc-2013-rigid_body_sim soc-2013-rigid_body_sim
Sergej Reich [Sat, 23 Nov 2013 16:17:12 +0000 (17:17 +0100)]
Merge branch 'master' into soc-2013-rigid_body_sim

Conflicts:
intern/rigidbody/CMakeLists.txt
release/datafiles/splash.png
source/blender/editors/space_view3d/drawobject.c
source/blender/makesdna/DNA_view3d_types.h

5 years agoOSX: fix T37065 cmd+c not working in Info - console
Jens Verwiebe [Sat, 23 Nov 2013 15:39:07 +0000 (16:39 +0100)]
OSX: fix T37065 cmd+c not working in Info - console

5 years agoFix scons build error compiling 32 bit OS X built on 64 bit.
Brecht Van Lommel [Sat, 23 Nov 2013 05:50:19 +0000 (06:50 +0100)]
Fix scons build error compiling 32 bit OS X built on 64 bit.

5 years agoMore short->bool refactoring work for anim channel type define callbacks
Joshua Leung [Sat, 23 Nov 2013 05:58:45 +0000 (18:58 +1300)]
More short->bool refactoring work for anim channel type define callbacks

Changed the "neg" flag for acf.setting_flag() to be a bool

5 years agoAnim Editors: Refactored animchannel type definition callbacks to use bools
Joshua Leung [Sat, 23 Nov 2013 05:44:39 +0000 (18:44 +1300)]
Anim Editors: Refactored animchannel type definition callbacks to use bools

Changes:
- acf.name_prop() and acf.has_setting() now return bools instead of shorts
- Renamed a few name_prop() callbacks whose names ended in "_nameprop"
  instead of "_name_prop", which made it difficult to safely find all
  such instances

5 years agoFix cycles build error with visual studio, apparently the windows ABI does not
Brecht Van Lommel [Sat, 23 Nov 2013 04:24:26 +0000 (05:24 +0100)]
Fix cycles build error with visual studio, apparently the windows ABI does not
like 16 bit alignment on 32 bit.

5 years agoIgnore *.patch and *.diff files which are in the working tree root
Sergey Sharybin [Fri, 22 Nov 2013 17:28:35 +0000 (23:28 +0600)]
Ignore *.patch and *.diff files which are in the working tree root

5 years agoStyle Cleanup: whitespace
Campbell Barton [Fri, 22 Nov 2013 15:06:06 +0000 (02:06 +1100)]
Style Cleanup: whitespace

5 years agoFix T37485: autocomplete while appending and autocomplete folder behaviour.
Henrik Aarnio [Fri, 22 Nov 2013 13:35:34 +0000 (14:35 +0100)]
Fix T37485: autocomplete while appending and autocomplete folder behaviour.

This adds functionality to tab-autocomplete folders in the file browser file
field, and the ability to autocomplete .blend files and their sub folders while
linking. If only one match of a blend or a folder is found, it is opened, which
applies to wildcards in the file field now.

Reviewed By: elubie, brecht

Differential Revision: http://developer.blender.org/D20

5 years agoCycles: test code for sse 4.1 kernel and alignment for some vector types.
Martijn Berger [Fri, 22 Nov 2013 13:16:47 +0000 (14:16 +0100)]
Cycles: test code for sse 4.1 kernel and alignment for some vector types.

This is mostly work towards enabling the __KERNEL_SSE__ option to start using
SIMD operations for vector math operations. This 4.1 kernel performes about 8%
faster with that option but overall is still slower than without the option.

WITH_CYCLES_OPTIMIZED_KERNEL_SSE41 is the cmake flag for testing this kernel.

Alignment of int3, int4, float3, float4 to 16 bytes seems to give a slight 1-2%
speedup on tested systems with the current kernel already, so is enabled now.

5 years agoFix T37359: Dynamic Paint deletes inactive texture from smoke domain when using a...
Miika Hamalainen [Fri, 22 Nov 2013 13:25:19 +0000 (15:25 +0200)]
Fix T37359: Dynamic Paint deletes inactive texture from smoke domain when using a material as brush color

5 years agoOptimization for render result save
Sergey Sharybin [Fri, 22 Nov 2013 10:48:08 +0000 (16:48 +0600)]
Optimization for render result save

Skip byte->float conversion if output file format
supports high bit depths but configured to only
output 8 bits per channel.

Gives around 30% speedup when re-exporting movie file
to PNG image sequence here on laptop.

Possible further optimization:

- Skip color space conversion in imbuf_for_write
  function if we've got already have buffer in
  that space.

  This doesn't seem to happen often after tweak
  to render result to imbuf.

- Skip black alpha-under if original image is
  opaque,

  This is a bit tricky to detect.

5 years agoFix T37465: UV Coords we're incorrect when converting from a curve
Campbell Barton [Fri, 22 Nov 2013 09:38:48 +0000 (20:38 +1100)]
Fix T37465: UV Coords we're incorrect when converting from a curve

5 years agoFix T37281: View3D could have invalid transform orientation using undo
Campbell Barton [Fri, 22 Nov 2013 09:10:26 +0000 (20:10 +1100)]
Fix T37281: View3D could have invalid transform orientation using undo

5 years agoFix T37559: Crash dissolving vertices in some situations
Campbell Barton [Fri, 22 Nov 2013 08:42:14 +0000 (19:42 +1100)]
Fix T37559: Crash dissolving vertices in some situations

5 years agoCode Cleanup: warnings
Campbell Barton [Fri, 22 Nov 2013 00:30:40 +0000 (11:30 +1100)]
Code Cleanup: warnings

5 years agoCode Cleanup: use NULL for pointer checks and remove joke.
Campbell Barton [Thu, 21 Nov 2013 23:43:42 +0000 (10:43 +1100)]
Code Cleanup: use NULL for pointer checks and remove joke.

5 years agofix for active bone not saving in editmode.
Campbell Barton [Thu, 21 Nov 2013 23:36:35 +0000 (10:36 +1100)]
fix for active bone not saving in editmode.

5 years agoCycles: Add a "Normal" input socket to the Layer Weight node + GLSL drawing code.
Thomas Dinges [Thu, 21 Nov 2013 23:33:28 +0000 (00:33 +0100)]
Cycles: Add a "Normal" input socket to the Layer Weight node + GLSL drawing code.

Patch by lichtwerk (Philipp Oeser).

Differential Revision: http://developer.blender.org/D28

5 years agoArmature Editing: select shortest path (Ctrl+RMB matching mesh operator)
Campbell Barton [Thu, 21 Nov 2013 21:36:48 +0000 (08:36 +1100)]
Armature Editing: select shortest path (Ctrl+RMB matching mesh operator)

Patch originally from Terry Struven, modified to use more generic functions.

5 years agoCode Cleanup: int pointer comparison
Campbell Barton [Thu, 21 Nov 2013 01:24:43 +0000 (12:24 +1100)]
Code Cleanup: int pointer comparison

5 years agoCode cleanup: Minor addition to rB254aa8f3a0fbffcbcb886cfaa81b630ae3e9bb78: handle...
Bastien Montagne [Thu, 21 Nov 2013 19:25:31 +0000 (20:25 +0100)]
Code cleanup: Minor addition to rB254aa8f3a0fbffcbcb886cfaa81b630ae3e9bb78: handle copying of drawflag in ui_but_update_from_old_block()

Note that this is not really needed currently, as the only flag being copied here (UI_BUT_REDALERT) remained in but->flag. However, since we'll have more flags in drawflag now, it's better to explicitly handle this situation...
This func could use some cleanup anyway (a bunch of commented code here)...

Thanks to Campbell for noting this!

5 years agoCMake: minor spelling fix for WITH_BOOST
Emanuel Claesson [Thu, 21 Nov 2013 16:38:52 +0000 (17:38 +0100)]
CMake: minor spelling fix for WITH_BOOST

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D26

5 years agoSquashed commit of the following:
Bastien Montagne [Thu, 21 Nov 2013 15:51:29 +0000 (16:51 +0100)]
Squashed commit of the following:

commit b8b7180760b7c57f15b9930c29207febcf5fefb3
Author: Bastien Montagne <montagne29@wanadoo.fr>
Date:   Thu Nov 21 16:31:16 2013 +0100

    Code cleanup: replace "LISTLABEL" button type by an "UI_BUT_LIST_ITEM" button flag.

    Summary:
    Rationals:
    I) I was never that happy to have a full button type just to set custom colors to labels inside listitems!
    II) If we use (as planned) TEX buttons instead of labels to allow listitems click-rename, I'd like to be able to use listitems' theme color here as well, much easier witha flag than adding yet another button type!

    Note: related to D8

    Reviewers: brecht

    Differential Revision: http://developer.blender.org/D25

5 years agoSquashed commit of the following:
Bastien Montagne [Thu, 21 Nov 2013 13:43:08 +0000 (14:43 +0100)]
Squashed commit of the following:

commit 6f97e194e58aab38d351c796bf7bb6abca33f5f9
Author: Bastien Montagne <montagne29@wanadoo.fr>
Date:   Wed Nov 20 21:18:20 2013 +0100

    Code cleanup: Move some uiBut->flag to uiBut->drawflag, make those flags anonymous enums.

    Summary:
    Make some room in but->flag (I did not add another flag, we already have drawflag, which was nearly not used up till now).

    Note: I’m not sure whether REDALERT (and perhaps even DISABLED?) should not go to but->drawflag as well...

    Related to D8

    Reviewers: brecht

    Differential Revision: http://developer.blender.org/D22

5 years agoFix a wrong check ls == NULL || lb->first == NULL
Sergey Sharybin [Thu, 21 Nov 2013 13:11:24 +0000 (19:11 +0600)]
Fix a wrong check ls == NULL || lb->first == NULL

5 years agoFix T37558: Cosmetic label change to indicate that the path for individual inputs...
Lukas Tönne [Thu, 21 Nov 2013 09:45:52 +0000 (10:45 +0100)]
Fix T37558: Cosmetic label change to indicate that the path for individual inputs in the File Output node is actually a sub-path based on the overall node file path.

5 years agoBlender Internal: Add shader nodes "Separate HSV" and "Combine HSV", same as Cycles...
IRIE Shinsuke [Wed, 20 Nov 2013 19:02:00 +0000 (04:02 +0900)]
Blender Internal: Add shader nodes "Separate HSV" and "Combine HSV", same as Cycles' ones.

5 years agoCode Cleanup: use strict flags for screw modifier, reduce sign conversion
Campbell Barton [Wed, 20 Nov 2013 23:35:48 +0000 (10:35 +1100)]
Code Cleanup: use strict flags for screw modifier, reduce sign conversion

5 years agoFix compile error on MinGW64, time.h is required for gmtime.
Antony Riakiotakis [Wed, 20 Nov 2013 21:47:05 +0000 (23:47 +0200)]
Fix compile error on MinGW64, time.h is required for gmtime.

5 years ago* Remove more code for stars, missed those. Sorry!
Thomas Dinges [Wed, 20 Nov 2013 18:37:23 +0000 (19:37 +0100)]
* Remove more code for stars, missed those. Sorry!

5 years agoBlender Internal:
Thomas Dinges [Wed, 20 Nov 2013 18:09:24 +0000 (19:09 +0100)]
Blender Internal:
* Remove Stars feature. This was a quite minimalistic feature and there are
better alternatives with more control (particles for example).

Removal discussed during BCon13 developer meeting and already years before, time to do it..

Reviewed By: brecht
Differential Revision: http://developer.blender.org/D17

5 years agoFix T37543: Multiline 3D Text saved in edit mode breaks on load
Campbell Barton [Wed, 20 Nov 2013 17:32:28 +0000 (04:32 +1100)]
Fix T37543: Multiline 3D Text saved in edit mode breaks on load

5 years agoCode Cleanup: remove unused members for editfont (3D text)
Campbell Barton [Wed, 20 Nov 2013 17:16:41 +0000 (04:16 +1100)]
Code Cleanup: remove unused members for editfont (3D text)

5 years agofix T37411: Transform mouse constraint could fail in some situations.
Campbell Barton [Wed, 20 Nov 2013 15:15:38 +0000 (02:15 +1100)]
fix T37411: Transform mouse constraint could fail in some situations.

Was caused by int rounding when an axis was < 1.0.

5 years agoFix T37550: Crash while snaping to curve made from Susane (bug in recent addition)
Campbell Barton [Wed, 20 Nov 2013 13:21:31 +0000 (00:21 +1100)]
Fix T37550: Crash while snaping to curve made from Susane (bug in recent addition)

5 years agoNLA Channel Drawing Refactor: Remove rest of old drawing code for NLA Track channels
Joshua Leung [Wed, 20 Nov 2013 12:13:30 +0000 (01:13 +1300)]
NLA Channel Drawing Refactor: Remove rest of old drawing code for NLA Track channels

NLA Track drawing has now been ported over to use the UI widgets
like the rest of the anim channels do in the DopeSheet and Graph
Editors. The main benefit of this for users is that these buttons
will now show tooltips when you hover over them. Hopefully this
will help make the "solo" buttons more discoverable.

I've decided to postpone porting the "Action Line" channels to the
widget system for now, since there are quite a few more issues there
which need quite a bit more time to work through.

5 years agoAnim Editors: Ensure that "solo" flag doesn't get accidentally handled on channels...
Joshua Leung [Wed, 20 Nov 2013 12:01:52 +0000 (01:01 +1300)]
Anim Editors: Ensure that "solo" flag doesn't get accidentally handled on channels which don't support it

5 years agoAnim Editors: Improve some tooltips to be more accurate for the type of editor/data...
Joshua Leung [Wed, 20 Nov 2013 12:01:10 +0000 (01:01 +1300)]
Anim Editors: Improve some tooltips to be more accurate for the type of editor/data they're shown for

This commit fixes some problems where some tooltips were not adapting
as intended when used for different channel types in different places.

5 years agoRemove old drawing code for NLA Tracks
Joshua Leung [Wed, 20 Nov 2013 11:29:29 +0000 (00:29 +1300)]
Remove old drawing code for NLA Tracks

5 years agoAdded button callback so that toggling solo mode on NLA Tracks now works correctly
Joshua Leung [Wed, 20 Nov 2013 11:28:12 +0000 (00:28 +1300)]
Added button callback so that toggling solo mode on NLA Tracks now works correctly

5 years agoPorted code for setting colour of NLA Track anim channel
Joshua Leung [Wed, 20 Nov 2013 06:24:17 +0000 (19:24 +1300)]
Ported code for setting colour of NLA Track anim channel

5 years agoPorted over logic for which animchannel settings are supported by NLA Tracks
Joshua Leung [Wed, 20 Nov 2013 06:03:55 +0000 (19:03 +1300)]
Ported over logic for which animchannel settings are supported by NLA Tracks

5 years agoSkeleton of type defines for NlaTrack animchannel
Joshua Leung [Wed, 20 Nov 2013 04:06:37 +0000 (17:06 +1300)]
Skeleton of type defines for NlaTrack animchannel

5 years agoUpdating icons for NLA Track "solo" button (as used in standard widgets)
Joshua Leung [Wed, 20 Nov 2013 02:21:13 +0000 (15:21 +1300)]
Updating icons for NLA Track "solo" button (as used in standard widgets)

5 years agoTransform: Warp tool (rewritten)
Campbell Barton [Wed, 20 Nov 2013 01:25:07 +0000 (12:25 +1100)]
Transform: Warp tool (rewritten)

* Can optionally warp a segment (sets min/max default so it acts as old warp did).
* Can rotate the warp axis (old warp tool was limited to horizontal).

5 years agoBevel Fix for nonplanar faces / reflex angles
Howard Trickey [Wed, 20 Nov 2013 12:10:35 +0000 (07:10 -0500)]
Bevel Fix for nonplanar faces / reflex angles

When beveling two adjacent edges, code used face normal instead
of the face-corner normal (these can be different for nonplanar
faces); the bevel may look uneven in such cases.
Switched to using corner normal, and needed to fix the case
where the edges meet at a reflex angle. Fixed a similar case
when beveling two edges with one non-beveled in between.
Also removed unnecessary argument from offset_meet.

5 years agoFix T37545: SV+H color cube display changes H slider position when modifying S or V.
Lukas Tönne [Wed, 20 Nov 2013 10:34:18 +0000 (11:34 +0100)]
Fix T37545: SV+H color cube display changes H slider position when modifying S or V.

The widget for the SV gradient was disabling display colorspace transform, but this was not happening for the H slider below, leading to varying H values used to calculate the slider position.

5 years agoExpose track's offset to the RNA
Sergey Sharybin [Wed, 20 Nov 2013 09:55:23 +0000 (15:55 +0600)]
Expose track's offset to the RNA

5 years agoFix T37172: Plane Tracker Deform - No perspective
Sergey Sharybin [Wed, 20 Nov 2013 09:32:31 +0000 (15:32 +0600)]
Fix T37172: Plane Tracker Deform - No perspective

Previous wrap implementation was based on inverse
bilinear mapping, which doesn't give perspective.

Now plane track wrap estimates perspective transform
matrix as a homography estimation between frame
coordinates and plane corners.

Uses Libmv's implementation for this, which means
plane track wouldn't work properly with Libmv
disabled. Not a deal for official builds at all,
just folks who keeps things disabled need to be
aware of this.

5 years agoTweaks and improvements to fundamental/homography estimation
Sergey Sharybin [Wed, 20 Nov 2013 09:19:43 +0000 (15:19 +0600)]
Tweaks and improvements to fundamental/homography estimation

- A bit more reasonable name for the estimation option
  structure and estimation functions.

- Get rid of unclear function and parameter tolerance,
  it wasn't clear at all in which units they are.

  Now we've got expected_average_symmetric_distance as
  an early output check and as soon as average symmetric
  error goes below this threshold refining finishes.

  This distance is measured in the same units as input
  points are.

  It is arguable whether we need callback for this or not,
  but seems Ceres doesn't have some kind of absolute
  threshold for function value and function_tolerance
  behaves different from logic behind expected symmetric
  error.

- Added option to normalize correspondences before
  estimating the homography in order to increase estimation
  stability. See

    R. Hartley and A. Zisserman. Multiple View Geometry in Computer
    Vision. Cambridge University Press, second edition, 2003.

    https://www.cs.ubc.ca/grads/resources/thesis/May09/Dubrofsky_Elan.pdf

5 years agoTransform: rename Warp to Bend
Campbell Barton [Wed, 20 Nov 2013 01:14:10 +0000 (12:14 +1100)]
Transform: rename Warp to Bend

5 years agoMath Library: add dot_m4_v3_row_x/y/z
Campbell Barton [Wed, 20 Nov 2013 00:46:22 +0000 (11:46 +1100)]
Math Library: add dot_m4_v3_row_x/y/z

5 years agoOSX/Cmake: workaround for missing OpenGL headers, make sure sdk lookup
Jens Verwiebe [Tue, 19 Nov 2013 23:38:51 +0000 (00:38 +0100)]
OSX/Cmake: workaround for missing OpenGL headers, make sure sdk lookup

5 years agoFix IRC reported by elubie: windows crash with audio animation
Jörg Müller [Tue, 19 Nov 2013 23:20:51 +0000 (00:20 +0100)]
Fix IRC reported by elubie: windows crash with audio animation

There was a bug in how the iterators of STL list was used when erasing during iteration of a list, which was triggered by the STL implementation of MSVC, but hid well with gcc.

5 years agoFix for addons submodule which was pointing to a not existing revision
Sergey Sharybin [Tue, 19 Nov 2013 20:36:03 +0000 (02:36 +0600)]
Fix for addons submodule which was pointing to a not existing revision

Pretty much likely happened because of arc utility included this
changes by accident and there were local commits in a local tree.

Not sure about how to prevent this from happening yet, just be
careful for now.

5 years agoBlender Internal:
Thomas Dinges [Tue, 19 Nov 2013 19:30:49 +0000 (20:30 +0100)]
Blender Internal:
* Remove "Edge" post processing effect and the corresponding render layer.

Since we have freestyle, this is not needed anymore and was a very simple effect anyway (Zbuffer filter effect, could be added to the compositor if really needed again).

Reviewed By: brecht, ton
Differential Revision: http://developer.blender.org/D14

5 years agoCode Cleanup: style, spelling and pep8 edits
Campbell Barton [Tue, 19 Nov 2013 16:38:18 +0000 (03:38 +1100)]
Code Cleanup: style, spelling and pep8 edits

5 years agoExtra unwanted change from the previous commit
Sergey Sharybin [Tue, 19 Nov 2013 16:25:08 +0000 (22:25 +0600)]
Extra unwanted change from the previous commit

5 years agoBuildinfo fixes
Sergey Sharybin [Tue, 19 Nov 2013 16:01:43 +0000 (22:01 +0600)]
Buildinfo fixes

- Use -M suffix if working tree does have uncommitted
  modifications.
- Local commits are considered local changes as well

5 years agoCode Cleanup: move trans-verts out of snap code into their own file.
Campbell Barton [Tue, 19 Nov 2013 15:40:29 +0000 (02:40 +1100)]
Code Cleanup: move trans-verts out of snap code into their own file.

Developer Note:
* minmax & centroid was being calculated when creating trans-verts but never used.
* static vars removed, replace with TransVertStore stack var.

5 years agoFix: tab completing a filepath name in file browsers asks to create a new
Henrik Aarnio [Tue, 19 Nov 2013 15:31:48 +0000 (16:31 +0100)]
Fix: tab completing a filepath name in file browsers asks to create a new
directory if name was not fully matched

When hitting tab to complete a directory name in the filepath field in the
filebrowser Blender shows a "create new directory?" popup, if the beginning
of directory name typed in the field matches many entries. For example if you
have directories in the open directory called "test123" and "test456", typing
"te", tab would complete up to "test", but ask to create a new folder with the
name "test".

This patch unsets the boolean storing the info about changing filepath if the
folder with the completed name does not exist.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D10

5 years agoFix: Game Engine regression drawing text from recent cleanup
Campbell Barton [Tue, 19 Nov 2013 13:00:05 +0000 (00:00 +1100)]
Fix: Game Engine regression drawing text from recent cleanup

5 years agoBuildbot: update configuration file
Sergey Sharybin [Tue, 19 Nov 2013 12:52:18 +0000 (18:52 +0600)]
Buildbot: update configuration file

Consider this configuration final-1 for the migration,
Linux and OSX slaves seems to be fine, Windows slave
would need some changes from the slave side.

5 years agoRemove Surface modifier when removing force field from object
Sergey Sharybin [Tue, 19 Nov 2013 11:19:06 +0000 (17:19 +0600)]
Remove Surface modifier when removing force field from object

Summary:
Before this adding Surface type of force field and removing
this field would leave Surface modifier alive in the stack.

This might be really misleading and annoying.

Now removing force field will ensure no modifiers needed for
it are remained in the stack.

This also fixes missing notifier to redraw modifier stack
when changing force field type.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D13

5 years agoCleanup: Renamed compositor executePixel functions and their 'read' wrappers in Socke...
Lukas Tönne [Tue, 19 Nov 2013 10:06:16 +0000 (11:06 +0100)]
Cleanup: Renamed compositor executePixel functions and their 'read' wrappers in SocketReader.

Distinguish the 3 different methods for acquiring pixel color values (executePixel, executePixelSampled, executePixelFiltered).
This makes it easier to keep track of the different sampling methods (and works nicer with IDEs that do code parsing).

Differential Revision: http://developer.blender.org/D7

5 years agoBuildbot: fix path got pack step
Sergey Sharybin [Tue, 19 Nov 2013 10:01:45 +0000 (16:01 +0600)]
Buildbot: fix path got pack step

5 years agoFix T37535: Hebrew charset was missing two chars.
Bastien Montagne [Tue, 19 Nov 2013 10:00:53 +0000 (11:00 +0100)]
Fix T37535: Hebrew charset was missing two chars.

5 years agoBuildbot: tweaks for source directory
Sergey Sharybin [Tue, 19 Nov 2013 09:27:28 +0000 (15:27 +0600)]
Buildbot: tweaks for source directory

Need this so checkout of existing svn does not
interferes with new git checkout which would
need to be done.

5 years agoInitial tweaks to buildbot configuration
Sergey Sharybin [Tue, 19 Nov 2013 09:01:00 +0000 (15:01 +0600)]
Initial tweaks to buildbot configuration

Pretty much sure more tweaks would be needed,
but need this to get started.

5 years agoPotential fix for T37525: Viewer node causes crash
Sergey Sharybin [Tue, 19 Nov 2013 07:15:17 +0000 (13:15 +0600)]
Potential fix for T37525: Viewer node causes crash

LOCK_DRAW_IMAGE used to be unlocked twice. Now made it
so all the thread-unsafe code is inside a single lock/
unlock section.

5 years agoView3D: Add menu in the header is now context sensitive (like shift+a).
Campbell Barton [Tue, 19 Nov 2013 06:16:15 +0000 (17:16 +1100)]
View3D: Add menu in the header is now context sensitive (like shift+a).

5 years agoFix T37399: Crash with wireframe (wasn't clearing edge tag)
Campbell Barton [Tue, 19 Nov 2013 05:45:21 +0000 (16:45 +1100)]
Fix T37399: Crash with wireframe (wasn't clearing edge tag)

5 years agoFix T37445: Crash with snapping and shrink-wrap modifier.
Campbell Barton [Tue, 19 Nov 2013 03:31:26 +0000 (14:31 +1100)]
Fix T37445: Crash with snapping and shrink-wrap modifier.

Developer note:
BVHTREE_FROM_FACES was being used for both edit-mesh and derived-mesh
bvh-trees, this could cause index lookup errors in editmode.
Fix by adding a new type for editmesh so theres no confusion.

5 years agoFix T37464: Crash when pressing "V" in UV/Image editor
Campbell Barton [Tue, 19 Nov 2013 02:34:16 +0000 (13:34 +1100)]
Fix T37464: Crash when pressing "V" in UV/Image editor

Also fix for missing draw-handler free.
Delay activating until we know 'stitch_init' succeeds.

5 years agoFix T37519: Screw Modifier ignores material setup
Campbell Barton [Tue, 19 Nov 2013 02:11:31 +0000 (13:11 +1100)]
Fix T37519: Screw Modifier ignores material setup

This was more a missing feature then a bug, the modifier never handled
existing faces however with ngons its possible to get more useful
results. Also order edges from the faces (if available),
gives control over the face-winding-direction.

5 years agoFix T37472: crash when packing UV islands.
Campbell Barton [Tue, 19 Nov 2013 00:18:00 +0000 (11:18 +1100)]
Fix T37472: crash when packing UV islands.

5 years agoCMake: only enable opencollada by default on OS X and Windows, consistent with scons.
Brecht Van Lommel [Mon, 18 Nov 2013 16:12:19 +0000 (17:12 +0100)]
CMake: only enable opencollada by default on OS X and Windows, consistent with scons.

5 years agoFix T37171: Camera parented to a bone doesn't move with the bone, unless another...
Mitchell Stokes [Mon, 18 Nov 2013 22:52:07 +0000 (14:52 -0800)]
Fix T37171: Camera parented to a bone doesn't move with the bone, unless another object is parented too

Armatures used to check if any of their meshes were culled to see if they needed
to be updated. However, this meant armatures with no meshes would never update,
since non-mesh objects are always considered culled. Instead, if a non-culled
child was not found, we now check to see if the armature contained only
non-mesh objects. If this is the case, always update the armature. If this
becomes a problem, we can look into being able to cull non-mesh objects.

5 years agoFix T36756: Use Frame Rate option toolip was unclear about which FPS value to respect
Mitchell Stokes [Mon, 18 Nov 2013 22:18:46 +0000 (14:18 -0800)]
Fix T36756: Use Frame Rate option toolip was unclear about which FPS value to respect

5 years agoFix for running datablock eyedropper outside of a button.
Campbell Barton [Mon, 18 Nov 2013 20:10:56 +0000 (07:10 +1100)]
Fix for running datablock eyedropper outside of a button.

5 years agoFix T36998: Bisect would operate on unselected vertices.
Campbell Barton [Mon, 18 Nov 2013 20:00:18 +0000 (07:00 +1100)]
Fix T36998: Bisect would operate on unselected vertices.

5 years agoFix T37088: Crash with eyedropper (shortcut E)
Campbell Barton [Mon, 18 Nov 2013 18:49:39 +0000 (05:49 +1100)]
Fix T37088: Crash with eyedropper (shortcut E)

5 years agoFix T37336: Toggle selecting a pose-bone from object mode would de-select all others.
Campbell Barton [Mon, 18 Nov 2013 18:18:57 +0000 (05:18 +1100)]
Fix T37336: Toggle selecting a pose-bone from object mode would de-select all others.

5 years agoFix T37040: Removing vehicles in BGE causes a crash
Mitchell Stokes [Mon, 18 Nov 2013 17:30:46 +0000 (09:30 -0800)]
Fix T37040: Removing vehicles in BGE causes a crash

The vehicle constraint is now properly removed if bge.constraints.removeConstraint()
is used or the object is deleted. This also fixes a memory leak with the
vehicle wrapper.

5 years agoFix T37495: Duplis weren't handling negative scaled objects properly.
Campbell Barton [Mon, 18 Nov 2013 16:27:47 +0000 (03:27 +1100)]
Fix T37495: Duplis weren't handling negative scaled objects properly.

5 years agoFix T37506: Duplicate Area into New, was disabled on fullscreen but works ok.
Campbell Barton [Mon, 18 Nov 2013 15:52:34 +0000 (02:52 +1100)]
Fix T37506: Duplicate Area into New, was disabled on fullscreen but works ok.

5 years agoFix T37511: toggle-drag feature was crashing with menu items.
Campbell Barton [Mon, 18 Nov 2013 15:28:21 +0000 (02:28 +1100)]
Fix T37511: toggle-drag feature was crashing with menu items.

5 years agoCmake: after lot of times commit checking missed including collada, set on by default now
Jens Verwiebe [Mon, 18 Nov 2013 13:30:38 +0000 (14:30 +0100)]
Cmake: after lot of times commit checking missed including collada, set on by default now

5 years agoCompile Fix: fix for gcc4.8 with bmesh header.
Campbell Barton [Mon, 18 Nov 2013 12:54:07 +0000 (23:54 +1100)]
Compile Fix: fix for gcc4.8 with bmesh header.

5 years agoFix T37488: Crash with --debug reading userpref.blend
Sergey Sharybin [Mon, 18 Nov 2013 12:13:23 +0000 (18:13 +0600)]
Fix T37488: Crash with --debug reading userpref.blend

Issue was in fact caused by wrong DNA storage, which
apparently was considering unsigned long as just 4
bytes here.

Now use uint64_t to be sure timestamp does fit into
storage on all the platforms.

Thanks Campbell for help looking in the issue.

5 years agoFix T37289: ID User decrement error for Shapes on Bones when playing in BGE
Sergey Sharybin [Mon, 18 Nov 2013 11:17:43 +0000 (17:17 +0600)]
Fix T37289: ID User decrement error for Shapes on Bones when playing in BGE

GE was copying the pose channels without increasing user counter for a
custom bone shape object. Freeing copied pose will for give decrement
errors.

The same increment issue seems to happen in BKE_pose_copy_data, which
is also solved now.

5 years agoFix T37468: image empties now use no interpolation when mipmaps are disabled.
Brecht Van Lommel [Mon, 18 Nov 2013 10:26:37 +0000 (11:26 +0100)]
Fix T37468: image empties now use no interpolation when mipmaps are disabled.

Image empties don't actually support mipmaps right now, but the user preference
doubles as a way to disable any kind of interpolating in texture filter and just
show nearest neighbour filter, so for this is a bit more consistent.

5 years agoMaintenance: Shebang lines fix for some python scripts
Campbell Barton [Mon, 18 Nov 2013 09:38:53 +0000 (20:38 +1100)]
Maintenance: Shebang lines fix for some python scripts

5 years agoFix T37301: Command line render gives seg fault 11 on OS X
Sergey Sharybin [Mon, 18 Nov 2013 08:36:28 +0000 (14:36 +0600)]
Fix T37301: Command line render gives seg fault 11 on OS X

Issue was caused by wm->defaultconf being NULL when in
background mode which made keymap modifications from a
script crash.

Reviewed by Brecht, thanks!

5 years agoFix bug in maya/3dsmax keymaps caused by removed operator
Sergey Sharybin [Mon, 18 Nov 2013 08:27:10 +0000 (14:27 +0600)]
Fix bug in maya/3dsmax keymaps caused by removed operator

Once again, when you remove operator make sure keymaps we've
got in master branch keeps working.

5 years agoFix part of T37326: IMAGE_OT_invert won't update if buffer is float
Sergey Sharybin [Mon, 18 Nov 2013 08:18:01 +0000 (14:18 +0600)]
Fix part of T37326: IMAGE_OT_invert won't update if buffer is float

Need to mark display buffer as out-of-date.

5 years agoFix T37345: Image baking progress bar wrongly appears in node editor
Sergey Sharybin [Mon, 18 Nov 2013 08:02:58 +0000 (14:02 +0600)]
Fix T37345: Image baking progress bar wrongly appears in node editor

Baking job is owned by scene but only need to update image space
contexts. This leads to job progress bar stuck in node editor.

Made it so node editor does not display baking jobs now.

5 years agoCycles: change __device and similar qualifiers to ccl_device in kernel code.
Brecht Van Lommel [Fri, 15 Nov 2013 23:17:10 +0000 (00:17 +0100)]
Cycles: change __device and similar qualifiers to ccl_device in kernel code.

This to avoids build conflicts with libc++ on FreeBSD, these __ prefixed values
are reserved for compilers. I apologize to anyone who has patches or branches
and has to go through the pain of merging this change, it may be easiest to do
these same replacements in your code and then apply/merge the patch.

Ref T37477.

5 years agoFix T37428: NurbsPath Mesh Deform "Binding" not available or not functional
Sergey Sharybin [Mon, 18 Nov 2013 07:36:13 +0000 (13:36 +0600)]
Fix T37428: NurbsPath Mesh Deform "Binding" not available or not functional

Seems to be a regression when Campbell was working on T24009.

Bind operator exec handles curves nicely, could not see reason
why to disable this with a poll function.

From quick tests everything seems to be just fine.