8 years agoBGE: Adding a Python collision API. The initial patch was provided by agoose77, with...
Mitchell Stokes [Sat, 14 Sep 2013 02:02:58 +0000 (02:02 +0000)]
BGE: Adding a Python collision API. The initial patch was provided by agoose77, with some edits by me.

KX_GameObject now has a collisionCallbacks list which is a list of callables that are called when a collision occurs. The callables will be called with an argument that contains a reference to the other object involved in the collision (i.e., not self).

8 years agofix weird issue after last commit where grab brush would not work and
Antony Riakiotakis [Sat, 14 Sep 2013 00:35:41 +0000 (00:35 +0000)]
fix weird issue after last commit where grab brush would not work and
also warnings fix and description fix.

8 years agominor changes needed for building standalone mathutils.
Campbell Barton [Sat, 14 Sep 2013 00:30:56 +0000 (00:30 +0000)]
minor changes needed for building standalone mathutils.

8 years agoSculpting:
Antony Riakiotakis [Fri, 13 Sep 2013 23:58:00 +0000 (23:58 +0000)]

* Cleanup for previous commit and reduce some local variable referencing
* Add support for brushes that operate on frontfaces only and do not
show the option for those brushes. Currently only clay strips is in the
list but this may change according to artist feedback. This should take
care of the "sticky" surface problem completely.

8 years agoSculpting:
Antony Riakiotakis [Fri, 13 Sep 2013 23:21:35 +0000 (23:21 +0000)]

Modify calculation of sculpt plane to only take into account forward
facing vertices. This will solve cases where sculpting on a volume with
the two sides of the mesh inside the brush radius could move the sculpt
plane inside the mesh volume.

To completely fix the issue where the mesh would "stick" the two sides
of the mesh together on the sculpt plane (for instance for clay strip
brushes), user should enable "front face only". Perhaps some brushes,
like clay strips should enforce this and not present the option in the
first place.

8 years agoCleanup for last commit
Jens Verwiebe [Fri, 13 Sep 2013 21:42:52 +0000 (21:42 +0000)]
Cleanup for last commit

8 years agoFix broken compiling with ndof on linux and win
Jens Verwiebe [Fri, 13 Sep 2013 21:21:53 +0000 (21:21 +0000)]
Fix broken compiling with ndof on linux and win

8 years agoOSX/cmake: move the new xcode-select-handing outside xcode conditional, to fix cmake...
Jens Verwiebe [Fri, 13 Sep 2013 21:13:57 +0000 (21:13 +0000)]
OSX/cmake: move the new xcode-select-handing outside xcode conditional, to fix cmake/make compile

8 years agoFix for #36720 and #36721.
Lukas Toenne [Fri, 13 Sep 2013 16:01:41 +0000 (16:01 +0000)]
Fix for #36720 and #36721.
This was own error in r60049 which fixed chunk number calculation. This was mixing int and unsigned int values from ExecutionGroup, which leads to huge chunk numbers which are then skipped.

8 years agoOSX/scons: take xcode-select path into account, to work well with different xcode...
Jens Verwiebe [Fri, 13 Sep 2013 15:41:18 +0000 (15:41 +0000)]
OSX/scons: take xcode-select path into account, to work well with different xcode versions

8 years agoOSX: Compilefix for ndof symbols get magled when used extern C, now use discrete...
Jens Verwiebe [Fri, 13 Sep 2013 15:18:17 +0000 (15:18 +0000)]
OSX: Compilefix for ndof symbols get magled when used extern C, now use discrete c files embedded, patch by Jake Kauth

8 years agoOSX/cmake: allow for compiling with xcode develper previews by determing xcode-select
Jens Verwiebe [Fri, 13 Sep 2013 14:57:57 +0000 (14:57 +0000)]
OSX/cmake: allow for compiling with xcode develper previews by determing xcode-select

8 years agoFix #36719: UV pass not rendering in second render layer if first render layer
Brecht Van Lommel [Fri, 13 Sep 2013 14:31:28 +0000 (14:31 +0000)]
Fix #36719: UV pass not rendering in second render layer if first render layer
does not have the UV pass enabled as well.

8 years agoCleanup and improvements of the compositor debug output.
Lukas Toenne [Fri, 13 Sep 2013 13:36:47 +0000 (13:36 +0000)]
Cleanup and improvements of the compositor debug output.

Debug code for graphviz output moved to a dedicated file COM_Debug.h/cpp.

The DebugInfo class has only static functions, which are called from a number of places to keep track of what is happening in the compositor. If debugging is disabled these are just inline stubs, so we
don't need #ifdefs everywhere and don't get any overhead.

The graphviz output is much more useful now. DebugInfo keeps track of node names in a static string map for meaningful names. It uses a number of colors for various special operation classes.
ExecutionGroups are indicated in graphviz with clusters.

Currently the graphviz .dot files are stored in the BLI_temporary_dir() folder. A separate dot file is generated for each stage of the ExecutionGroup scheduling, this is intended to give some idea of the
compositor progress, but could still be improved.

8 years agoRelated to #36710: add a "use_viewport" option to the render operator, to specify
Brecht Van Lommel [Fri, 13 Sep 2013 13:34:12 +0000 (13:34 +0000)]
Related to #36710: add a "use_viewport" option to the render operator, to specify
if the layers and camera of the 3d viewport should be used. Python scripts don't
always want this behavior.

8 years agoFix memory leak reading mesh data after change to skip saving temporary
Brecht Van Lommel [Fri, 13 Sep 2013 13:34:10 +0000 (13:34 +0000)]
Fix memory leak reading mesh data after change to skip saving temporary
custom data layers.

8 years agoMatch free_normals_split with calc_normals_split names ;)
Bastien Montagne [Fri, 13 Sep 2013 12:13:30 +0000 (12:13 +0000)]
Match free_normals_split with calc_normals_split names ;)

8 years ago* Fix #36717, don't grey out AO distance property, as it affects the AO Render Pass...
Thomas Dinges [Fri, 13 Sep 2013 10:26:20 +0000 (10:26 +0000)]
* Fix #36717, don't grey out AO distance property, as it affects the AO Render Pass and AO closure as well.

8 years agochange NODE_TREE_TYPES_BEGIN/END macros to include braces (matches CTX_DATA_BEGIN...
Campbell Barton [Fri, 13 Sep 2013 08:45:20 +0000 (08:45 +0000)]
change NODE_TREE_TYPES_BEGIN/END macros to include braces (matches CTX_DATA_BEGIN/END)

8 years agocorrect error in libmv stub, also correct typo.
Campbell Barton [Fri, 13 Sep 2013 03:49:11 +0000 (03:49 +0000)]
correct error in libmv stub, also correct typo.

8 years agoMoved and renamed ED_pose_channel_in_IK_chain() ->
Joshua Leung [Fri, 13 Sep 2013 03:03:46 +0000 (03:03 +0000)]
Moved and renamed  ED_pose_channel_in_IK_chain() ->

This was needed for depsgraph work, and it's cleaner for RNA to have fewer
dependencies on editors

8 years agofix/workaround [#36709] Renaming multiple objects in the outliner halts the interface
Campbell Barton [Thu, 12 Sep 2013 22:55:42 +0000 (22:55 +0000)]
fix/workaround [#36709] Renaming multiple objects in the outliner halts the interface

Only show one edit button at a time (editing multiple buttons at once I never saw in other ui toolkits and its unclear what you change).

8 years agowhen handling the escape key, check for press (ignore release events), right mouse...
Campbell Barton [Thu, 12 Sep 2013 22:48:46 +0000 (22:48 +0000)]
when handling the escape key, check for press (ignore release events), right mouse already did this.
ensures the escape key isn't handled twice for one press.

8 years agoadd back library linking warning when renaming library datablocks in the outliner...
Campbell Barton [Thu, 12 Sep 2013 22:08:56 +0000 (22:08 +0000)]
add back library linking warning when renaming library datablocks in the outliner, also typo corrections.

8 years agofix [#36713] crash from adding gear from 'extra objects' addon
Campbell Barton [Thu, 12 Sep 2013 21:01:27 +0000 (21:01 +0000)]
fix [#36713] crash from adding gear from 'extra objects' addon

8 years agoChange the enum for CustomDataMask bits back to #defines.
Nathan Letwory [Thu, 12 Sep 2013 20:43:29 +0000 (20:43 +0000)]
Change the enum for CustomDataMask bits back to #defines.

enum is an int, and values from CD_PREVIEW_MLOOPCOL (32) onwards
will not give what apparently was expected.

Found with help from Oscurart in #blendercoders while trying to figure
out compile error with CMake/msvc9. Occasionally it is good to heed
the warnings given by compilers!

8 years agocode cleanup: unnecessary shadowing and some minor pep8 edits.
Campbell Barton [Thu, 12 Sep 2013 19:51:31 +0000 (19:51 +0000)]
code cleanup: unnecessary shadowing and some minor pep8 edits.

8 years ago3D View / UI:
Thomas Dinges [Thu, 12 Sep 2013 13:01:36 +0000 (13:01 +0000)]
3D View / UI:
* Decouple "Display" panel, into Display and Shading panels, so one of them can be closed when not needed. (Saves some space).

Patch by Sebastian K├Ânig, with tweaks by myself.

8 years agoDifferent implementation of patch #36430: use layer froms scene directly for
Brecht Van Lommel [Thu, 12 Sep 2013 12:09:14 +0000 (12:09 +0000)]
Different implementation of patch #36430: use layer froms scene directly for
rendering, in case some script wants to set it in the render_pre callback. In
case of decoupled 3d view layers or local view it will still override this

8 years agoFix for [#36707] Blender Opens in fullscreen and stays like that
Nathan Letwory [Thu, 12 Sep 2013 10:44:03 +0000 (10:44 +0000)]
Fix for [#36707] Blender Opens in fullscreen and stays like that
Reported by holy enigma

The previous commit in this area removed bounding box checks, because
they were done against primary monitor. Now do bound checks against
the entire desktop, or rather, the virtual screen. This is the bounding
rectangle of all the monitors.

This should ensure windows are always created within the confines of this

8 years agomore localized fix for [#36299], only changes behavior for subsurf with orco in editmode
Campbell Barton [Thu, 12 Sep 2013 10:41:00 +0000 (10:41 +0000)]
more localized fix for [#36299], only changes behavior for subsurf with orco in editmode

8 years agoFix #36706: Added complementary API functions for the FileOutput node so file/layer...
Lukas Toenne [Thu, 12 Sep 2013 08:43:25 +0000 (08:43 +0000)]
Fix #36706: Added complementary API functions for the FileOutput node so file/layer slots (input sockets) can be added without using the operator. Instead of adding sockets to these node using the
node.inputs collection, the node.file_slots or node.layer_slots collections should be used. Both of them work, they just provide slightly different properties for use with simple files or multi-layer

The FileOutput node design is cumbersome and should be considered broken. It should eventually be replaced, the problem with that is backward/forward compatibility.

8 years agoPartial fix for #36706: Prevent invalid sockets in the FileOutput node by removing...
Lukas Toenne [Thu, 12 Sep 2013 08:43:24 +0000 (08:43 +0000)]
Partial fix for #36706: Prevent invalid sockets in the FileOutput node by removing sockets without storage data.

8 years agofix [#36299] Skin Modifier causes crashes in combination with multiple Subdivision...
Campbell Barton [Thu, 12 Sep 2013 08:28:41 +0000 (08:28 +0000)]
fix [#36299] Skin Modifier causes crashes in combination with multiple Subdivision modifiers

8 years agobmesh wireframe operator now adds crease customdata when the crease option is enabled.
Campbell Barton [Thu, 12 Sep 2013 04:02:31 +0000 (04:02 +0000)]
bmesh wireframe operator now adds crease customdata when the crease option is enabled.

8 years agocorrect brackground rectangle drawing in info view. need to compensate for recent...
Campbell Barton [Thu, 12 Sep 2013 03:38:25 +0000 (03:38 +0000)]
correct brackground rectangle drawing in info view. need to compensate for recent change in text offset.

8 years agocode cleanup: headers - doxy comments.
Campbell Barton [Thu, 12 Sep 2013 03:02:50 +0000 (03:02 +0000)]
code cleanup: headers - doxy comments.

8 years agoanother fix for [#36694], user submitted a new testfile that crashes without pointer...
Campbell Barton [Thu, 12 Sep 2013 01:41:16 +0000 (01:41 +0000)]
another fix for [#36694], user submitted a new testfile that crashes without pointer lists being cleared.

8 years agoBetter fix for #36688.
Antony Riakiotakis [Wed, 11 Sep 2013 23:28:23 +0000 (23:28 +0000)]
Better fix for #36688.

Throw a python error if user attempts to use CurveMap without calling
CurveMapping.initialize() first. Added access to the initialize function
to CurveMapping on RNA level.

Thanks to Campbel for the help and remarks!

8 years agoBGE: Potential fix for [#35522] Broken game engine compatibility since 2.66a on some...
Daniel Stokes [Wed, 11 Sep 2013 23:24:45 +0000 (23:24 +0000)]
BGE: Potential fix for [#35522] Broken game engine compatibility since 2.66a on some ATI cards?

Disabling display lists for legacy ATI cards since they don't support display lists well.

Also removing an unused variable from the display list rasterizer.

8 years agocode cleanup: set enums as static or add RNA_enum_types.h where they are used elsewhere.
Campbell Barton [Wed, 11 Sep 2013 21:27:14 +0000 (21:27 +0000)]
code cleanup: set enums as static or add RNA_enum_types.h where they are used elsewhere.
also minor style cleanup.

8 years agofix uninitalized var with new normal calculation function.
Campbell Barton [Wed, 11 Sep 2013 21:23:09 +0000 (21:23 +0000)]
fix uninitalized var with new normal calculation function.

8 years agoFix use of uninitialized variable in new Mesh.calc_normals_split.
Brecht Van Lommel [Wed, 11 Sep 2013 18:57:58 +0000 (18:57 +0000)]
Fix use of uninitialized variable in new Mesh.calc_normals_split.

8 years agoFix #36705: UV pack island crashing after recent change.
Brecht Van Lommel [Wed, 11 Sep 2013 18:57:56 +0000 (18:57 +0000)]
Fix #36705: UV pack island crashing after recent change.

8 years agoFix #36700, z-depth not rendering properly at (n*256)+1 dimensions.
Lukas Toenne [Wed, 11 Sep 2013 17:34:32 +0000 (17:34 +0000)]
Fix #36700, z-depth not rendering properly at (n*256)+1 dimensions.
The chunk indices for scheduling chunks based on a given area were calculated incorrectly. This caused chunks at the very border of the render (pixels 256..257) to be omitted, leading to incorrect values
in the Z buffer of the test file, which in turn caused wrong normalization range and the resulting almost-white image.
Also added a dedicated executePixel function for Z buffer to avoid any interpolation of Z values.

8 years agoFix [#36702] blenderapplication window position and size
Nathan Letwory [Wed, 11 Sep 2013 14:14:18 +0000 (14:14 +0000)]
Fix [#36702] blenderapplication window position and size

On Windows the system window will be sized an positioned such that Blender screen area lower left
corner is at the requested location, and with dimension as requested.

Thanks to Alexander N. for reporting and Brecht van Lommel for input.

8 years agoEnable transform helpline in clip editor
Sergey Sharybin [Wed, 11 Sep 2013 11:43:43 +0000 (11:43 +0000)]
Enable transform helpline in clip editor

8 years agoFix #36701: Mask pivioting doesnt honor parenting
Sergey Sharybin [Wed, 11 Sep 2013 10:06:54 +0000 (10:06 +0000)]
Fix #36701: Mask pivioting doesnt honor parenting

Made mask transformation aware of parent matrix.

8 years agofix [#36081] ngones causes problems with lightmap packing
Campbell Barton [Wed, 11 Sep 2013 09:55:44 +0000 (09:55 +0000)]
fix [#36081] ngones causes problems with lightmap packing

8 years agoRevert r60034 and proper fix for #36698 by Sergey Sharybin. NULL pointer checks shoul...
Lukas Toenne [Wed, 11 Sep 2013 09:02:59 +0000 (09:02 +0000)]
Revert r60034 and proper fix for #36698 by Sergey Sharybin. NULL pointer checks should never be done in color management. Instead this makes sure the look identifier is always initialized correctly to
the default if not defined.

8 years agoreplace inline index lookup with BLI_findindex
Campbell Barton [Wed, 11 Sep 2013 07:36:40 +0000 (07:36 +0000)]
replace inline index lookup with BLI_findindex

8 years agoAdd read-only access to index data for current line, top line and visible lines count.
Nathan Letwory [Wed, 11 Sep 2013 07:23:23 +0000 (07:23 +0000)]
Add read-only access to index data for current line, top line and visible lines count.

8 years agofix [#36020] SmartUV Project is messy on a cube
Campbell Barton [Wed, 11 Sep 2013 07:10:15 +0000 (07:10 +0000)]
fix [#36020] SmartUV Project is messy on a cube
was using very simple/stupid check to rotate us islands, replace with box_fit_2d() function.

missed docstring last commit.

8 years agoFix #36698 Cycles MinGW64 Mike Pan scene crashes instantly. Missing pointer check...
Lukas Toenne [Wed, 11 Sep 2013 07:07:16 +0000 (07:07 +0000)]
Fix #36698 Cycles MinGW64 Mike Pan scene crashes instantly. Missing pointer check in color management look access from r59945. The look_desc pointer is NULL if the look string is undefined (empty).

8 years agoadd mathutils.geometry.box_fit_2d() to wrap BLI_convexhull_aabb_fit_points_2d()
Campbell Barton [Wed, 11 Sep 2013 06:56:51 +0000 (06:56 +0000)]
add mathutils.geometry.box_fit_2d() to wrap BLI_convexhull_aabb_fit_points_2d()

8 years agointerface, replace '|' with define UI_SEP_CHAR
Campbell Barton [Wed, 11 Sep 2013 05:06:27 +0000 (05:06 +0000)]
interface, replace '|' with define UI_SEP_CHAR

8 years agofix [#36699] ASCII-character "|" blocks parenting
Campbell Barton [Wed, 11 Sep 2013 04:56:35 +0000 (04:56 +0000)]
fix [#36699] ASCII-character "|" blocks parenting
don't split '|' for rna-property search buttons (but keep for operator search).

8 years agotake the decender into account when drawing console text.
Campbell Barton [Wed, 11 Sep 2013 04:14:27 +0000 (04:14 +0000)]
take the decender into account when drawing console text.
also add data types wm and mask to dataname() and unshadow var in ghost/x11

8 years agofix [#36697] Topology mirror causes vertices to jump?
Campbell Barton [Wed, 11 Sep 2013 02:36:37 +0000 (02:36 +0000)]
fix [#36697] Topology mirror causes vertices to jump?

don't give up too early finding unique geometry by keeping track of edges with matching vertex hashes and keep checking for unique topology as long as the total of these edges keeps increasing.

8 years agofix double free in ghost c++ gears test program.
Campbell Barton [Wed, 11 Sep 2013 01:15:13 +0000 (01:15 +0000)]
fix double free in ghost c++ gears test program.

8 years agouv-pack operator: option to rotate uv islands to fit in the optimal rectangle when...
Campbell Barton [Tue, 10 Sep 2013 23:11:58 +0000 (23:11 +0000)]
uv-pack operator: option to rotate uv islands to fit in the optimal rectangle when packing.

8 years agocorrect own recent edits, area for text line numbers drawing was too small.
Campbell Barton [Tue, 10 Sep 2013 21:45:54 +0000 (21:45 +0000)]
correct own recent edits, area for text line numbers drawing was too small.

8 years agoadd angle_to_mat2 utility function.
Campbell Barton [Tue, 10 Sep 2013 20:45:47 +0000 (20:45 +0000)]
add angle_to_mat2 utility function.

8 years agoFix #36327: cycles render layers exclude layers animation did not work well.
Brecht Van Lommel [Tue, 10 Sep 2013 20:26:34 +0000 (20:26 +0000)]
Fix #36327: cycles render layers exclude layers animation did not work well.
This is kind of another way to animate layers which is disabled, but add an
exception to make this case work.

8 years agomisc minor changes
Campbell Barton [Tue, 10 Sep 2013 19:23:39 +0000 (19:23 +0000)]
misc minor changes
- make cmake osx use of -ftemplate-depth match scons.
- use array size within sizeof(), more compact.
- replace AT with __func__ where the function is unique enough.
- BLI_box_pack_2D -> 2d to match other functions.
- rename new mesh normal calculation to mesh.calc_normals_split()

8 years agoOSX/cmake: assure finding jack framework
Jens Verwiebe [Tue, 10 Sep 2013 18:56:33 +0000 (18:56 +0000)]
OSX/cmake: assure finding jack framework

8 years agoOSX/scons: fix a typo for jack adding frameworksearchpath
Jens Verwiebe [Tue, 10 Sep 2013 18:40:07 +0000 (18:40 +0000)]
OSX/scons: fix a typo for jack adding frameworksearchpath

8 years agoPossible fix for MSVC compiling (grr...).
Bastien Montagne [Tue, 10 Sep 2013 15:41:01 +0000 (15:41 +0000)]
Possible fix for MSVC compiling (grr...).

8 years agoSplit normals API, to get per-vertex per-face normals, useful to export sharp edges...
Bastien Montagne [Tue, 10 Sep 2013 15:26:12 +0000 (15:26 +0000)]
Split normals API, to get per-vertex per-face normals, useful to export sharp edges in a compatible way.

Many thanks to Campbell and Brecht for reviews.

8 years agoUpdate to writefile: do not save TEMPORARY or NO_COPY CD layers!
Bastien Montagne [Tue, 10 Sep 2013 15:24:31 +0000 (15:24 +0000)]
Update to writefile: do not save TEMPORARY or NO_COPY CD layers!

Neede for next commit (split normals API).

8 years agoFix cycles too slow export of meshes with uvs when a motion vector pass is used.
Brecht Van Lommel [Tue, 10 Sep 2013 15:12:53 +0000 (15:12 +0000)]
Fix cycles too slow export of meshes with uvs when a motion vector pass is used.

8 years agoFix #36271: missing (+) icon for toolbar in compositing layout in default startup...
Brecht Van Lommel [Tue, 10 Sep 2013 13:25:39 +0000 (13:25 +0000)]
Fix #36271: missing (+) icon for toolbar in compositing layout in default startup.blend.

8 years agostartup.blend: save images as RGBA by default, to avoid losing data when
Brecht Van Lommel [Tue, 10 Sep 2013 13:25:37 +0000 (13:25 +0000)]
startup.blend: save images as RGBA by default, to avoid losing data when
forgetting to change it from RGB when painting images or saving renders.

This makes more sense in the new alpha pipeline, renders no longer contain an
alpha channel that does not match the RGB channels, so saving files as RGBA
should give the expected results when opening them in other applications.

8 years agostartup.blend: add a function BLO_update_defaults_startup_blend to change
Brecht Van Lommel [Tue, 10 Sep 2013 13:25:35 +0000 (13:25 +0000)]
startup.blend: add a function BLO_update_defaults_startup_blend to change
default settings in the startup.blend without having to actually save and embed
the file, which can be a tricky process and is problematic in branches and

This function can be emptied each time a new startup.blend is committed.

8 years agoFix #36577: sculpt area plane texture mapping + random angle did not work.
Brecht Van Lommel [Tue, 10 Sep 2013 13:25:33 +0000 (13:25 +0000)]
Fix #36577: sculpt area plane texture mapping + random angle did not work.

8 years agoAnother DNA cleanup (enums instead of defines).
Bastien Montagne [Tue, 10 Sep 2013 13:13:04 +0000 (13:13 +0000)]
Another DNA cleanup (enums instead of defines).

8 years agoOSX/Scons/clang: more restrict the ftemplate fix to clang bundled with xcode 5 only
Jens Verwiebe [Tue, 10 Sep 2013 12:55:36 +0000 (12:55 +0000)]
OSX/Scons/clang: more restrict the ftemplate fix to clang bundled with xcode 5 only

8 years agoCore code for split normals computation. Many thanks to ideasman for is optimization...
Bastien Montagne [Tue, 10 Sep 2013 12:48:08 +0000 (12:48 +0000)]
Core code for split normals computation. Many thanks to ideasman for is optimization guiding and code reviews!

Note the API is not yet committed, as it may need a few more checks & tweaks. ;)

8 years agoEnable view3d-like shortcuts for pivot point in clip editor
Sergey Sharybin [Tue, 10 Sep 2013 12:46:27 +0000 (12:46 +0000)]
Enable view3d-like shortcuts for pivot point in clip editor

8 years agoDon't show 2D cursor in tracking mode i pivoting is not set to 2D cursor
Sergey Sharybin [Tue, 10 Sep 2013 12:46:23 +0000 (12:46 +0000)]
Don't show 2D cursor in tracking mode i pivoting is not set to 2D cursor

8 years agoTweaks to plane track
Sergey Sharybin [Tue, 10 Sep 2013 12:46:18 +0000 (12:46 +0000)]
Tweaks to plane track

- Do plane re-evaluation only when transform is actually done.
  Before this re-evaluation happened on every mouse move.

- Added a flag "Auto Keyframe" for the plane track, which does:

  * If Auto Keyframe is enabled, then every manual edit of the
    plane will create a new keyframe at current frame and update
    plane motion between current frame and previous/next keyframe.

    This now also implies blending detected motion with neighbor
    keyframes, so there's no jump happening.

    No automatic update on manual point tracks edit will happen.

  * If auto Keyframe is disabled, then no keyframes are adding
    to the plane and every plane tweak will re-evaluate in on
    the whole frame range.

    In this case manual tweaks to point tracks and re-tracking
    them implies plane re-evaluation.

8 years agoOSX/Scons/clang: restrict the ftemplate fix to clang only
Jens Verwiebe [Tue, 10 Sep 2013 12:31:21 +0000 (12:31 +0000)]
OSX/Scons/clang: restrict the ftemplate fix to clang only

8 years agoremove redundant indirection in asserts
Campbell Barton [Tue, 10 Sep 2013 11:47:21 +0000 (11:47 +0000)]
remove redundant indirection in asserts

8 years agoadd BLI_SMALLSTACK_***, macros: stack doesn't have a fixed size, it uses stack memory...
Campbell Barton [Tue, 10 Sep 2013 11:04:20 +0000 (11:04 +0000)]
add BLI_SMALLSTACK_***, macros: stack doesn't have a fixed size, it uses stack memory and never allocates.
it can be added and removed many times per function but will always remain the size of the maximum number of items.

not used yet, added for normal calculation function from mont29.

8 years ago* Compile fix for r59990.
Thomas Dinges [Tue, 10 Sep 2013 09:06:24 +0000 (09:06 +0000)]
* Compile fix for r59990.

8 years agomakesrna fix: The C++ wrapper functions for collection lookup (both int and string...
Lukas Toenne [Tue, 10 Sep 2013 08:27:13 +0000 (08:27 +0000)]
makesrna fix: The C++ wrapper functions for collection lookup (both int and string) were not clearing the return pointer if no item is found, but only in case there is a custom lookup function defined.
This causes trouble with Cycles because the C++ API uses the returned pointer to determine validity - if no item is found the pointer should be NULL for checking.

8 years agoadd 2d convex hull utility function, BLI_convexhull_2d(), and python api mathutils...
Campbell Barton [Tue, 10 Sep 2013 07:52:10 +0000 (07:52 +0000)]
add 2d convex hull utility function, BLI_convexhull_2d(), and python api mathutils.geometry.convex_hull_2d()

uses Andrew's monotone chain 2D convex hull algorithm.

8 years agoRemove dimension checks from window creation.
Nathan Letwory [Tue, 10 Sep 2013 06:35:50 +0000 (06:35 +0000)]
Remove dimension checks from window creation.

This should be (and is) done by the caller instead (windowmanager)
to ensure new windows fit properly on the desktop. Saving
stretched layouts and layouts with window over display
boundaries now becomes possible on Windows too.

8 years agoChange window checks to desktop size instead of screen size.
Nathan Letwory [Tue, 10 Sep 2013 06:32:32 +0000 (06:32 +0000)]
Change window checks to desktop size instead of screen size.

This allows to open windows stretched over monitors. Saving
stretched layouts open correctly as well.

Renamed screensize_all to desktopsize to better convey meaning.

8 years agoAdd BLI_utildefines.h for __func__ (necessary for MSVC).
Nathan Letwory [Tue, 10 Sep 2013 05:57:54 +0000 (05:57 +0000)]
Add BLI_utildefines.h for __func__ (necessary for MSVC).

8 years agofix/workaround [#36694] Texture node groups tend to crash Blender a lot.
Campbell Barton [Tue, 10 Sep 2013 03:18:43 +0000 (03:18 +0000)]
fix/workaround [#36694] Texture node groups tend to crash Blender a lot.

8 years agofix [#36492] Keymap: Issue setting operator path properties
Campbell Barton [Tue, 10 Sep 2013 02:49:33 +0000 (02:49 +0000)]
fix [#36492] Keymap: Issue setting operator path properties

8 years agofix [#36693] segfaults when split vertice of Bezier curve
Campbell Barton [Tue, 10 Sep 2013 01:06:45 +0000 (01:06 +0000)]
fix [#36693] segfaults when split vertice of Bezier curve
own error in recent curve split patch.

8 years agocode cleanup: use bool for imbuf allocation functions.
Campbell Barton [Tue, 10 Sep 2013 01:00:03 +0000 (01:00 +0000)]
code cleanup: use bool for imbuf allocation functions.

8 years agofix [#36187] Crash loading large images
Campbell Barton [Tue, 10 Sep 2013 00:53:39 +0000 (00:53 +0000)]
fix [#36187] Crash loading large images

alloc size was larger then an int, use size_t for all image alloc sizes.

8 years agoCycles OSL: update to build with latest OSL master branch.
Brecht Van Lommel [Mon, 9 Sep 2013 21:52:26 +0000 (21:52 +0000)]
Cycles OSL: update to build with latest OSL master branch.

8 years agoFix #36356: faces not drawn with constructive modifier + dynamic paint, where it
Brecht Van Lommel [Mon, 9 Sep 2013 20:46:43 +0000 (20:46 +0000)]
Fix #36356: faces not drawn with constructive modifier + dynamic paint, where it
overrides material colors with dynamic paint colors.

8 years agoFix #36641: maya key configuration shift + LMB drag border select did not work
Brecht Van Lommel [Mon, 9 Sep 2013 20:23:38 +0000 (20:23 +0000)]
Fix #36641: maya key configuration shift + LMB drag border select did not work
anymore. This broke after the change to make holding shift deselect with B key
border select in the regular Blender keymap.

8 years agoUsual UI messages fixes...
Bastien Montagne [Mon, 9 Sep 2013 20:22:01 +0000 (20:22 +0000)]
Usual UI messages fixes...

8 years agoAttempt fix for #36688.
Antony Riakiotakis [Mon, 9 Sep 2013 18:39:51 +0000 (18:39 +0000)]
Attempt fix for #36688.

Curves may not be not initialized when called from python. C code
explicilty says that curvemapping_initialize should be called prior to
evaluating the curve, however the curve clip rectangle is not available
when calling evaluation on the curvemap. This is not possible unless we
force the evaluation on CurveMapping level, not on CurveMap level.

For now just pass a rectangle with the x boundary values of the curvemap
for evaluation to avoid the crash.