blender.git
7 years agoSwitch linux buildbot to compile all cuda kernels in 64bit environment
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.

7 years agoAdded new scons target: cudakernels
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.

7 years agodon't call BKE_mesh_tessface_ensure() from DM_to_mesh(), caller must do this instead.
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.

7 years agotransforming verts was getting the bevel weight for each vertex even if bevel-weight...
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.

7 years agofix for editmesh calculating normals twice when using the number-buttons.
Campbell Barton [Thu, 10 Jan 2013 04:46:51 +0000 (04:46 +0000)]
fix for editmesh calculating normals twice when using the number-buttons.

7 years agodon't store bevel weights or edge crease customdata layers in editmode unless they...
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.

7 years agoCycles: different fix for perlin noise generating nan values, now check for
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.

7 years agoCycles: multiple importance sampling for lamps, which helps reduce noise for
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

7 years agospeedup for editmesh getVert and getEdge, were doing 2x customdata layer lookups...
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.

7 years agoSmall fix for r53685: Allow setting NULL/None as parent, i.e. detach a node from...
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.

7 years agoMake the node.parent property editable in RNA, so frame hierarchy can be changed...
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.

7 years agoUsability fix:
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!

7 years agoFix #33815: blender internal crash rendering material pass with strands.
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.

7 years agoRemove glibc27 from buildbot scripts
Sergey Sharybin [Wed, 9 Jan 2013 13:46:59 +0000 (13:46 +0000)]
Remove glibc27 from buildbot scripts

7 years agopartial fix for [#32581] Mesh properties API does not allow for zeros in byte array
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.

7 years agoremove uiPanelClearType(), instead redraw all windows when registering/unregistering.
Campbell Barton [Wed, 9 Jan 2013 13:15:23 +0000 (13:15 +0000)]
remove uiPanelClearType(), instead redraw all windows when registering/unregistering.

7 years agofix [#33808] custom property write RNA_pointer_get: xxx.xxxx not found in the console
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.

7 years agoMac HiDPI support:
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.

7 years agoreduce the alpha of console selection (text was too hard to read)
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)

7 years agoFix #33796: Curve radius makes affect only in full fill mode
Sergey Sharybin [Wed, 9 Jan 2013 10:15:12 +0000 (10:15 +0000)]
Fix #33796: Curve radius makes affect only in full fill mode

7 years agoavoid having dangling panel pointers in the interface, unregistering addons could...
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.

7 years agoadd RNA_def_struct_ptr(...) to use for runtime struct registration, saves over 2000...
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.

7 years agofix [#33806] weight paint crash and computer freeze when painting
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.

7 years agostyle cleanup
Campbell Barton [Wed, 9 Jan 2013 03:30:15 +0000 (03:30 +0000)]
style cleanup

7 years agodrawing texture icon was multiplying the red channel by alpha, this is almost certain...
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.

7 years agoStyle cleanup in OCIO area
Sergey Sharybin [Tue, 8 Jan 2013 20:55:07 +0000 (20:55 +0000)]
Style cleanup in OCIO area

Also fixed typo in function name.

7 years agoFix #33809: Wrong exposure affect after alpha premul changes
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.

7 years agofix [#33646] Deleting edge loops creates holes in uv map
Campbell Barton [Tue, 8 Jan 2013 17:53:38 +0000 (17:53 +0000)]
fix [#33646] Deleting edge loops creates holes in uv map

7 years agofix for select flushing in face mode for mesh 'Select More'
Campbell Barton [Tue, 8 Jan 2013 17:40:36 +0000 (17:40 +0000)]
fix for select flushing in face mode for mesh 'Select More'

7 years agofix [#33784] Select Linked All + Seams fails to select seam bounded area
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.

7 years agoMacbook HiDPI support: reshuffled code to make it compile for 10.6 and work
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 :)

7 years agoFix for recent tile_order feature not working properly with persistent data
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

7 years agoAdded trackpad (and magic mouse) support to control speed in Fly Mode in 3d.
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.

7 years agofix [#33797] decimate modifier bug on uv-coordinates when mesh uses vertex color
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.

7 years agoAlpha-over images on a black background when in RGB display mode
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.

7 years agoBugfix #33803
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.

7 years agofix [#33792] Accessing a bmesh object created by from_object crashes blender
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.

7 years agouse guarded malloc for blf texture
Campbell Barton [Tue, 8 Jan 2013 14:04:01 +0000 (14:04 +0000)]
use guarded malloc for blf texture

7 years agoMake "Clone" option in project paint options more clear name
Sergey Sharybin [Tue, 8 Jan 2013 13:58:01 +0000 (13:58 +0000)]
Make "Clone" option in project paint options more clear name

7 years agoRemove unused IMB function which wasn't ported to new color management
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.

7 years agofix own error in recent update to follow active quads [#33783] Unwrap with Follow...
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

7 years agoFix #33804: Blender crash unlinking multilayer exr image in image node
Sergey Sharybin [Tue, 8 Jan 2013 08:39:28 +0000 (08:39 +0000)]
Fix #33804: Blender crash unlinking multilayer exr image in image node

7 years agoOSX: take back 53611 for now, give trouble with the local variables in config, guess...
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

7 years agoOSX: remove a unneccessary condition, QTKit can do 32bit too
Jens Verwiebe [Tue, 8 Jan 2013 06:08:08 +0000 (06:08 +0000)]
OSX: remove a unneccessary condition, QTKit can do 32bit too

7 years agoFix for [#33788] Particles - Fluid "exploding" behavior
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).

7 years agoFix bevel crash #33801, when first edge of a vertex is wire.
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.

7 years agosimplify fcm_generator_verify() using MEM_recallocN
Campbell Barton [Tue, 8 Jan 2013 02:20:05 +0000 (02:20 +0000)]
simplify fcm_generator_verify() using MEM_recallocN

7 years agostyle cleanup
Campbell Barton [Tue, 8 Jan 2013 02:06:16 +0000 (02:06 +0000)]
style cleanup

7 years agostyle cleanup
Campbell Barton [Tue, 8 Jan 2013 01:48:14 +0000 (01:48 +0000)]
style cleanup

7 years agoMotion Path drawing tweaks and fixes
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

7 years agocomment fix.
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.

7 years ago* Fix for #31581. The issue was that we scaled the face prior to
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.

7 years agoCycles / Tile Rendering:
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!

7 years agoui_lists shall be NULLed in BKE_area_region_copy
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 :)

7 years agodont copy the mvert array in DM_to_bmesh_ex()
Campbell Barton [Mon, 7 Jan 2013 15:43:28 +0000 (15:43 +0000)]
dont copy the mvert array in DM_to_bmesh_ex()

7 years agoMake options for background gradient more organized.
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

7 years agominor improvement to CustomData_bmesh_merge(), allocate the correct size pool rather...
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.

7 years agoBug fix 33778
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.

7 years agoFix #33735: sequencer crash when using rendered preview
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.

7 years agoadd error check for qtcreator&netbeans project file generators to quit early if cmake...
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.

7 years agoAdd normal_flip() member to Python BMesh's Face.
Howard Trickey [Mon, 7 Jan 2013 12:19:00 +0000 (12:19 +0000)]
Add normal_flip() member to Python BMesh's Face.

7 years agoadd area_poly_v3_max() for use with area_poly_v3
Campbell Barton [Mon, 7 Jan 2013 12:16:11 +0000 (12:16 +0000)]
add area_poly_v3_max() for use with area_poly_v3

7 years agoMotion tracking API change
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.

7 years agoTrack.insert_frame used to create markers with zero pattern size
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.

7 years agosplit viewport clearing into its own function: view3d_main_area_clear()
Campbell Barton [Mon, 7 Jan 2013 06:33:29 +0000 (06:33 +0000)]
split viewport clearing into its own function: view3d_main_area_clear()

7 years agocode cleanup: warnings and use stdbool for bpy* funcs.
Campbell Barton [Mon, 7 Jan 2013 05:26:12 +0000 (05:26 +0000)]
code cleanup: warnings and use stdbool for bpy* funcs.

7 years agocompare normalized vectors when calculating the view horizon
Campbell Barton [Mon, 7 Jan 2013 03:29:03 +0000 (03:29 +0000)]
compare normalized vectors when calculating the view horizon

7 years agostyle cleanup
Campbell Barton [Mon, 7 Jan 2013 03:24:22 +0000 (03:24 +0000)]
style cleanup

7 years agostyle cleanup: '} else' and add this check to check_style_c.py
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

7 years agofix for bugs 30300, 31107: pen pressure with multiple open windows on MS Windows
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

7 years agoBGE: Fix for [#33053] "2.6x Joystick Sensor Event: Axis fails to fire at full tilt...
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.

7 years agoFix for r53610, check that ob->sculpt is valid before using it
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

7 years agoInitialize gradient for default theme
Antony Riakiotakis [Sun, 6 Jan 2013 19:26:30 +0000 (19:26 +0000)]
Initialize gradient for default theme

7 years agoSmall draw optimization: Draw sky with glDrawElements. Calculate
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.

7 years agoThree fixes:
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.

7 years agoOSX/scons: make 64bit Intel the default now
Jens Verwiebe [Sun, 6 Jan 2013 18:26:29 +0000 (18:26 +0000)]
OSX/scons: make 64bit Intel the default now

7 years agoDisable multires in sculpt mode if dynamic-topology mode is enabled
Nicholas Bishop [Sun, 6 Jan 2013 18:02:47 +0000 (18:02 +0000)]
Disable multires in sculpt mode if dynamic-topology mode is enabled

sculpt_multires_active() now returns NULL if dynamic topology is
enabled. Fixes bug #33718:
projects.blender.org/tracker/?func=detail&aid=33718&group_id=9&atid=498

7 years agoSlight modification of viewport sky: Avoid clearing the colour buffer
Antony Riakiotakis [Sun, 6 Jan 2013 17:06:13 +0000 (17:06 +0000)]
Slight modification of viewport sky: Avoid clearing the colour buffer
since we fill it later anyway. Usually OpenGL does color + depth buffer
concurrently so this probably won't have any noticable effect. Still
better be pedantic about it in case we do earn some performance out of
it. Added alpha component in sky color to make sure it is set to zero in
the framebuffer too.

7 years agoEyecandy feature: background gradient for 3D viewport. Enable in user preferences...
Antony Riakiotakis [Sun, 6 Jan 2013 16:45:10 +0000 (16:45 +0000)]
Eyecandy feature: background gradient for 3D viewport. Enable in user preferences under themes->3D view->Theme Gradient Color. This is only used when use render only is not ticked and for now it may interfere with grid lines. Will investigate how to adjust contrast.

Tidying up of options after advisory session on irc: Move all RNA code
in Themes.

Changes after merging trunk's commit that renders sky

7 years agoTrackpad: "pinch/stretch" zooming is non-inversed in default now.
Ton Roosendaal [Sun, 6 Jan 2013 16:28:44 +0000 (16:28 +0000)]
Trackpad: "pinch/stretch" zooming is non-inversed in default now.

Only tested on Mac trackpads... I'm on it.

7 years agocorrect 2 issues with startup.blend
Campbell Barton [Sun, 6 Jan 2013 15:59:14 +0000 (15:59 +0000)]
correct 2 issues with startup.blend
- scroll bars were not in info space
- bake bias was 0.0, changed to 0.001 as it is for new scenes

7 years agoadd ability to use world gradient rendering when 'Only Render' option is enabled.
Campbell Barton [Sun, 6 Jan 2013 15:02:23 +0000 (15:02 +0000)]
add ability to use world gradient rendering when 'Only Render' option is enabled.
supports paper/blend/real.

7 years agoWith some help in irc (thanks erwin, markus!) and some googling, here's code
Ton Roosendaal [Sun, 6 Jan 2013 12:49:32 +0000 (12:49 +0000)]
With some help in irc (thanks erwin, markus!) and some googling, here's code
that compiles for OSX 10.6 for new momentumPhase usage.

Jens Verwiebe can give final blessings, I'm just copypasting stuff and test it :)

7 years agosequencer api args - rename start/end_frame to frame_start/end to match the rest...
Campbell Barton [Sun, 6 Jan 2013 12:42:47 +0000 (12:42 +0000)]
sequencer api args - rename start/end_frame to frame_start/end to match the rest of the RNA api.

7 years agoSolving nasty annoyance:
Ton Roosendaal [Sun, 6 Jan 2013 11:16:49 +0000 (11:16 +0000)]
Solving nasty annoyance:

Trackpad zoom (swipe + CTRL) direction was inverted compared to MMB-drag
or scrollwheel usage. In the 3D viewport it was OK, in all others not.

Now the same physical gesture maps identical to zooming everywhere. Or to
recap (with blender factory settings)

Zooming in:
- MMB-drag, move mouse towards screen
- Scroll wheel, move finger towards screen
- Magic Mouse, move finger towards screen
- Trackpad 2-finger swipe: move fingers toward screen.

To make this extra confusing: this is only consistent if you set your system
to inperpret trackpad swipes as "inverted" (pan view left = swipe to right).
This is a typical default, although Apple wants you to call this "Unnatural" :)

Next commit will be testing on laptop if all pinch gestures zoom consistent.

And following to that, a sensible user preference to map trackpad use for
Blender yourself, to invert system defaults again. :)

Blame and thanks goes to Sebastian Koenig, for his perseverance on getting this
solved :)

7 years agoRename dilate/erode rna property "type" to "mode" to avoid naming conflicts
Sergey Sharybin [Sun, 6 Jan 2013 10:30:05 +0000 (10:30 +0000)]
Rename dilate/erode rna property "type" to "mode" to avoid naming conflicts

7 years agoremove frame limits for sequence strip creation. was causing errors importing some...
Campbell Barton [Sun, 6 Jan 2013 10:17:38 +0000 (10:17 +0000)]
remove frame limits for sequence strip creation. was causing errors importing some EDL's

7 years agoBLI_assert uses printf so stdio.h should be included instead of relying on it to...
Jason Wilkins [Sun, 6 Jan 2013 09:24:45 +0000 (09:24 +0000)]
BLI_assert uses printf so stdio.h should be included instead of relying on it to be included by other headers accidentally

7 years agoWorkaround for textured display with dynamic topology enabled
Sergey Sharybin [Sun, 6 Jan 2013 08:28:45 +0000 (08:28 +0000)]
Workaround for textured display with dynamic topology enabled

This will only make object display with proper shape in textured
view, but all materials and textures will be replaced with default
gray color. There's currently no better way to deal with textured
display when dynamic topology enabled because of all UV/tfaces are
clearing when enabling dynamic topology sculpt.

Anyway, better to display gray object with proper lighting in this
case rather than not update object's shape during sculpt.

Proper solution will be possible once CD layer will be preserved
by BMesh log.

7 years agodevice_network.cpp is completely elided when WITH_NETWORK is not defined, so do not...
Jason Wilkins [Sun, 6 Jan 2013 07:10:22 +0000 (07:10 +0000)]
device_network.cpp is completely elided when WITH_NETWORK is not defined, so do not include it in the build in that case

7 years agoRemoval of old code trying to detect trackpads.
Ton Roosendaal [Sat, 5 Jan 2013 18:23:05 +0000 (18:23 +0000)]
Removal of old code trying to detect trackpads.

This was causing error in previous commit "wheel only worked after using trackpad once".

7 years agoTrackpad pans for UV/Image and MovieClip editors were inverse compared to all other...
Ton Roosendaal [Sat, 5 Jan 2013 17:57:17 +0000 (17:57 +0000)]
Trackpad pans for UV/Image and MovieClip editors were inverse compared to all other editors.

7 years agoNew version of code to detect whether a wheel is involved, or a trackpad.
Ton Roosendaal [Sat, 5 Jan 2013 17:13:07 +0000 (17:13 +0000)]
New version of code to detect whether a wheel is involved, or a trackpad.

It was compiled with "deploy target 10.6" tested on macbook with 10.8.
More tests follow quick.

7 years agoAdded some python API examples for the new get/set callbacks in bpy.props.
Lukas Toenne [Sat, 5 Jan 2013 15:50:51 +0000 (15:50 +0000)]
Added some python API examples for the new get/set callbacks in bpy.props.

7 years agostyle cleanup: also add checker for function brace placement.
Campbell Barton [Sat, 5 Jan 2013 15:36:03 +0000 (15:36 +0000)]
style cleanup: also add checker for function brace placement.

7 years agoChanges for opengl render to reflect new alpha premul pipeline
Sergey Sharybin [Sat, 5 Jan 2013 15:33:18 +0000 (15:33 +0000)]
Changes for opengl render to reflect new alpha premul pipeline
without hurting quick texture painting

- ED_view3d_draw_offscreen will now output buffer with
  transparent alpha, if sky needed it should be alpha-undered
  later.

- ED_view3d_draw_offscreen_imbuf now accepts alpha mode as an
  argument which could be either R_ADDSKY or R_PREMULALPHA

- OpenGL render and sequencer's opengl preview will now reflect
  scene's Alpha Mode

- Quick Edit will use OpenGL with transparent alpha mode

7 years agoThis patch adds support in bpy.props for getter/setter callback functions. We already...
Lukas Toenne [Sat, 5 Jan 2013 14:56:37 +0000 (14:56 +0000)]
This patch adds support in bpy.props for getter/setter callback functions. We already have update callbacks, but generic get/set functions can come in handy in some cases where the functionality is too complex to use a single value.

The current C callback functions are too simple allow a straightforward implementation, in particular they don't receive the PropertyRNA pointer itself as an argument, which means the callback cannot directly access the PropertyRNA's py_data pointers which store the python function objects. For this reason a second runtime variant of these callbacks has been added. It is only used for runtime callbacks and not in makesrna, but otherwise works the same way.

7 years agoRemove some uneeded/irrelevant "PROP_TRANSLATE".
Bastien Montagne [Sat, 5 Jan 2013 13:52:41 +0000 (13:52 +0000)]
Remove some uneeded/irrelevant "PROP_TRANSLATE".

This sub-type is actually *only* needed for the "text" property of UI rna api (maybe we should rename it to "PROP_PY_TRANSLATE", as it is anyway only 'active' during conversion from py string to RNA string property...). In fact, I think it should only be used in RNA func properties anyway, as it stores the translated string into the property, it should only be used with "one time" RNA stuff...

7 years agoRemove usage of deprecated TEX_USEALPHA from GE code
Sergey Sharybin [Sat, 5 Jan 2013 13:51:07 +0000 (13:51 +0000)]
Remove usage of deprecated TEX_USEALPHA from GE code

7 years agoMaking a few tooltips more descriptive, in light of recent confusion over the
Joshua Leung [Sat, 5 Jan 2013 12:27:54 +0000 (12:27 +0000)]
Making a few tooltips more descriptive, in light of recent confusion over the
purpose of some of these features

* ClampTo Constraint, Target Object field: now mentions that it is for curve
objects only
* Dopesheet Editor Modes: now describe what data is editable in each mode. The
wording may be a bit clumsy here, but (apart from Mask Editor one, which I'm not
entirely sure about) should at least be technically correct