Thomas Dinges [Fri, 31 Aug 2012 00:21:56 +0000 (00:21 +0000)]
Cycles / OSL:
* Assume OSL libs in the libdir.
Brecht Van Lommel [Thu, 30 Aug 2012 17:55:21 +0000 (17:55 +0000)]
Fix #32418: color copy/paste between gamma and linear color buttons gave wrong
results, now it does the conversion.
Brecht Van Lommel [Thu, 30 Aug 2012 17:42:08 +0000 (17:42 +0000)]
Fix #32402: live unwrap memory leak, more noticeable if you have many UV's pinned.
Brecht Van Lommel [Thu, 30 Aug 2012 17:42:04 +0000 (17:42 +0000)]
Fix #32404: GLSL normal maps using float images were incorrectly getting
color managed.
Brecht Van Lommel [Thu, 30 Aug 2012 17:41:59 +0000 (17:41 +0000)]
Fix #32405: snapping in UV editor does not work if snapping in 3D view is set
to "snap to face" with "project individual ..." enabled.
Joshua Leung [Thu, 30 Aug 2012 15:06:13 +0000 (15:06 +0000)]
Bugfix [#32249] Groups in Dopesheet and Action editor don't get updated after
bone renaming
* Renaming F-Curves now checks if the corresponding F-Curve's group can also be
renamed accordingly.
* Changed the RNA updates for bone renaming so that they properly update the
channel lists
Brecht Van Lommel [Thu, 30 Aug 2012 14:18:14 +0000 (14:18 +0000)]
Possible fix for #32446: after undo in mesh edit mode, vertex/edge/face
selection syncing would not work correct, in this case deselecting an edge
would deselect the two vertices even if it wasn't needed.
Joshua Leung [Thu, 30 Aug 2012 14:09:50 +0000 (14:09 +0000)]
Silencing compiler warning (use of undefined value)
Joshua Leung [Thu, 30 Aug 2012 14:08:43 +0000 (14:08 +0000)]
Bugfix [#32437] Cannot define Alt-E keybinding in Text Editor window
WM_keymap_add_item(keymap, "TEXT_OT_insert", KM_TEXTINPUT, KM_ANY, KM_ANY, 0);
<--- this catch-all key map item at the end of the Text Editor keymap was
gobbling all the key events for user-defined hotkeys added after it in the
keymap. This includes all hotkeys for new operators defined by addons (via
keymap.keymap_items.new()).
As a slightly hacky workaround for this, I've added an extra parameter to
keymap_items.new() which will force the newly added item to get added to the
start of the key map items list (i.e. with top priority). To enable, simply add,
head=True to keymap_items.new() calls. For example:
keymap.keymap_items.new("MY_OP_my_operator_id", type='E', value='PRESS',
alt=True, head=True)
This should be useful for cases where there are similar catch-alls, where it is
necessary to insert our item before the offending catch-all (without knowing
which one it is). However, in general, it's recommended not to use this, unless
all other methods (inlcuding choosing another key combination if your first
choice doesn't work) fails.
Joshua Leung [Thu, 30 Aug 2012 13:18:33 +0000 (13:18 +0000)]
Style cleanup - adding some braces around some multi-line statements (used after
if/else if/for)
Joshua Leung [Thu, 30 Aug 2012 13:11:53 +0000 (13:11 +0000)]
Style cleanup - make scope and type of "pchanw" clearer (and define it separate
from pointer references)
Joshua Leung [Thu, 30 Aug 2012 12:59:46 +0000 (12:59 +0000)]
Bugfix [#32440] Segmentation fault when moving bone in pose mode when Ghost
Around Frame is enabled
It turns out that the final "rebuild pose" at the end of each ghost drawing step
was at fault here, as it resulted in bones referring to a different set of
constraints after each ghost drawing step. However, most of the time, these new
references pointed to non-existent locations, causing the segfaults.
To fix this, I've removed this last rebuild step, which seems to work fine (no
major problems seem to arise from this). Also, to ensure that the other object
parameters have not changed (as a result of the reevaluation that needs to go
on), we now evaluate the object once more after all the ghost drawing (but
before final restore) so that object parameters (and potentially sub-data) are
all restored to their original values.
An upside of removing the final rebuild step is that "In Range" and "On
Keyframe" ghosting options now work with proxies again. Previously, trying to
move bones (but without autokey enabled) would mean that bones would snap back
to their unkeyed positions.
Dalai Felinto [Thu, 30 Aug 2012 06:31:02 +0000 (06:31 +0000)]
clamp for Mix node
the implementation was following my early commit for Math node
I haven't had a chance to run those through Brecht, but would like to do eventually. (they work fine though)
Campbell Barton [Wed, 29 Aug 2012 23:02:16 +0000 (23:02 +0000)]
fix [#32433] Grease Pencil Layer color & Color Management
Dalai Felinto [Wed, 29 Aug 2012 17:30:14 +0000 (17:30 +0000)]
Cycles bugfix: [32431] Cycles Math Node : Clamp does not work
the OSL solution is slightly different than the svm, but I think it's fine.
thanks Lukas Toenne for helping with a fix on the original patch
Sergey Sharybin [Wed, 29 Aug 2012 12:47:42 +0000 (12:47 +0000)]
Fix wrong user counter in world node trees
World is being localized without increasing ID users, so no need
to decrease ID users on localized world free.
Campbell Barton [Wed, 29 Aug 2012 10:32:38 +0000 (10:32 +0000)]
code cleanup: add utility function BLI_path_is_rel()
Campbell Barton [Wed, 29 Aug 2012 09:51:38 +0000 (09:51 +0000)]
code cleanup: replace term 'alpha' with '64' in makesdna, this was historic that dec-alpha was the first 64bit system blender was ported for, but now its not helpful to call it this way.
Campbell Barton [Wed, 29 Aug 2012 08:17:38 +0000 (08:17 +0000)]
new image operator now allows color grid (before was only grid on/off)
Campbell Barton [Wed, 29 Aug 2012 07:58:36 +0000 (07:58 +0000)]
texture curves were not initialized (causing crash), own regression from moving curve initialization outside evaluation.
Campbell Barton [Wed, 29 Aug 2012 07:07:18 +0000 (07:07 +0000)]
code cleanup: move static mball vars into their own struct, wasnt very clear from reading code what was defined in the function.
Jens Verwiebe [Tue, 28 Aug 2012 13:43:20 +0000 (13:43 +0000)]
missing linebreak when multithreaded gl meesage is printed to log
Campbell Barton [Tue, 28 Aug 2012 11:27:46 +0000 (11:27 +0000)]
fix bug in mathutils.geometry.intersect_point_line() where 4D vectors were treated as 2D.
also change behavior to return a 2d vector when all args are 2D.
Jeroen Bakker [Tue, 28 Aug 2012 10:41:37 +0000 (10:41 +0000)]
cleanup pixel sampler code (pixel interpolations in compositor)
Campbell Barton [Tue, 28 Aug 2012 10:02:10 +0000 (10:02 +0000)]
fix for own crash caused by curve refactor, now curve tables are initialized once when the tree is initialized.
thanks to Antony Riakiotakis for providing a fix, though this works a little different.
Campbell Barton [Tue, 28 Aug 2012 01:50:13 +0000 (01:50 +0000)]
code cleanup: use switch for metaball type checks and minor style cleanup
Bastien Montagne [Mon, 27 Aug 2012 21:01:21 +0000 (21:01 +0000)]
Adding despeckle as “blender” word...
Bastien Montagne [Mon, 27 Aug 2012 20:58:43 +0000 (20:58 +0000)]
Picky spell-checking...
Campbell Barton [Mon, 27 Aug 2012 13:40:19 +0000 (13:40 +0000)]
support unary positive operators for vectors (same as numpy), so you can do 'vector_a = +vector_b', this makes a copy.
Sergey Sharybin [Mon, 27 Aug 2012 11:59:26 +0000 (11:59 +0000)]
File format fixes
- Add check for header field in BMP decoder. This is needed to distinguish
whether file is indeed BMP image or not.
Without this check Blender could easily crash when it'll try to load
non-BMP image.
Tested with files from own HDD, but all of them has got BM header field,
more testing would be welcome.
- Made Jpeg2000 aware of J2K codec. Originally was needed to verify .j2c
files here in the studio, but having support of this codec would be
nice in general.
Currently supports only reading in this codec, writing would still
using jp2 codec.
Campbell Barton [Mon, 27 Aug 2012 09:44:56 +0000 (09:44 +0000)]
Alternate mask spline feather offset calculation method: now there are 2 [Even | Smooth]
- Even preserves thickness but can give unsightly loops
- Smooth gives nicer shape but can give unsightly feather/spline mismatch for 'S' shapes created by beziers.
This is an example where smooth works much nicer.
http://www.graphicall.org/ftp/ideasman42/mask_compare.png
Sergey Sharybin [Mon, 27 Aug 2012 09:15:48 +0000 (09:15 +0000)]
Fix #31853: Marker deletion invokes strip deletion
Sergey Sharybin [Mon, 27 Aug 2012 09:01:36 +0000 (09:01 +0000)]
Sequencer: proper cache invalidation when deleting sequences
Solves issue with effects not being recalculated when deleting their input.
Sergey Sharybin [Mon, 27 Aug 2012 09:01:35 +0000 (09:01 +0000)]
Style cleanup: spaces in sequencer scopes
Sergey Sharybin [Mon, 27 Aug 2012 09:01:34 +0000 (09:01 +0000)]
Sequencer: fix crash of histogram view for float images
Overexposured pixels lead to wrong memory access in histogram making function
Campbell Barton [Mon, 27 Aug 2012 08:23:51 +0000 (08:23 +0000)]
remove incorrect comment, add in useful one.
Campbell Barton [Mon, 27 Aug 2012 06:55:33 +0000 (06:55 +0000)]
fix [#32417] Grease Pencil color change + DopeSheet 'Summary' = crash
summery wasn't checking fcurve types.
Mitchell Stokes [Sun, 26 Aug 2012 23:17:50 +0000 (23:17 +0000)]
BGE: Make sure lib loaded cameras are added to the active scene's camera list.
Campbell Barton [Sun, 26 Aug 2012 20:22:42 +0000 (20:22 +0000)]
ensure there are always the same number of feather points and non feather points when drawing.
Sergey Sharybin [Sun, 26 Aug 2012 19:36:56 +0000 (19:36 +0000)]
Sequencer: typo fix
Campbell Barton [Sun, 26 Aug 2012 18:21:34 +0000 (18:21 +0000)]
code cleanup: quiet warning for dead assignment.
Campbell Barton [Sun, 26 Aug 2012 18:09:01 +0000 (18:09 +0000)]
code cleanup: remove dead assignments, gave mask vars clearer names & moved some mask evaluation funcs into mask_evaluate.c
Sergey Sharybin [Sun, 26 Aug 2012 16:41:03 +0000 (16:41 +0000)]
Fix zooming in/out preview in sequencer
It was a regression since disabling Y-axis zooming in sequencer.
Now check region type and allow all kind of zooming for preview
region.
Campbell Barton [Sun, 26 Aug 2012 13:41:40 +0000 (13:41 +0000)]
code cleanup: split out mask spline evaluation into its own file.
Campbell Barton [Sun, 26 Aug 2012 12:21:25 +0000 (12:21 +0000)]
fix for build error without ffmpeg
Campbell Barton [Sun, 26 Aug 2012 11:35:43 +0000 (11:35 +0000)]
style cleanup: whitespace
Sergey Sharybin [Sun, 26 Aug 2012 11:01:18 +0000 (11:01 +0000)]
Style cleanup: whitespace
Sergey Sharybin [Sun, 26 Aug 2012 11:01:14 +0000 (11:01 +0000)]
Some FFmpeg changes
- Make FFmpeg initialization called from creator, not from functions
which requires FFmpeg. Makes it easier to follow when initialization
should happen.
- Enable DNxHD codec. It was commented a while ago due to some strange
behavior on some platforms. Re-tested it on Linux and Windows and
it seemd to be working quite nice. Would let it be tested further,
if it wouldn't be stable enough, easy to comment it again.
- Make non-error messages from writeffmpeg.c printed only if ffmpeg
debug argument was passed to blender. Reduces console pollution
with messages which are not useful for general troubleshooting.
Error messages would still be printed to the console.
- Show FFmpeg error message when video stream failed to allocate.
makes it easier to understand what exactly is wrong from Blender
interface, no need to restart blender with FFmpeg debug flag and
check for console messages.
Used custom log callback for this which stores last error message
in static variable. This is not thread safe, but with current
design FFmpeg routines could not be called form several threads
anyway, so think it's fine solution/
Joshua Leung [Sun, 26 Aug 2012 08:03:31 +0000 (08:03 +0000)]
Bugfix [#32410] Create New Group (CTRL+G) tried to activate even when nothing is
selected
Some group operators were missing poll() callbacks
Joshua Leung [Sun, 26 Aug 2012 07:27:51 +0000 (07:27 +0000)]
Compiling fix for Windows+Mingw: "Ambiguous" use of IStream
Campbell Barton [Sat, 25 Aug 2012 20:49:51 +0000 (20:49 +0000)]
code cleanup: comments and some minor edits to interface code.
Campbell Barton [Sat, 25 Aug 2012 20:16:08 +0000 (20:16 +0000)]
make SWAP macros typesafe using CHECK_TYPE macro.
Its unlikely you want to do short -> int, int -> float etc, conversion during swapping (if its needed we could have a non type checking macro).
Double that the optimized assembler outbut using SWAP() remains unchanged from before.
This exposed quite a few places where redundant type conversion was going on.
Also remove curve.c's swapdata() and replace its use with swap_v3_v3()
Campbell Barton [Sat, 25 Aug 2012 19:43:15 +0000 (19:43 +0000)]
fix for type mismatch with SWAP() macro.
Campbell Barton [Sat, 25 Aug 2012 17:58:49 +0000 (17:58 +0000)]
code cleanup: vec_to_quat
Campbell Barton [Sat, 25 Aug 2012 17:42:15 +0000 (17:42 +0000)]
add conjugate_qt_qt(), also some code cleanup and use const for 'rotOrders' var in math_rotation.c
Campbell Barton [Sat, 25 Aug 2012 15:00:41 +0000 (15:00 +0000)]
add manual lookup to addon tempalte
Campbell Barton [Sat, 25 Aug 2012 14:18:54 +0000 (14:18 +0000)]
better handle sizes by default for mask mode, now ignore image width/height
Campbell Barton [Sat, 25 Aug 2012 14:07:51 +0000 (14:07 +0000)]
ability to register your own online manual callbacks - useful for 3rd party addon developers, who may want to link to their own URL's.
Campbell Barton [Sat, 25 Aug 2012 12:55:14 +0000 (12:55 +0000)]
minor code cleanup
Campbell Barton [Sat, 25 Aug 2012 12:37:15 +0000 (12:37 +0000)]
baking actions with euler rotations now uses compatible eulers for pose and object bakes.
Campbell Barton [Sat, 25 Aug 2012 12:32:22 +0000 (12:32 +0000)]
don't use a while loop when in compatible_eul(). this is a low level rotation function called in many places so better to avoid iterations.
checked this function against the previous method using random rotation inputs and compared results, while this isnt exactly the same the results are very close and acceptable in both cases, also checked baking actions that the resulting FCurves are good and give matching rotations.
Campbell Barton [Sat, 25 Aug 2012 11:54:58 +0000 (11:54 +0000)]
use set's when checking against multiple types.
Campbell Barton [Fri, 24 Aug 2012 23:22:34 +0000 (23:22 +0000)]
style cleanup: also spelling
Campbell Barton [Fri, 24 Aug 2012 17:58:49 +0000 (17:58 +0000)]
mesh bridge tool now leaves bridge faces selected.
Campbell Barton [Fri, 24 Aug 2012 17:01:35 +0000 (17:01 +0000)]
alternate fix for bug [#32395],
now customdata is interpolated into a temp variable and applied at the end of each layer interpolation function.
So this now works for CDDM customdata interpolation and avoids duplicating the customdata when the source and destination overlap.
Campbell Barton [Fri, 24 Aug 2012 16:55:25 +0000 (16:55 +0000)]
fix for merged bridge crashing on closed loops (own bug in recent commit)
Sergey Sharybin [Fri, 24 Aug 2012 16:09:48 +0000 (16:09 +0000)]
Sequencer: reshuffle overlapping strips on cancel trasnform
It was possible to create overlapped strips by duplicating and
cancelling transform, now it sohuld be handled properly.
Campbell Barton [Fri, 24 Aug 2012 14:54:14 +0000 (14:54 +0000)]
fix [#32357] Subdivide fails on newly created edge
problem since bmesh merge, new edges were not selected.
Brecht Van Lommel [Fri, 24 Aug 2012 14:04:21 +0000 (14:04 +0000)]
Fix for build error on some platforms, seems ImfStdIO.h is not included with
the other headers everywhere.
Campbell Barton [Fri, 24 Aug 2012 14:00:39 +0000 (14:00 +0000)]
use the zoom level to set the size for new mask point handle sizes (artist request - handles were annoyingly bug when zoomed in)
Brecht Van Lommel [Fri, 24 Aug 2012 13:29:48 +0000 (13:29 +0000)]
Fix #32198: UV unwrap of half a UV sphere would not give a perfect sphere as a
result. This wasn't really guaranteed anyway, because of numerical precision and
possible asymmetry in the triangulation, but we can do a bit better.
Now we bias the choice of how to split a quad into two triangles slightly
towards one of two possibilities, so that in case they are equal, floating point
errors do not decide the direction and symmetry is preserved.
Campbell Barton [Fri, 24 Aug 2012 13:22:05 +0000 (13:22 +0000)]
stop socket hiding from causing compositor recalculation.
Campbell Barton [Fri, 24 Aug 2012 12:48:56 +0000 (12:48 +0000)]
fix for bug in variable size blur compositor node - using incorrect Y blur operations and uninitialized memory was causing random blur results.
Brecht Van Lommel [Fri, 24 Aug 2012 12:10:38 +0000 (12:10 +0000)]
Code cleanup: remove some unused code.
Brecht Van Lommel [Fri, 24 Aug 2012 12:10:35 +0000 (12:10 +0000)]
Fix second part #32377: saving/loading exr files to file paths with non-ascii
characters should now work on Windows.
Sergey Sharybin [Fri, 24 Aug 2012 09:44:46 +0000 (09:44 +0000)]
Sequencer: allow negative bright/contrast
Sergey Sharybin [Fri, 24 Aug 2012 09:07:04 +0000 (09:07 +0000)]
Sequencer: bright/contrast modifier
Behaves in exactly the same way as bright/contrast compositor node.
Some code could be de-duplicated, like contrast formula and mask
influence, but wouldn't call it stopper for commit since it's
already needed for grading Mango.
Campbell Barton [Fri, 24 Aug 2012 08:17:53 +0000 (08:17 +0000)]
correct assert for customdata overlap, also quiet `uninitialized` warning in transform.
Nicholas Rishel [Fri, 24 Aug 2012 05:14:16 +0000 (05:14 +0000)]
Gave the spacetype time region header malloc a more descriptive text, consistent with other header mallocs.
Nicholas Rishel [Fri, 24 Aug 2012 05:12:05 +0000 (05:12 +0000)]
Code cleanup: comment referenced an outdated file path + spelling error
Campbell Barton [Thu, 23 Aug 2012 18:25:45 +0000 (18:25 +0000)]
code cleanup: rename BLI_in_rctf() --> BLI_rctf_isect_pt(), to conform with our naming convention.
Dalai Felinto [Thu, 23 Aug 2012 17:37:04 +0000 (17:37 +0000)]
bugfix for [32368] Added controllers don't count over 10
Blender original code (NaN likely) was relying on strcmp to sort the list of controllers.
As it happens, in strcmp 10 < 2, thus the list was never in the right order.
The curious thing is that in 2.49 it worked, but I think it did because the make_unique_prop_names function was called twice. Strange ;)
The solution is to use blender BLI_natstrcmp to do natural sorting
Campbell Barton [Thu, 23 Aug 2012 17:16:11 +0000 (17:16 +0000)]
fix [#32395] BMesh data interpolation feedback loop
Campbell Barton [Thu, 23 Aug 2012 16:17:47 +0000 (16:17 +0000)]
style cleanup: indentation, also quiet double promotion warnings for despeckle node.
Sergey Sharybin [Thu, 23 Aug 2012 16:14:52 +0000 (16:14 +0000)]
Sequencer: display color sample information when mouse is holded down
Behaves in exactly the same way as image editor's color sampling.
Would be nice to display color managed color too, but that's for tomato branch.
Campbell Barton [Thu, 23 Aug 2012 14:49:20 +0000 (14:49 +0000)]
sequencer zooms horizontal only from mouse wheel and plus buttons.
Brecht Van Lommel [Thu, 23 Aug 2012 13:54:30 +0000 (13:54 +0000)]
Fix #32387: some mesh modifications breaking other shape keys.
The vertex shapekey index is now no longer copied, and propagation of offsets
in the basis to other shapekeys is disabled if new vertices were added. The
reason being that the propagation will only be done for the old vertices leaving
the new ones behind, and so doing e.g. subdivide + translate on the basis would
create a mess on other shape keys.
Sergey Sharybin [Thu, 23 Aug 2012 13:32:54 +0000 (13:32 +0000)]
Sequencer: fix for color balance keyframing and modifier renaming
Brecht Van Lommel [Thu, 23 Aug 2012 11:18:31 +0000 (11:18 +0000)]
Fix #32388: bpy.ops.wm.path_open() not working with path with spaces on Windows.
Brecht Van Lommel [Thu, 23 Aug 2012 10:56:16 +0000 (10:56 +0000)]
Fix #32391: new remove doubles "unselected" option was enabled by default, don't
think this was intentional.
Brecht Van Lommel [Thu, 23 Aug 2012 10:56:14 +0000 (10:56 +0000)]
Fix #32389: scons was compiling without iksolver and only itasc since a few days,
which gave performance issues.
Campbell Barton [Thu, 23 Aug 2012 09:54:15 +0000 (09:54 +0000)]
code cleanup: use const weights for customdata interpolation functions
Mitchell Stokes [Thu, 23 Aug 2012 09:24:59 +0000 (09:24 +0000)]
BGE: When creating a controller by linking a sensor and actuator, the created controller will always be an and controller instead of the last controller type added.
Campbell Barton [Thu, 23 Aug 2012 09:20:15 +0000 (09:20 +0000)]
fix own error in BM_data_interp_from_edges() from recent commit.
Sergey Sharybin [Thu, 23 Aug 2012 09:04:30 +0000 (09:04 +0000)]
Sequencer: move up/down operators for modifiers
Campbell Barton [Thu, 23 Aug 2012 08:10:45 +0000 (08:10 +0000)]
alt page up/down now jump between strip center frames (since often the middle frame is a better sample to check).
Campbell Barton [Thu, 23 Aug 2012 07:39:51 +0000 (07:39 +0000)]
de-duplicate sequencer jump operator, use next/prev option instead.
Campbell Barton [Thu, 23 Aug 2012 07:10:48 +0000 (07:10 +0000)]
style cleanup
Campbell Barton [Thu, 23 Aug 2012 07:02:11 +0000 (07:02 +0000)]
set defaults for de-speckle
Campbell Barton [Thu, 23 Aug 2012 06:48:01 +0000 (06:48 +0000)]
despeckle composite node