blender-staging.git
7 years agorename cursor setting functions to make modal set/restore more clearly related functions.
Campbell Barton [Fri, 6 Sep 2013 22:34:29 +0000 (22:34 +0000)]
rename cursor setting functions to make modal set/restore more clearly related functions.

7 years agoCode cleanup / Cycles:
Thomas Dinges [Fri, 6 Sep 2013 16:07:49 +0000 (16:07 +0000)]
Code cleanup / Cycles:
* Some cleanup for disabled Volume code.

7 years ago3D View: add shift+Z shortcut key to switch to Rendered draw mode.
Brecht Van Lommel [Fri, 6 Sep 2013 13:25:54 +0000 (13:25 +0000)]
3D View: add shift+Z shortcut key to switch to Rendered draw mode.

7 years agoCMake and scons update to detect OS X 10.9, cmake patch by Jake Kauth.
Brecht Van Lommel [Fri, 6 Sep 2013 12:43:27 +0000 (12:43 +0000)]
CMake and scons update to detect OS X 10.9, cmake patch by Jake Kauth.

7 years agoFix #36672: outliner allowed to toggle linked group visibility, which should not
Brecht Van Lommel [Fri, 6 Sep 2013 12:11:15 +0000 (12:11 +0000)]
Fix #36672: outliner allowed to toggle linked group visibility, which should not
be allowed because this is linked data, so any changes would not be saved.

7 years agoWoops, minr style changes are needed.
Sergey Sharybin [Fri, 6 Sep 2013 10:23:21 +0000 (10:23 +0000)]
Woops, minr style changes are needed.

7 years agoAvoid tracks reallocation and planes traversal in tracks_map_merge
Sergey Sharybin [Fri, 6 Sep 2013 10:21:56 +0000 (10:21 +0000)]
Avoid tracks reallocation and planes traversal in tracks_map_merge

Would save us a bit of time when doing 2D tracking.

7 years agoOn the second thought, no need to go between straight and premul when doing AA for...
Sergey Sharybin [Fri, 6 Sep 2013 09:56:04 +0000 (09:56 +0000)]
On the second thought, no need to go between straight and premul when doing AA for plane warp node

7 years agogrid-fill support for customdata, so filled areas have UV's, vertex colors etc interp...
Campbell Barton [Fri, 6 Sep 2013 06:48:17 +0000 (06:48 +0000)]
grid-fill support for customdata, so filled areas have UV's, vertex colors etc interpolated from the boundary.
also support cases where only some of the boundary edges have faces to interpolate from.

7 years agobmesh utility functions BM_face_as_array_loop_tri, BM_face_as_array_loop_quad
Campbell Barton [Fri, 6 Sep 2013 06:27:22 +0000 (06:27 +0000)]
bmesh utility functions BM_face_as_array_loop_tri, BM_face_as_array_loop_quad
also set attributes for the header and remove debug print in mask.c

7 years agofix for barycentric_weights_v2_quad() divide by zero when the location we're checking...
Campbell Barton [Fri, 6 Sep 2013 05:44:18 +0000 (05:44 +0000)]
fix for barycentric_weights_v2_quad() divide by zero when the location we're checking the weight of touches one of the weighting coords exactly.

7 years agoerror in recent gridfill commit, calculating span last failed.
Campbell Barton [Fri, 6 Sep 2013 02:59:25 +0000 (02:59 +0000)]
error in recent gridfill commit, calculating span last failed.

7 years agostarting blenderplater wasnt flipping use_deprecation_warnings when it should, also...
Campbell Barton [Fri, 6 Sep 2013 02:50:28 +0000 (02:50 +0000)]
starting blenderplater wasnt flipping use_deprecation_warnings when it should, also use values directly without converting to ints.

7 years agofix for bug in GHOST/SDL, events dont always have a window (which ghost needs).
Campbell Barton [Fri, 6 Sep 2013 01:40:20 +0000 (01:40 +0000)]
fix for bug in GHOST/SDL, events dont always have a window (which ghost needs).
fallback to the window with the active opengl context.

7 years agoBGE Fix: [#32360] Standalone Player switches not working
Daniel Stokes [Thu, 5 Sep 2013 23:09:14 +0000 (23:09 +0000)]
BGE Fix: [#32360] Standalone Player switches not working

Launching the player from the Blender UI now makes use of the "Debug Properties", "Framerate and Profile", and "Deprecation Warnings" options by setting the appropriate command line flags.

7 years agogrid-fill now detects non-square grids (this is what users would expect)
Campbell Barton [Thu, 5 Sep 2013 22:58:35 +0000 (22:58 +0000)]
grid-fill now detects non-square grids (this is what users would expect)

http://www.graphicall.org/ftp/ideasman42/gridfill_detect_nonsquare.png

7 years agosorting utility functions for simple cases - sorting pointers by float for example.
Campbell Barton [Thu, 5 Sep 2013 22:24:12 +0000 (22:24 +0000)]
sorting utility functions for simple cases - sorting pointers by float for example.

7 years agoFixing a problem with variance shadow maps blurring out on transparent receivers...
Daniel Stokes [Thu, 5 Sep 2013 22:05:52 +0000 (22:05 +0000)]
Fixing a problem with variance shadow maps blurring out on transparent receivers in the Game Engine reported by Sam Cameron on the IRC.

Also correcting some slight blurring over time by making sure the color buffer is cleared for shadows.

7 years agoalign BevelSort strict to save some bytes. use camel case.
Campbell Barton [Thu, 5 Sep 2013 21:45:05 +0000 (21:45 +0000)]
align BevelSort strict to save some bytes. use camel case.

7 years agofix [#36656] text editor undo error when undoing paste command
Justin Dailey [Thu, 5 Sep 2013 21:36:19 +0000 (21:36 +0000)]
fix [#36656] text editor undo error when undoing paste command

When tabs to spaces is enabled and a paste command is undone, the improper number of characters could get removed. Also fixed issue with shift + left/right only selecting a max of 1 character.

7 years agorename positive_mod to mod_i, make it work with nagative numbers (matching pythons...
Campbell Barton [Thu, 5 Sep 2013 20:54:32 +0000 (20:54 +0000)]
rename positive_mod to mod_i, make it work with nagative numbers (matching pythons modulo), and use in a few more places.

allow mesh-checker-deselect to have a negative offset.

7 years agocode cleanup:
Campbell Barton [Thu, 5 Sep 2013 19:56:49 +0000 (19:56 +0000)]
code cleanup:
- add missing headers from cmake (own omission)
- quiet rna_test.c unused define warnings.
- minor style edits
- spelling corrections and ignore all uppercase words with spell checking script.

7 years agoCleanup (mostly #defines -> enums, and bitflags using bitshift operator!).
Bastien Montagne [Thu, 5 Sep 2013 18:12:37 +0000 (18:12 +0000)]
Cleanup (mostly #defines -> enums, and bitflags using bitshift operator!).

7 years agoCode cleanup: use boolean instead of int for colormanagement
Sergey Sharybin [Thu, 5 Sep 2013 17:13:43 +0000 (17:13 +0000)]
Code cleanup: use boolean instead of int for colormanagement

7 years agoAdded a brie instruction how to build simple memtest
Sergey Sharybin [Thu, 5 Sep 2013 16:32:44 +0000 (16:32 +0000)]
Added a brie instruction how to build simple memtest

7 years agoGhost test application could be compiled again
Sergey Sharybin [Thu, 5 Sep 2013 16:22:07 +0000 (16:22 +0000)]
Ghost test application could be compiled again

Was an IRC request to have Ghost application up
and running for investigation purposes.

7 years agoFix metaball f-curves not showing up in graph editor.
Brecht Van Lommel [Thu, 5 Sep 2013 16:15:01 +0000 (16:15 +0000)]
Fix metaball f-curves not showing up in graph editor.

7 years agoFix #36649 and #36650: animation of freestyle line thickness and linestyle did
Brecht Van Lommel [Thu, 5 Sep 2013 15:47:52 +0000 (15:47 +0000)]
Fix #36649 and #36650: animation of freestyle line thickness and linestyle did
not render correct in animations, due to missing updates.

7 years agoExpose theme color of shadow UVs (These include UVs that are drawn in
Antony Riakiotakis [Thu, 5 Sep 2013 15:09:10 +0000 (15:09 +0000)]
Expose theme color of shadow UVs (These include UVs that are drawn in
texture paint modes and as modified mesh uvs overlay) and UVs of other
objects.

7 years agoCtr-Alt-F radial control operator for texture painting, controls the
Antony Riakiotakis [Thu, 5 Sep 2013 14:02:59 +0000 (14:02 +0000)]
Ctr-Alt-F radial control operator for texture painting, controls the
rotation of the brush mask texture.

Unfortunately secondary path does not work here because we do not have a
permanent switch to choose between primary-secondary brush texture. Use
operator property instead.

7 years agoCode cleanup: use boolean instead of int for space_clip
Sergey Sharybin [Thu, 5 Sep 2013 13:37:53 +0000 (13:37 +0000)]
Code cleanup: use boolean instead of int for space_clip

7 years agoCode cleanup: get rid of crappy height cast to double
Sergey Sharybin [Thu, 5 Sep 2013 13:37:46 +0000 (13:37 +0000)]
Code cleanup: get rid of crappy height cast to double

7 years agoCode cleanup: use boolean instead of int for tracking API
Sergey Sharybin [Thu, 5 Sep 2013 13:37:36 +0000 (13:37 +0000)]
Code cleanup: use boolean instead of int for tracking API

7 years agoCompositor cleanup: Merge conversion operations into a single file (see also r59820).
Lukas Toenne [Thu, 5 Sep 2013 13:32:14 +0000 (13:32 +0000)]
Compositor cleanup: Merge conversion operations into a single file (see also r59820).

Most convert operations can share a common base class with a single socket reader (except channel separate/combine nodes).

7 years agoTidy up paint options, patch by Sebastian Koenig, with minor changes
Antony Riakiotakis [Thu, 5 Sep 2013 13:15:29 +0000 (13:15 +0000)]
Tidy up paint options, patch by Sebastian Koenig, with minor changes
(ommit texture paint changes, they made the interface more difficult to
discern).

Also, move stroke input samples to stroke panel

7 years agoBugfix #35920
Ton Roosendaal [Thu, 5 Sep 2013 13:03:03 +0000 (13:03 +0000)]
Bugfix #35920

Adding a new node in Node Editor failed for "High DPI" (Only Mac retina now).

- Py script for adding nodes was doing dpi magic, which it shouldn't. It has
  been replaced with a (temporary) API call to set the correct cursor location.
  (Thanks to Lukas T for helping here)

- The SpaceNode->cursor[2] property now is *only* storing the coordinate
  in "adding new node space". Use of this has been removed from the code where
  possible, with as only exception the code to draw noodles while adding them.

Special coder note: Nodes should respect the DPI value, and draw larger with
larger buttons if you increase this size. The hack here is that this can only
work nice if also the node positions are scaled accordingly.

A better fix could be to check on scaling the node view itself for it. That
then would also remove this Python API call that was added in this commit.
However, that again might fight with how buttons layout code works now...
needs some careful checking.

7 years agoRemoved unused variables used only in BLI_assert, this triggers compiler warning...
Lukas Toenne [Thu, 5 Sep 2013 12:10:49 +0000 (12:10 +0000)]
Removed unused variables used only in BLI_assert, this triggers compiler warning in release builds.

7 years agoadd function for rotating linked list so at item is last.
Campbell Barton [Thu, 5 Sep 2013 11:40:38 +0000 (11:40 +0000)]
add function for rotating linked list so at item is last.

7 years agogrid-fill can now fill a single, closed edge loop.
Campbell Barton [Thu, 5 Sep 2013 11:07:49 +0000 (11:07 +0000)]
grid-fill can now fill a single, closed edge loop.
the active vertex is used when possible, else the corner vertex is detected.

this should replace the grid-fill-manager addon by Alexander Nedovizin.

7 years agoUpdate Ceres to 1.7.0 release
Sergey Sharybin [Thu, 5 Sep 2013 10:48:44 +0000 (10:48 +0000)]
Update Ceres to 1.7.0 release

For Blender this release is interesting because of:

- Covariance estimation (not used in Blender yet, but now we
  might use it for keyframe selection instead of havingown
  implementation).

- Significant performance improvements to loss function and
  dense linear solvers and automatic differentiation.

  Unfortunately, didn't notice speedup of tracking itself,
  but camera reconstruction now happens around 2 times faster
  on my laptop,

- Better inner iteration step acceptance and stopping.

7 years agoFix #36113, Translate's wrapping has 1 pixel gap in X and Y after scale node.
Lukas Toenne [Thu, 5 Sep 2013 10:45:21 +0000 (10:45 +0000)]
Fix #36113, Translate's wrapping has 1 pixel gap in X and Y after scale node.
The issue with wrapping is that it requires correct interpolation of the border pixels. Since interpolation is done at the far left end of the node tree in buffer/image/etc read operations, the wrapping
setting can not be used directly in those operations (otherwise in-line translate operations would cause conflicts). To make wrapping work correctly we need to add a buffer in front of the translate
operation, which can then be interpolated correctly based on wrapping. The WrapOperation becomes a variant of ReadBufferOperation, which uses its wrapping setting to determine the correct "extend" mode
for interpolation of the buffer.

7 years agoExtend mode option for MemoryBuffer reading in compositor. This will allow proper...
Lukas Toenne [Thu, 5 Sep 2013 10:45:19 +0000 (10:45 +0000)]
Extend mode option for MemoryBuffer reading in compositor. This will allow proper interpolation of pixel values when using wrapping in the Translate node. Implemented in inline functions, so won't cause
overhead if constant values are passed (as happens with most calls using the default argument).

7 years agoadd positive_mod() utility function.
Campbell Barton [Thu, 5 Sep 2013 10:12:00 +0000 (10:12 +0000)]
add positive_mod() utility function.

7 years agoMerge some operations into a single file
Sergey Sharybin [Thu, 5 Sep 2013 09:39:38 +0000 (09:39 +0000)]
Merge some operations into a single file

This merges all mix operations into a COM_MixBaseOperation
(naming could be better, but this way it corresponds to what's
going on with math operations.

Same was done with RenderLayers operations.

Overall this gives 20% of bf_compositor library compilation
time decrease. And it was rather annoying to have tens of
files with just a single-line constructors anyway.

TODO:
- All Convert operations could also be merged into a single file,
  but that would require adding some ConvertBaseOperation to
  reduce code duplication (ideally). Leaving it unchanged for now.

- Some operations' headers seems to be wrongly including MixOperation
  header, they need to include NodeOperation instead it seems.

  This is rather harmless, but would be nice to doublecheck on this
  eventually.

7 years agofix for error in bmesh api, selection setting needs to go via BM_elem_select_set...
Campbell Barton [Thu, 5 Sep 2013 08:38:06 +0000 (08:38 +0000)]
fix for error in bmesh api, selection setting needs to go via BM_elem_select_set else the total selected elements count isn't mantained.

7 years agoApply patch [#36601].
Nathan Letwory [Thu, 5 Sep 2013 06:58:27 +0000 (06:58 +0000)]
Apply patch [#36601].
Submitted by Saurabh Wankhade (sauraedron).

This patch adds camera shift and dof export and import in a Blender profile.

7 years agosimplify idprop reallocation with MEM_recallocN
Campbell Barton [Thu, 5 Sep 2013 04:26:08 +0000 (04:26 +0000)]
simplify idprop reallocation with MEM_recallocN

7 years agoBGE: Removing an unused rendertools argument from BL_ConvertActuators().
Mitchell Stokes [Thu, 5 Sep 2013 04:19:05 +0000 (04:19 +0000)]
BGE: Removing an unused rendertools argument from BL_ConvertActuators().

7 years agoFix broken GLSL shader after recent changes.
Brecht Van Lommel [Thu, 5 Sep 2013 00:37:10 +0000 (00:37 +0000)]
Fix broken GLSL shader after recent changes.

7 years agoFind missing files now keeps relative paths relative instead of turning them
Brecht Van Lommel [Thu, 5 Sep 2013 00:37:06 +0000 (00:37 +0000)]
Find missing files now keeps relative paths relative instead of turning them
into absolute paths.

7 years agoremove freebsd7 config. its fairly old and not maintained.
Campbell Barton [Wed, 4 Sep 2013 23:44:41 +0000 (23:44 +0000)]
remove freebsd7 config. its fairly old and not maintained.

7 years agofix [#36459] Official blenderplayer can not go fullscreen on Linux
Campbell Barton [Wed, 4 Sep 2013 23:43:25 +0000 (23:43 +0000)]
fix [#36459] Official blenderplayer can not go fullscreen on Linux
use modified patch from Alex Fraser (z0r)

7 years agoBGE: Removing the touch sensor and converting all touch sensors to collision sensors.
Mitchell Stokes [Wed, 4 Sep 2013 22:14:14 +0000 (22:14 +0000)]
BGE: Removing the touch sensor and converting all touch sensors to collision sensors.

7 years agoGhost_SDL: Fixing the DEF_CURSOR macro so it works in release builds.
Mitchell Stokes [Wed, 4 Sep 2013 21:57:14 +0000 (21:57 +0000)]
Ghost_SDL: Fixing the DEF_CURSOR macro so it works in release builds.

7 years agoremove error return value from BLI_bvhtree_insert, no callers were using.
Campbell Barton [Wed, 4 Sep 2013 20:33:50 +0000 (20:33 +0000)]
remove error return value from BLI_bvhtree_insert, no callers were using.
in the case of an error - assert, rather then fail silently since it wont be working as expected anyway.

7 years agouse strict flags for kdopbvh, also assert when invalid treetype is passed, rather...
Campbell Barton [Wed, 4 Sep 2013 20:03:33 +0000 (20:03 +0000)]
use strict flags for kdopbvh, also assert when invalid treetype is passed, rather then failing silently.

7 years agoCode cleanup / Cycles:
Thomas Dinges [Wed, 4 Sep 2013 16:24:58 +0000 (16:24 +0000)]
Code cleanup / Cycles:
* Removed unused member of the device_memory template.

7 years agoCode cleanup / Cycles:
Thomas Dinges [Wed, 4 Sep 2013 16:11:21 +0000 (16:11 +0000)]
Code cleanup / Cycles:
* Avoid special code, when Subsurface is enabled.
Ideally we should only use the function, and get rid of the extra duplicate, but this is slower on CUDA.

7 years agoCompile fix / Cycles:
Thomas Dinges [Wed, 4 Sep 2013 13:37:35 +0000 (13:37 +0000)]
Compile fix / Cycles:
* 'T' is now also used for the Subsurface closure.

7 years agoAdd new cursor types to data handling to account for Intuos 4 device (pen and eraser).
Nathan Letwory [Wed, 4 Sep 2013 12:10:02 +0000 (12:10 +0000)]
Add new cursor types to data handling to account for Intuos 4 device (pen and eraser).

Thanks to Ayden Polat for helping to find out the cursor type codes.

7 years agofix for building on msvc
Campbell Barton [Wed, 4 Sep 2013 06:50:15 +0000 (06:50 +0000)]
fix for building on msvc

7 years agobetter fix for r59794, register a gesture when the mouse goes outside the actionzone.
Campbell Barton [Wed, 4 Sep 2013 05:25:29 +0000 (05:25 +0000)]
better fix for r59794, register a gesture when the mouse goes outside the actionzone.

7 years agofix for window join action being interpreted as a split.
Campbell Barton [Wed, 4 Sep 2013 05:06:38 +0000 (05:06 +0000)]
fix for window join action being interpreted as a split.

The limit for dragging a gesture on an area corner was smaller then the area hot-spot,
so you could click on the right-most side of the bottom-left corner, drag left - pass the gesture threshold and still be in the same area. so a motion intended as a join would register as a split.
Happened more with high DPI values. fix by ensuring the drag limit is always higher then the hotspot.

7 years agofix for glitch splitting horizontally with a high dpi, could make areas smaller then...
Campbell Barton [Wed, 4 Sep 2013 03:52:25 +0000 (03:52 +0000)]
fix for glitch splitting horizontally with a high dpi, could make areas smaller then the header which pushed the original view out of the screen.

7 years agostyle cleanup
Campbell Barton [Wed, 4 Sep 2013 03:30:41 +0000 (03:30 +0000)]
style cleanup

7 years agotweaks to fly mode
Campbell Barton [Wed, 4 Sep 2013 01:49:20 +0000 (01:49 +0000)]
tweaks to fly mode
- rotating the view is faster.
- arrow keys work (was only wasd-rf before)
- when stationary wheel or +/- will set z direction (so mouse wheel always sets the fly axis back to z)

7 years agodebug option for modifier stack calculation USE_MODIFIER_VALIDATE,
Campbell Barton [Wed, 4 Sep 2013 01:29:34 +0000 (01:29 +0000)]
debug option for modifier stack calculation USE_MODIFIER_VALIDATE,
checks that every modifier gives a valid mesh (very slow) - so off by default even in debug mode.

7 years agoAdded better support for line styles in the Outliner.
Tamito Kajiyama [Wed, 4 Sep 2013 01:15:23 +0000 (01:15 +0000)]
Added better support for line styles in the Outliner.

7 years agoFix cycles CUDA/OpenCL build error after recent change.
Brecht Van Lommel [Wed, 4 Sep 2013 01:04:14 +0000 (01:04 +0000)]
Fix cycles CUDA/OpenCL build error after recent change.

7 years agoFix for redundant multiple animation data items of the same line style in DopeSheet.
Tamito Kajiyama [Wed, 4 Sep 2013 00:21:27 +0000 (00:21 +0000)]
Fix for redundant multiple animation data items of the same line style in DopeSheet.
This could happen when a line style is shared by multiple linesets within a scene.

7 years agoFix for missing filter button to visualize/hide animation data related to line styles.
Tamito Kajiyama [Tue, 3 Sep 2013 22:50:58 +0000 (22:50 +0000)]
Fix for missing filter button to visualize/hide animation data related to line styles.

7 years agoFix #36649: Drivers for Freestyle parameters in Render Layer panel don't appear in...
Tamito Kajiyama [Tue, 3 Sep 2013 22:49:30 +0000 (22:49 +0000)]
Fix #36649: Drivers for Freestyle parameters in Render Layer panel don't appear in Graph Editor.

The channels define code in ANIM_init_channel_typeinfo_data() was not synchronized with the
definition of channel types (eAnim_ChannelType) in ED_anim_api.h.

7 years agoFix a few issues reported by coverity scan.
Brecht Van Lommel [Tue, 3 Sep 2013 22:39:21 +0000 (22:39 +0000)]
Fix a few issues reported by coverity scan.

7 years agoCycles: add a sharpness input to the Cubic SSS falloff. When set to 1 this will
Brecht Van Lommel [Tue, 3 Sep 2013 22:39:17 +0000 (22:39 +0000)]
Cycles: add a sharpness input to the Cubic SSS falloff. When set to 1 this will
give a result more similar to the Compatible falloff option. The scale is x2
though to keep the perceived scatter radius roughly the same while changing the
sharpness. Difference with compatible will be mainly on non-flat geometry.

7 years agoreplace sqrt(dot()) with length functions.
Campbell Barton [Tue, 3 Sep 2013 22:32:03 +0000 (22:32 +0000)]
replace sqrt(dot()) with length functions.

7 years agosimplify length checks in DM_calc_auto_bump_scale
Campbell Barton [Tue, 3 Sep 2013 22:22:45 +0000 (22:22 +0000)]
simplify length checks in DM_calc_auto_bump_scale

7 years agofix for missing NULL check before calling BKE_sequencer_imbuf_to_sequencer_space().
Campbell Barton [Tue, 3 Sep 2013 21:54:17 +0000 (21:54 +0000)]
fix for missing NULL check before calling BKE_sequencer_imbuf_to_sequencer_space().

7 years agomove timeit macros into their own include, since they are only used for testing and...
Campbell Barton [Tue, 3 Sep 2013 21:22:43 +0000 (21:22 +0000)]
move timeit macros into their own include, since they are only used for testing and unrelated to PIL_time.h typical use.

7 years agoFix #36449: switching between render slots during render would leave some tiles
Brecht Van Lommel [Tue, 3 Sep 2013 20:59:24 +0000 (20:59 +0000)]
Fix #36449: switching between render slots during render would leave some tiles
black until the end of the render.

7 years agoRelated to #36532: show message in modifier when cloth point cache read fails,
Brecht Van Lommel [Tue, 3 Sep 2013 19:58:09 +0000 (19:58 +0000)]
Related to #36532: show message in modifier when cloth point cache read fails,
for example due to a subsurf modifier preceding a cloth modifier.

7 years agoFix #36194, Halo material on Layer 2 produces flares on layer 1. Halo flares were...
Lukas Toenne [Tue, 3 Sep 2013 18:59:52 +0000 (18:59 +0000)]
Fix #36194, Halo material on Layer 2 produces flares on layer 1. Halo flares were simply rendered on the first available halo-enabled layer. Now use the flare layers correctly.

7 years agoFix compile error with strict compile flags.
Brecht Van Lommel [Tue, 3 Sep 2013 18:01:31 +0000 (18:01 +0000)]
Fix compile error with strict compile flags.

7 years agoFix #36189: link group, delete instanced object, link group again would not
Brecht Van Lommel [Tue, 3 Sep 2013 17:24:07 +0000 (17:24 +0000)]
Fix #36189: link group, delete instanced object, link group again would not
create an instance. Now it creates the instance even if the group was already
linked into the .blend file.

7 years agoRelated to #36382: for linked object point caches, show a message that disk
Brecht Van Lommel [Tue, 3 Sep 2013 16:28:53 +0000 (16:28 +0000)]
Related to #36382: for linked object point caches, show a message that disk
cache must be used for baking.

7 years agoFix #36359: sequencer frame indicator not updating during animation render.
Brecht Van Lommel [Tue, 3 Sep 2013 16:02:55 +0000 (16:02 +0000)]
Fix #36359: sequencer frame indicator not updating during animation render.

7 years agoFixed crash on Visual Studio
Alexander Kuznetsov [Tue, 3 Sep 2013 15:30:07 +0000 (15:30 +0000)]
Fixed crash on Visual Studio

7 years agoFix a possible bug in knife detected by coverity.
Howard Trickey [Tue, 3 Sep 2013 11:37:47 +0000 (11:37 +0000)]
Fix a possible bug in knife detected by coverity.

A selection copy may have been passed a null pointer.
Also quieted a couple other complaints by coverity.

7 years agoFix #36587: Tracking markers fail to track near the left and right edge of a movie...
Sergey Sharybin [Tue, 3 Sep 2013 10:39:55 +0000 (10:39 +0000)]
Fix #36587: Tracking markers fail to track near the left and right edge of a movie clip.

Track margin checks needed some tweaks to deal better with the fact
that normalized values for the same pixel values might be different
across X and Y axis.

Also, non-centered patters are expected to be handling better now.

7 years agoFix #36643: Clip Editor: undesired Markers created "automatically" while I track...
Sergey Sharybin [Tue, 3 Sep 2013 09:18:08 +0000 (09:18 +0000)]
Fix #36643: Clip Editor: undesired Markers created "automatically" while I track my marker

Was a typo from recent commint from my own.

7 years agoColor managed color didn't work properly for float sequencer frames.
Sergey Sharybin [Tue, 3 Sep 2013 09:18:04 +0000 (09:18 +0000)]
Color managed color didn't work properly for float sequencer frames.

Like, it seems it never worked actually.

7 years agoBugfix: When deleting all keyframes from F-Curves, don't delete the F-Curve if
Joshua Leung [Tue, 3 Sep 2013 06:46:17 +0000 (06:46 +0000)]
Bugfix: When deleting all keyframes from F-Curves, don't delete the F-Curve if
it has a driver

7 years agodisplay angle in axis/angle buttons as degrees as with euler rotations.
Campbell Barton [Tue, 3 Sep 2013 06:27:03 +0000 (06:27 +0000)]
display angle in axis/angle buttons as degrees as with euler rotations.

7 years agoreorder BLI_strict_flags.h include so its not conflicting with stdio.h on apple.
Campbell Barton [Tue, 3 Sep 2013 04:39:12 +0000 (04:39 +0000)]
reorder BLI_strict_flags.h include so its not conflicting with stdio.h on apple.

7 years agoremove WINDOWS checks in cmake, this variable isn't defined on windows and checks...
Campbell Barton [Tue, 3 Sep 2013 03:04:44 +0000 (03:04 +0000)]
remove WINDOWS checks in cmake, this variable isn't defined on windows and checks weren't needed.
also remove redundant dot_v3v3 in shrinkwrap constraint.

7 years agoTweaks to New Driver creation behaviour
Joshua Leung [Tue, 3 Sep 2013 00:28:23 +0000 (00:28 +0000)]
Tweaks to New Driver creation behaviour

* 'Show Debug' now enabled for all newly created drivers. For most users, it is
useful to be able to see this to help figure out what's going on

* Removed failed experiment of creating new drivers with Generator FModifiers. I
had hoped that this would make it easier to create drivers that doubled or
halved the input values, but that has proved to not be the case, and instead
made harder for most users to set things up (as they'd have to remove these
first).

Now, when adding drivers from the UI, these get created with two keyframes (at
(0,0) and (1,1) for a 1-1 mapping), which can be easily tweaked normally.

However, for backwards compatability of scripts (notably rigify, and perhaps
some others out there), when creating drivers from scripts, they will still get
created with Generator FModifiers for now. We can review this situation again
for 2.7, but for now it seems ok.

7 years agoGraph Editor: Preserve active curve when using AKEY to toggle selection status
Joshua Leung [Mon, 2 Sep 2013 23:32:21 +0000 (23:32 +0000)]
Graph Editor: Preserve active curve when using AKEY to toggle selection status
of keyframe verts

Previously, every time you toggled the selection of all keyframes (using AKEY),
the active curve would get deselected and deactivated. However, this was a pain
when trying to tweak the shape of a particular curve, as doing this would cause
that curve to either fade into the background or into the jumble of other
curves.

7 years agoApply Scale for Empties
Joshua Leung [Mon, 2 Sep 2013 22:57:22 +0000 (22:57 +0000)]
Apply Scale for Empties

It is now possible to use "Apply Scale" for Empties. While Empties don't exactly
have any Object data attached to them which can be used for supporting "true"
apply scale (i.e. with non-uniform scaling), they do have a drawsize value which
controls how large the empties are drawn (before scaling). This works by taking
the scale factor on the most-scaled axis, and combines this with the existing
empty drawsize to maintain the correct dimensions on that axis at least.

Core Assumptions:
1) Most scaled empties have uniform scaling anyways (i.e. most empties used for
bone shapes)
2) On balance, preserving non-uniform scaling of empties after apply scale is
not as important as not being able to do it at all

7 years agoadd checks for bad args to RNA_def_property_ui_range & RNA_def_property_range and...
Campbell Barton [Mon, 2 Sep 2013 22:28:18 +0000 (22:28 +0000)]
add checks for bad args to RNA_def_property_ui_range & RNA_def_property_range and fix one instance where (min > max).
also remove redundant float/double conversion in ui_get_but_step_unit()

7 years agoallow negative offset for floor constraint.
Campbell Barton [Mon, 2 Sep 2013 22:24:44 +0000 (22:24 +0000)]
allow negative offset for floor constraint.
(since this isnt a projection, it just clamps on an axis this can be supported).

7 years agoAdd poll message when poll fails because of window missing from the context.
Campbell Barton [Mon, 2 Sep 2013 19:28:44 +0000 (19:28 +0000)]
Add poll message when poll fails because of window missing from the context.
This means calling invoke operators from python in states that dont support will give a meaningful error message.

also reduce context lookups when polling.