Brecht Van Lommel [Thu, 10 Jan 2013 19:28:16 +0000 (19:28 +0000)]
Fix #33824: cycles non-progressive render mode did not do correct path termination,
leading to too much noise when the min bounce setting was lower than max bounce.
Bastien Montagne [Thu, 10 Jan 2013 18:54:01 +0000 (18:54 +0000)]
Fix [#33825] Menu list widget does not work on UV and Vertex Colors
Own stupid mistake in recent UI list refactor - those two lists are a good example where a non-void 'id' is necessary, as they use the same class in the same window... Else, the same object is shared by the two, which can't work! :)
Campbell Barton [Thu, 10 Jan 2013 18:34:09 +0000 (18:34 +0000)]
speedup for DM_to_bmesh_ex(), no need to check vertex order when converting faces since the loops are already in order, will speedup modifiers that use bmesh.
Campbell Barton [Thu, 10 Jan 2013 18:31:14 +0000 (18:31 +0000)]
minor speedup for DM_to_bmesh_ex(), only duplicate the edge array when the derivedMesh type isn't a CDDM.
Ton Roosendaal [Thu, 10 Jan 2013 18:20:29 +0000 (18:20 +0000)]
Depsgraph hack feature - experimental
Many depsgraph failures are because some data in the graph is being
recalculated too early (or not at all).
Since we better support animators with working renders, here's a hack to
allow manual additional updates on frame changes.
In Property Editor, Object, Panel "Relations Extra" you now have two
buttons:
- Extra Object Update
- Extra Data Update
This will do an extra update of object and/or its data ONLY on frame changes.
Update happens as last.
Tested on files collected in Wiki todo, several cases now work OK, especially
the lags on updates.
Sergey Sharybin [Thu, 10 Jan 2013 18:11:56 +0000 (18:11 +0000)]
Correction to do_versions() in 53676
Affect on curve radius only if offset/extrude was used,
otherwise radius could have been used for other things
(like controlling hair) which will likely break
compatibility.
Reported by Tube project guys.
Brecht Van Lommel [Thu, 10 Jan 2013 17:46:23 +0000 (17:46 +0000)]
Fix build error on Mac, bool needs an #include.
Brecht Van Lommel [Thu, 10 Jan 2013 17:37:26 +0000 (17:37 +0000)]
Fix #33821: cycles background intensity fix had uninitialized memory usage
for area lights.
Brecht Van Lommel [Thu, 10 Jan 2013 17:37:17 +0000 (17:37 +0000)]
Fix #33752: UV Orco coordinates were wrong for Cycles (and other external
render engines). Replaced generating orco_index by filling the UV loop data
directly which is easier and all that needed to be done anyway.
Campbell Barton [Thu, 10 Jan 2013 16:37:48 +0000 (16:37 +0000)]
add a segfault handler that writes out the info log into a crash file alongside the blend file.
Sergey Sharybin [Thu, 10 Jan 2013 16:11:12 +0000 (16:11 +0000)]
Fix #33822: Compositor gets stuck if a sequencer window is also visible
Issue was caused by a fix for rendered sequencer preview mode, which
will likely conflict with compositor job. Made it so compositor job
will be killed when sequencer uses rendered preview.
Campbell Barton [Thu, 10 Jan 2013 15:22:19 +0000 (15:22 +0000)]
pyapi internal api code: check for == -1 rather then < 0, for known error returns.
Campbell Barton [Thu, 10 Jan 2013 14:38:30 +0000 (14:38 +0000)]
simple speedup for view3d numeric panel - dont loop on verts or edges if none are selected.
Lukas Toenne [Thu, 10 Jan 2013 14:36:08 +0000 (14:36 +0000)]
Another fix for bpy.props getters/setters: PyC_AsArray does a refcount decrement internally on errors, need to skip Py_DECREF in that case to avoid negative refcounts.
Campbell Barton [Thu, 10 Jan 2013 14:28:06 +0000 (14:28 +0000)]
fix for own mistake in recent changes to scanfill, bmo_triangle_fill_exec() (alt+f), was missing BLI_SCANFILL_CALC_HOLES argument.
reported as [#33819]
Campbell Barton [Thu, 10 Jan 2013 13:59:52 +0000 (13:59 +0000)]
adding vertex color layer in mesh editmode would overwrite UV's, strange nobody reported this since its been there since 2.63.
Brecht Van Lommel [Thu, 10 Jan 2013 12:35:09 +0000 (12:35 +0000)]
Fix too bright result in background multiple importance after recent changes.
Lukas Toenne [Thu, 10 Jan 2013 12:32:09 +0000 (12:32 +0000)]
Fix for bpy.props getter/setter callbacks. These were missing a valid GIL state when being called outside the UI context.
Campbell Barton [Thu, 10 Jan 2013 12:07:01 +0000 (12:07 +0000)]
editmesh texface drawing, reuse customdata offset rather then looking up each UV and vertex color, gives overall ~9.5% drawing speedup in my tests.
was also doing NULL checks on UV's which are never NULL in this case.
Ton Roosendaal [Thu, 10 Jan 2013 11:08:38 +0000 (11:08 +0000)]
Bug fix 33732
Modal operators with hardcoded (in C) event handling now don't get
double clicks anymore. For modal keymaps things work OK.
This fixes number input typing for CTRL+B bevel, for example.
Sergey Sharybin [Thu, 10 Jan 2013 10:10:34 +0000 (10:10 +0000)]
Fix #33816: property not found: World.use_textures
Issue was caused bu svn rev53355 and now logic seems to mimic
behavior before that change.
Sergey Sharybin [Thu, 10 Jan 2013 09:21:12 +0000 (09:21 +0000)]
Stripping and packaging shall happen inside of chroot as well
Sergey Sharybin [Thu, 10 Jan 2013 08:55:44 +0000 (08:55 +0000)]
Further tweaks to buildbot
- BF_BITNESS should be passed as a command line argument
- Made it so CUDA binaries and OSL compiled scripts would
be installed regardless WITH_BF_PYTHON (which seems to
be quite obvious)
- Disable overwrite install, so CUDA kernels installed by
it's build target will be preserved when building blender
itself.
Campbell Barton [Thu, 10 Jan 2013 08:16:19 +0000 (08:16 +0000)]
bmesh todo: uv stretch area draw mode wasn't calculating ngon area - added area_poly_v2().
Sergey Sharybin [Thu, 10 Jan 2013 08:01:19 +0000 (08:01 +0000)]
Switch linux buildbot to compile all cuda kernels in 64bit environment
Solves memory limit issues when building sm_13 for 32bit platform.
Some further refinement of patch could be needed.
Sergey Sharybin [Thu, 10 Jan 2013 08:01:07 +0000 (08:01 +0000)]
Added new scons target: cudakernels
It's intended to perform compilation of CUDA kernels only,
without doing anything with other sources/resources and
main purpose of this target is to be able to compile cuda
kernels in completely different environment than the rest
of blender was compiled.
This is needed for linux build environment, where sm_13
compilation fails dramatically in 32bit chroot but could
be compiled in 64bit environment.
Campbell Barton [Thu, 10 Jan 2013 05:50:21 +0000 (05:50 +0000)]
don't call BKE_mesh_tessface_ensure() from DM_to_mesh(), caller must do this instead.
Campbell Barton [Thu, 10 Jan 2013 05:35:10 +0000 (05:35 +0000)]
transforming verts was getting the bevel weight for each vertex even if bevel-weight wasnt being transformed.
Campbell Barton [Thu, 10 Jan 2013 04:46:51 +0000 (04:46 +0000)]
fix for editmesh calculating normals twice when using the number-buttons.
Campbell Barton [Thu, 10 Jan 2013 04:43:31 +0000 (04:43 +0000)]
don't store bevel weights or edge crease customdata layers in editmode unless they are needed.
configurable in 'Geometry Data' panel, will be added when running crease edges transform for example.
Brecht Van Lommel [Wed, 9 Jan 2013 22:06:03 +0000 (22:06 +0000)]
Cycles: different fix for perlin noise generating nan values, now check for
the result to be finite afterwards which is a bit faster and works for OSL
too without needing to slow down OSL itself.
Brecht Van Lommel [Wed, 9 Jan 2013 21:09:20 +0000 (21:09 +0000)]
Cycles: multiple importance sampling for lamps, which helps reduce noise for
big lamps and sharp glossy reflections. This was already supported for mesh
lights and the background, so lamps should do it too.
This is not for free and it's a bit slower than I hoped even though there is
no extra BVH ray intersection. I'll try to optimize it more later.
* Area lights look a bit different now, they had the wrong shape before.
* Also fixes a sampling issue in the non-progressive integrator.
* Only enabled for the CPU, will test on the GPU later.
* An option to disable this will be added for situations where it does not help.
Same time comparison before/after:
http://www.pasteall.org/pic/show.php?id=43313
http://www.pasteall.org/pic/show.php?id=43314
Campbell Barton [Wed, 9 Jan 2013 18:20:11 +0000 (18:20 +0000)]
speedup for editmesh getVert and getEdge, were doing 2x customdata layer lookups for crease and bevel weight, also make use of the existing meshdata array for lookups.
Lukas Toenne [Wed, 9 Jan 2013 16:15:06 +0000 (16:15 +0000)]
Small fix for r53685: Allow setting NULL/None as parent, i.e. detach a node from a frame.
Lukas Toenne [Wed, 9 Jan 2013 16:07:42 +0000 (16:07 +0000)]
Make the node.parent property editable in RNA, so frame hierarchy can be changed by scripts without resorting to operator hacks.
Performs sanity checks internally to make sure that
a) Only frames are used as parents. In future other nodes may be used for parenting, that will require more sophisticated poll functions.
b) Avoid infinite recursion. If the supposed parent is already attached to a frame node the parent assignment will be ignored.
Ton Roosendaal [Wed, 9 Jan 2013 15:58:34 +0000 (15:58 +0000)]
Usability fix:
Blender's data link button (typically with menu and searching options)
now has a X icon to clear its contents.
Before you had to click, delete text, enter.
For example:
- Object Parent
- Modifier objects or vertexgroups
This fix saves each user 100 clicks per day, with 100k users
that's 3 billion clicks per year!
Brecht Van Lommel [Wed, 9 Jan 2013 15:39:26 +0000 (15:39 +0000)]
Fix #33815: blender internal crash rendering material pass with strands.
Patch from Sergey with modifications.
Sergey Sharybin [Wed, 9 Jan 2013 13:46:59 +0000 (13:46 +0000)]
Remove glibc27 from buildbot scripts
Campbell Barton [Wed, 9 Jan 2013 13:25:46 +0000 (13:25 +0000)]
partial fix for [#32581] Mesh properties API does not allow for zeros in byte array
bmesh access allows zero bytes, support still needs adding via RNA.
Campbell Barton [Wed, 9 Jan 2013 13:15:23 +0000 (13:15 +0000)]
remove uiPanelClearType(), instead redraw all windows when registering/unregistering.
Campbell Barton [Wed, 9 Jan 2013 12:26:36 +0000 (12:26 +0000)]
fix [#33808] custom property write RNA_pointer_get: xxx.xxxx not found in the console
message was harmless but annoying.
Ton Roosendaal [Wed, 9 Jan 2013 11:25:16 +0000 (11:25 +0000)]
Mac HiDPI support:
With the good help from googling, here's code that compiles for
10.6 natively. Will check on 10.7 and 10.8 right after commit.
Campbell Barton [Wed, 9 Jan 2013 10:18:05 +0000 (10:18 +0000)]
reduce the alpha of console selection (text was too hard to read)
Sergey Sharybin [Wed, 9 Jan 2013 10:15:12 +0000 (10:15 +0000)]
Fix #33796: Curve radius makes affect only in full fill mode
Campbell Barton [Wed, 9 Jan 2013 06:00:33 +0000 (06:00 +0000)]
avoid having dangling panel pointers in the interface, unregistering addons could leave the interface pointing to freed memory.
Campbell Barton [Wed, 9 Jan 2013 05:32:15 +0000 (05:32 +0000)]
add RNA_def_struct_ptr(...) to use for runtime struct registration, saves over 2000 string lookups on startup and gives overall ~10% speedup for starting blender on my system.
Campbell Barton [Wed, 9 Jan 2013 04:17:53 +0000 (04:17 +0000)]
fix [#33806] weight paint crash and computer freeze when painting
clear weight paint runtime data on file-load.
Campbell Barton [Wed, 9 Jan 2013 03:30:15 +0000 (03:30 +0000)]
style cleanup
Campbell Barton [Wed, 9 Jan 2013 03:26:39 +0000 (03:26 +0000)]
drawing texture icon was multiplying the red channel by alpha, this is almost certainly a typo/accident.
Sergey Sharybin [Tue, 8 Jan 2013 20:55:07 +0000 (20:55 +0000)]
Style cleanup in OCIO area
Also fixed typo in function name.
Sergey Sharybin [Tue, 8 Jan 2013 20:50:26 +0000 (20:50 +0000)]
Fix #33809: Wrong exposure affect after alpha premul changes
Exposure shouldn't affect on alpha channel, only RGB shall be
affected by exposure.
Was a regression since recent alpha premul pipeline changes.
Campbell Barton [Tue, 8 Jan 2013 17:53:38 +0000 (17:53 +0000)]
fix [#33646] Deleting edge loops creates holes in uv map
Campbell Barton [Tue, 8 Jan 2013 17:40:36 +0000 (17:40 +0000)]
fix for select flushing in face mode for mesh 'Select More'
Campbell Barton [Tue, 8 Jan 2013 17:30:06 +0000 (17:30 +0000)]
fix [#33784] Select Linked All + Seams fails to select seam bounded area
was incorrectly flushing vertex selection.
Ton Roosendaal [Tue, 8 Jan 2013 17:27:11 +0000 (17:27 +0000)]
Macbook HiDPI support: reshuffled code to make it compile for 10.6 and work
in 10.7 and later. OS X Gurus might check though :)
Sergey Sharybin [Tue, 8 Jan 2013 16:56:04 +0000 (16:56 +0000)]
Fix for recent tile_order feature not working properly with persistent data
Ton Roosendaal [Tue, 8 Jan 2013 16:54:26 +0000 (16:54 +0000)]
Added trackpad (and magic mouse) support to control speed in Fly Mode in 3d.
Campbell Barton [Tue, 8 Jan 2013 16:39:36 +0000 (16:39 +0000)]
fix [#33797] decimate modifier bug on uv-coordinates when mesh uses vertex color
if vertex colors had no seams - it would interpolate the UV's too, now interpolate per-layer.
Sergey Sharybin [Tue, 8 Jan 2013 15:34:33 +0000 (15:34 +0000)]
Alpha-over images on a black background when in RGB display mode
This is actually a bit arbitrary decision and mainly it preserves
compatibility with how images were displaying in previous releases.
In fact, we actually would need to think about configurable backdrop
color and blending mode to be used for display in RGB mode.
Ton Roosendaal [Tue, 8 Jan 2013 14:40:15 +0000 (14:40 +0000)]
Bugfix #33803
(2.65a and older)
Case: ALT+CTRL+U (user prefs) made mousewheel change button values in inactive
window.
On opening 2nd window, or de-activating a window, the modifier
state was kept for that window. That meant that mouse-over in a window was using
the old modifier - for example for scrollwheel it would change values
in buttons.
Campbell Barton [Tue, 8 Jan 2013 14:25:17 +0000 (14:25 +0000)]
fix [#33792] Accessing a bmesh object created by from_object crashes blender
Issue was customdata wasnt being initialized for layers in the destination BMesh but not in the source data.
Campbell Barton [Tue, 8 Jan 2013 14:04:01 +0000 (14:04 +0000)]
use guarded malloc for blf texture
Sergey Sharybin [Tue, 8 Jan 2013 13:58:01 +0000 (13:58 +0000)]
Make "Clone" option in project paint options more clear name
Sergey Sharybin [Tue, 8 Jan 2013 13:32:48 +0000 (13:32 +0000)]
Remove unused IMB function which wasn't ported to new color management
Also marked some TODOs as actually solved.
Campbell Barton [Tue, 8 Jan 2013 12:10:53 +0000 (12:10 +0000)]
fix own error in recent update to follow active quads [#33783] Unwrap with Follow Active Quad fails
Sergey Sharybin [Tue, 8 Jan 2013 08:39:28 +0000 (08:39 +0000)]
Fix #33804: Blender crash unlinking multilayer exr image in image node
Jens Verwiebe [Tue, 8 Jan 2013 07:36:22 +0000 (07:36 +0000)]
OSX: take back 53611 for now, give trouble with the local variables in config, guess needs some cleanup
Jens Verwiebe [Tue, 8 Jan 2013 06:08:08 +0000 (06:08 +0000)]
OSX: remove a unneccessary condition, QTKit can do 32bit too
Alex Fraser [Tue, 8 Jan 2013 04:28:44 +0000 (04:28 +0000)]
Fix for [#33788] Particles - Fluid "exploding" behavior
Particle mass was being used incorrectly by DDR solver (my fault).
Howard Trickey [Tue, 8 Jan 2013 03:30:31 +0000 (03:30 +0000)]
Fix bevel crash #33801, when first edge of a vertex is wire.
Campbell Barton [Tue, 8 Jan 2013 02:20:05 +0000 (02:20 +0000)]
simplify fcm_generator_verify() using MEM_recallocN
Campbell Barton [Tue, 8 Jan 2013 02:06:16 +0000 (02:06 +0000)]
style cleanup
Campbell Barton [Tue, 8 Jan 2013 01:48:14 +0000 (01:48 +0000)]
style cleanup
Joshua Leung [Tue, 8 Jan 2013 01:00:59 +0000 (01:00 +0000)]
Motion Path drawing tweaks and fixes
* Green (current frame) color now extends to the segments on either side of the
current frame point. This is so that the path is more visible (especially on the
black/dark side), as those segments were prone to being interpolated such that
they became invisible
* Added padding for frame number strings so that they do not overlap the dots
anymore
* Fixed off-by-one error, which meant that the frame number for the first frame
step (white dot) didn't get shown
Antony Riakiotakis [Mon, 7 Jan 2013 21:56:13 +0000 (21:56 +0000)]
comment fix.
Looks like no scaling is done elsewhere on blender for this code. I hope
this bug is squashed for good.
Antony Riakiotakis [Mon, 7 Jan 2013 21:42:40 +0000 (21:42 +0000)]
* Fix for #31581. The issue was that we scaled the face prior to
projecting it. The original paper suggests to simply interpolate between
the two points of an edge if the distance of the point to that edge is
smaller than a threshold.
* Fixed both 3D and 2D code to utilize this. Possibly other places in
blender where this scaling is done will have to be adjusted.
* Changed vertex interpolation to use 2D interpolation, since it already
did projection on plane and 2d calculations are faster.
* Also added notifier on hard recalc when uvcalc_transfor_correction is
used. Results in instant feedback on UV editor when edge sliding.
Thomas Dinges [Mon, 7 Jan 2013 19:55:49 +0000 (19:55 +0000)]
Cycles / Tile Rendering:
* Added new option to chose the tile order.
In addition to the "Center" method, 4 new methods are available now, like Top -> Bottom and Right -> Left.
Thanks to Sergey for code review and some tweaks!
Sergey Sharybin [Mon, 7 Jan 2013 18:10:03 +0000 (18:10 +0000)]
ui_lists shall be NULLed in BKE_area_region_copy
Otherwise it'll be nasty crashes when, say, adding and removing
screens with lists visible on the screen.
Thanks Ton for assisting looking into this issue :)
Campbell Barton [Mon, 7 Jan 2013 15:43:28 +0000 (15:43 +0000)]
dont copy the mvert array in DM_to_bmesh_ex()
Antony Riakiotakis [Mon, 7 Jan 2013 15:42:42 +0000 (15:42 +0000)]
Make options for background gradient more organized.
This was difficult to do because we group theme colours and display them
together in user preferences. To make the background options more
presentable and keep them grouped and separate, I needed to group the
two gradient colours somehow. I added a separate ThemeSpaceGradient RNA
struct as opposed to ThemeSpaceGeneric. This struct is the same as
ThemeSpaceGeneric but it lacks the window background option (which does
nothing now) and includes the UiGradient struct which now has both
gradient colours. I modified the clear functions to use a new high
colour from the gradient. Now all options appear grouped and any other
editor that may use a gradient for the window background may do so.
Also corrected incorrect MAIN_VERSION_ATLEAST macro, it would not detect
versions correctly
Campbell Barton [Mon, 7 Jan 2013 15:35:20 +0000 (15:35 +0000)]
minor improvement to CustomData_bmesh_merge(), allocate the correct size pool rather then always 512.
Ton Roosendaal [Mon, 7 Jan 2013 15:29:15 +0000 (15:29 +0000)]
Bug fix 33778
The user pref "Mini Axis Brightness" didn't work.
Note it's only accissble via the outliner now.
Sergey Sharybin [Mon, 7 Jan 2013 14:25:29 +0000 (14:25 +0000)]
Fix #33735: sequencer crash when using rendered preview
Issue was caused by preview job starting just moment before
sequencer starts rendering. This lead to threading conflicts
since renderer itself is not thread-safe.
Now all preview jobs would be killed before sequencer starts
rendering stack when final render for preview is enabled.
Campbell Barton [Mon, 7 Jan 2013 14:25:26 +0000 (14:25 +0000)]
add error check for qtcreator&netbeans project file generators to quit early if cmake fails.
Howard Trickey [Mon, 7 Jan 2013 12:19:00 +0000 (12:19 +0000)]
Add normal_flip() member to Python BMesh's Face.
Campbell Barton [Mon, 7 Jan 2013 12:16:11 +0000 (12:16 +0000)]
add area_poly_v3_max() for use with area_poly_v3
Sergey Sharybin [Mon, 7 Jan 2013 11:28:27 +0000 (11:28 +0000)]
Motion tracking API change
Replace Tracks.add(count, frame) with Tracks.new(name, frame)
which will return newly created track. Before there was no
reliable way to get newly created tracks.
Sergey Sharybin [Mon, 7 Jan 2013 11:28:20 +0000 (11:28 +0000)]
Track.insert_frame used to create markers with zero pattern size
In most cases it's harmles since this call was intended to be used
for importers only where pattern size was overriding after creation
anyway. But better don't allow things which will work unpredictable.
Campbell Barton [Mon, 7 Jan 2013 06:33:29 +0000 (06:33 +0000)]
split viewport clearing into its own function: view3d_main_area_clear()
Campbell Barton [Mon, 7 Jan 2013 05:26:12 +0000 (05:26 +0000)]
code cleanup: warnings and use stdbool for bpy* funcs.
Campbell Barton [Mon, 7 Jan 2013 03:29:03 +0000 (03:29 +0000)]
compare normalized vectors when calculating the view horizon
Campbell Barton [Mon, 7 Jan 2013 03:24:22 +0000 (03:24 +0000)]
style cleanup
Campbell Barton [Mon, 7 Jan 2013 02:32:57 +0000 (02:32 +0000)]
style cleanup: '} else' and add this check to check_style_c.py
Mike Erwin [Mon, 7 Jan 2013 01:23:09 +0000 (01:23 +0000)]
fix for bugs 30300, 31107: pen pressure with multiple open windows on MS Windows
Mitchell Stokes [Sun, 6 Jan 2013 23:11:12 +0000 (23:11 +0000)]
BGE: Fix for [#33053] "2.6x Joystick Sensor Event: Axis fails to fire at full tilt" reported by Auuman Anubis (auuman_anubis).
The problem was that SCA_Joystick::pAxisTest() was using shorts, and tried to store abs(MIN_SHRT) in a short. However, on most systems MIN_SHRT == -32768 and MAX_SHRT == 32767. This means that abs(MIN_SHRT) > MAX_SHRT, and thus the short would overflow.
Nicholas Bishop [Sun, 6 Jan 2013 20:06:53 +0000 (20:06 +0000)]
Fix for r53610, check that ob->sculpt is valid before using it
Antony Riakiotakis [Sun, 6 Jan 2013 19:26:30 +0000 (19:26 +0000)]
Initialize gradient for default theme
Antony Riakiotakis [Sun, 6 Jan 2013 18:38:16 +0000 (18:38 +0000)]
Small draw optimization: Draw sky with glDrawElements. Calculate
positions and indices once and update only colours each frame.
Ton Roosendaal [Sun, 6 Jan 2013 18:28:39 +0000 (18:28 +0000)]
Three fixes:
- Old issue: on scrolling button views, tooltips could open or stayed open.
- New fix: alt+swipe now changes button values again
- Removed test print, from WIP code project.
Jens Verwiebe [Sun, 6 Jan 2013 18:26:29 +0000 (18:26 +0000)]
OSX/scons: make 64bit Intel the default now