blender.git
7 years agoFreestyle: fix crash unlinking object
Sergey Sharybin [Tue, 26 Mar 2013 08:32:53 +0000 (08:32 +0000)]
Freestyle: fix crash unlinking object

Was getting an address of pointer variable.

7 years agoFreestyle: fix compilation with strict flags used
Sergey Sharybin [Tue, 26 Mar 2013 08:05:56 +0000 (08:05 +0000)]
Freestyle: fix compilation with strict flags used

7 years agogrease pencil eraser mouse-wheel resize was inverted compared to circle-select.
Campbell Barton [Tue, 26 Mar 2013 07:44:48 +0000 (07:44 +0000)]
grease pencil eraser mouse-wheel resize was inverted compared to circle-select.

7 years agogrease pencil xray option wasn't being applied to single points in the 3d view.
Campbell Barton [Tue, 26 Mar 2013 07:41:59 +0000 (07:41 +0000)]
grease pencil xray option wasn't being applied to single points in the 3d view.

7 years agostyle cleanup:
Campbell Barton [Tue, 26 Mar 2013 07:29:01 +0000 (07:29 +0000)]
style cleanup:
also rename mesh_getVertexCos() --> BKE_mesh_vertexCos_get() to match curve function.

7 years agofix [#34658] GreasePencil eraser deletes strokes through geometry, surfacemode
Campbell Barton [Tue, 26 Mar 2013 06:07:21 +0000 (06:07 +0000)]
fix [#34658] GreasePencil eraser deletes strokes through geometry, surfacemode

add depth check to grease pencil eraser when xray option is disabled.

7 years agofix [#34698] Axis Locking works incorrect
Campbell Barton [Tue, 26 Mar 2013 03:36:18 +0000 (03:36 +0000)]
fix [#34698] Axis Locking works incorrect
don't do projection when constraints are used.

7 years agoreplace view3d_get_view_aligned_coordinate with ED_view3d_win_to_3d_int()
Campbell Barton [Tue, 26 Mar 2013 02:37:29 +0000 (02:37 +0000)]
replace view3d_get_view_aligned_coordinate with ED_view3d_win_to_3d_int()

7 years agoimprove beauty-fill tool for non-flat triangles.
Campbell Barton [Tue, 26 Mar 2013 01:49:55 +0000 (01:49 +0000)]
improve beauty-fill tool for non-flat triangles.
Project the triangle pair into 2d coords before measuring.

before/after - http://www.graphicall.org/ftp/ideasman42/beauty_fill_fix.png

note: I committed this r54403 but it caused eternal looping so I reverted for 2.66 release.
ran extensive tests and its not giving problems so re-applying this improvement.

7 years agomisc minor changes
Campbell Barton [Tue, 26 Mar 2013 01:46:12 +0000 (01:46 +0000)]
misc minor changes
- make it clear that navmesh visualize option only works in path mode.
- use 2 decimal places for motion-blur shutter speed (user request).
- use 'const' for some bmesh functions.

7 years agoedit to VIEW3D_OT_view_center_pick
Campbell Barton [Tue, 26 Mar 2013 01:43:00 +0000 (01:43 +0000)]
edit to VIEW3D_OT_view_center_pick
- pan when nothing is under the mouse
- use key binding alt+f

7 years agoFix for missing CustomData flag updates in the temporary code for migrating
Tamito Kajiyama [Tue, 26 Mar 2013 00:36:43 +0000 (00:36 +0000)]
Fix for missing CustomData flag updates in the temporary code for migrating
Freestyle edge/face marks from old .blend files.
Problem report and patch by IRIE Shinsuke, many thanks!

7 years agoFix for truncated labels in the 3D View properties panel.
Tamito Kajiyama [Tue, 26 Mar 2013 00:32:19 +0000 (00:32 +0000)]
Fix for truncated labels in the 3D View properties panel.
Suggested by Bastien Montagne and IRIE Shinsuke through a code review of the branch.

7 years agofix [#34603] ALT-F fails, freezes, CPU=100%
Campbell Barton [Tue, 26 Mar 2013 00:29:57 +0000 (00:29 +0000)]
fix [#34603] ALT-F fails, freezes, CPU=100%

The way beauty fill was working was too fragile and prone to eternal loops,
Solution used is to is to store previous states and ensure edges don't get rotated back into those.

Also added an optimization to avoid testing the same edge rotation many times - using edge tags to only re-test edge rotations around areas that have been modified.

7 years agointernal changes to beautify fill, use an array of edges that can be rotated, rather...
Campbell Barton [Mon, 25 Mar 2013 23:21:16 +0000 (23:21 +0000)]
internal changes to beautify fill, use an array of edges that can be rotated, rather then looping over all edges each time.

7 years agocode cleanup: operator headers
Campbell Barton [Mon, 25 Mar 2013 22:40:11 +0000 (22:40 +0000)]
code cleanup: operator headers

7 years agocode cleanup: move beautify into its own file (more changes coming)
Campbell Barton [Mon, 25 Mar 2013 22:04:12 +0000 (22:04 +0000)]
code cleanup: move beautify into its own file (more changes coming)

7 years agofix for missing redraw in own commit r55554 (Ctrl+F text editor find).
Campbell Barton [Mon, 25 Mar 2013 21:31:24 +0000 (21:31 +0000)]
fix for missing redraw in own commit r55554 (Ctrl+F text editor find).
since an event wasn't added to the queue no redraws we're done when the panel was already open, instead use a notifier.

7 years agoBug report, IRC:
Ton Roosendaal [Mon, 25 Mar 2013 18:41:28 +0000 (18:41 +0000)]
Bug report, IRC:

Operator "To Sphere" should only be allowed to be called in 3d view.
Crashed in Image editor.

7 years agoFix [#34716] Change Trim Duration (soft) value nothing happening. until mouse drag...
Bastien Montagne [Mon, 25 Mar 2013 17:22:00 +0000 (17:22 +0000)]
Fix [#34716] Change Trim Duration (soft) value nothing happening. until mouse drag footage(image sequence)

As those two properties do not need a custom set func, yet need recalc of strips drawing/positions in addition to usual rna_Sequencer_update() (cache invalidating), I renamed rna_Sequence_frame_change_update to do_sequence_frame_change_update, and made a new rna_Sequence_frame_change_update which is directly usable as RNA update func, and call both the strip and cache update funcs.

Thanks to Sergey for advices!

7 years agoBug fix:
Ton Roosendaal [Mon, 25 Mar 2013 15:45:59 +0000 (15:45 +0000)]
Bug fix:

On screen/area refresh calls the header scroll offset was cleared too.
Probably an old remainder of early 2.5 coding. Should be not needed so much.

7 years agoClip editor prefetching changes
Sergey Sharybin [Mon, 25 Mar 2013 15:32:15 +0000 (15:32 +0000)]
Clip editor prefetching changes

Now prefetching happens from cursor up to scene end frame
and then from cursor down to scene start frame.

Also disabled prefetching for non-unidistorted proxies
because of issues with timecodes (seek horribly fails
in some cases). This seek need to be fixed since it's
actually happens for manual timeline scrubbing as well,
but that's another story..

7 years agoBetter handing of frames below actual sequence range
Sergey Sharybin [Mon, 25 Mar 2013 15:32:11 +0000 (15:32 +0000)]
Better handing of frames below actual sequence range

When trying to load file below actual sequence range
(like trying to load file for scene frame 10 when clip's
start frame is 20) first frame from file sequence is used.

Before this change first file used to be loaded for every
scene frame below start frame, which polluted memory with
unwanted data.

Now first frame would be loaded only once in this case.

7 years agoFix to EnumProperty doc (content of items tuples was rather fuzzy, ways how these...
Bastien Montagne [Mon, 25 Mar 2013 14:46:34 +0000 (14:46 +0000)]
Fix to EnumProperty doc (content of items tuples was rather fuzzy, ways how these "parameters" are interpreted are rather strange, current text should now reflect exactly code's behavior).

7 years agoI18n: use id_windowmanager context for keymap idnames. Solves some issues with those...
Bastien Montagne [Mon, 25 Mar 2013 11:35:42 +0000 (11:35 +0000)]
I18n: use id_windowmanager context for keymap idnames. Solves some issues with those names (notably "Clip" one, and "Screen" too) in some translations. Also move "Key" as "Keyboard" (opposed to "Keyframe") to same context.

7 years agoBugfix [#34749] Fluid domain > 10GB crashes Blender - out of memory
Daniel Genrich [Mon, 25 Mar 2013 11:11:49 +0000 (11:11 +0000)]
Bugfix [#34749] Fluid domain > 10GB crashes Blender - out of memory

I am unsure if I did catch all problematic code but I ran out of memorybefore the sim started ;)

7 years agoFix #34758, another Crash with NodeGroup. Took a while to get to the bottom, but...
Lukas Toenne [Mon, 25 Mar 2013 11:08:14 +0000 (11:08 +0000)]
Fix #34758, another Crash with NodeGroup. Took a while to get to the bottom, but the root of the issue was that nested node groups (groups inside other groups) were ungrouped ("inlined") repeatedly. This lead to preview operations being added to the same group more than once, and the redundant preview operations (beside working on the same preview buffer) did not get their correct resolution set. This in turn would then lead to previews writing beyond allocated size and causing corrupted memory + crash.

Simple fix: don't expand node groups more than once.

7 years agoUpdate to i18n tools (new [CTX_]DATA_ macros, and some more exceptions to spell check...
Bastien Montagne [Mon, 25 Mar 2013 08:30:38 +0000 (08:30 +0000)]
Update to i18n tools (new [CTX_]DATA_ macros, and some more exceptions to spell check...).

7 years agoMore new data names translation (most cases should be covered now).
Bastien Montagne [Mon, 25 Mar 2013 08:29:06 +0000 (08:29 +0000)]
More new data names translation (most cases should be covered now).

Also done a few cleanup here and there...

7 years agobeautify fill: skip testing invalid cases (2 triangles that _don't_ have 4 unique...
Campbell Barton [Mon, 25 Mar 2013 04:48:30 +0000 (04:48 +0000)]
beautify fill: skip testing invalid cases (2 triangles that _don't_ have 4 unique verts between them).

7 years agocode cleanup:
Campbell Barton [Mon, 25 Mar 2013 02:41:30 +0000 (02:41 +0000)]
code cleanup:
- remove unused defines.
- quiet some shadow warnings.
- bevel, ifdef out some asserts that are too common.
- style

7 years agoFix #34730, set special brush rotation to zero if brush is not rake or
Antony Riakiotakis [Mon, 25 Mar 2013 01:42:58 +0000 (01:42 +0000)]
Fix #34730, set special brush rotation to zero if brush is not rake or
anchored.

7 years agocancel face/edge creation operator if nothing is done (so it wont register or do...
Campbell Barton [Mon, 25 Mar 2013 01:25:46 +0000 (01:25 +0000)]
cancel face/edge creation operator if nothing is done (so it wont register or do an undo push)

7 years agopatch [#34763] Center the View to the ZDepth Position under the Mouse Cursor
Campbell Barton [Mon, 25 Mar 2013 01:11:16 +0000 (01:11 +0000)]
patch [#34763] Center the View to the ZDepth Position under the Mouse Cursor
from Ralf Holzemer (cheleb)

use Fkey in object mode (since its a mode-less fly).

7 years agoAlpha mask textures porting part 1: Support for projective texturing.
Antony Riakiotakis [Mon, 25 Mar 2013 01:00:16 +0000 (01:00 +0000)]
Alpha mask textures porting part 1: Support for projective texturing.
Also add random mapping to brushes.

7 years agofix [#34745] TGA with size of 4Kx8K won't load
Campbell Barton [Sun, 24 Mar 2013 20:59:53 +0000 (20:59 +0000)]
fix [#34745] TGA with size of 4Kx8K won't load

Checked the size limit on TGA files in svn history and this is was just an arbitrary limit that might have made sense some years back, but not now.

7 years agoFIX: [#34467] File Browser Deletes Unselected Files
Andrea Weikert [Sun, 24 Mar 2013 19:29:49 +0000 (19:29 +0000)]
FIX: [#34467] File Browser Deletes Unselected Files

* delete now acts on selected file(s) rather than the highlighted file.

7 years agoWhite space commit.
Thomas Dinges [Sun, 24 Mar 2013 19:10:30 +0000 (19:10 +0000)]
White space commit.

And 55555. :D

7 years agoedit to 55549, replace fake click event with call to uiButActiveOnly().
Campbell Barton [Sun, 24 Mar 2013 19:08:24 +0000 (19:08 +0000)]
edit to 55549, replace fake click event with call to uiButActiveOnly().
also make it more clear args are for rna buttons.

7 years agoUI small fixes:
Ton Roosendaal [Sun, 24 Mar 2013 18:59:15 +0000 (18:59 +0000)]
UI small fixes:

- Theme color for the brush popup was not correctly coded. Now it follows menu item
  style correctly, which also allows all the themes we have to give readable text.

- RMB cancel also added for slider buttons and the color picker.

7 years agoCode cleanup:
Thomas Dinges [Sun, 24 Mar 2013 18:14:38 +0000 (18:14 +0000)]
Code cleanup:
* Remove non used booleanops_mesh.c and header, got obsolete with Carve.

7 years agoSmall feature:
Ton Roosendaal [Sun, 24 Mar 2013 16:43:40 +0000 (16:43 +0000)]
Small feature:

While using number sliders, you can now press RMB to cancel (like ESC)

7 years agoOS X Fullscreen: shortcut now is CTRL + Cmd + F. Is more common, and it keeps
Ton Roosendaal [Sun, 24 Mar 2013 14:56:03 +0000 (14:56 +0000)]
OS X Fullscreen: shortcut now is CTRL + Cmd + F. Is more common, and it keeps
Cmd + F for searches.

7 years agoUsablity:
Ton Roosendaal [Sun, 24 Mar 2013 13:43:40 +0000 (13:43 +0000)]
Usablity:

In text editor, the CTRL+F find now opens property region (or keeps it) and
activates the search button for input.

That's already nice! But next step should be to do a search on exit of
the button (or while typing). That's stuff I need Campbell to help with though.

Notes:
- Probably Py api for property buttons could get an "operator=" arg?
- The warning menu "not found" should go away
- I also suggest to make "wrap" search default for new editors

7 years agoMerged changes in the trunk up to revision 55546.
Tamito Kajiyama [Sun, 24 Mar 2013 12:13:13 +0000 (12:13 +0000)]
Merged changes in the trunk up to revision 55546.

Conflicts resolved:
source/blenderplayer/bad_level_call_stubs/SConscript

Partly reverted changes to intern/cycles/blender/addon/ui.py in revision 52899
to make it easier to merge trunk changes.

7 years agoFix for [#34747] Rendering invisible tiles
Thomas Dinges [Sun, 24 Mar 2013 10:52:20 +0000 (10:52 +0000)]
Fix for [#34747] Rendering invisible tiles
* reset_session() was not taking render percentage into account in case persistent_data was enabled.
* also deprecate old "maximsize" DNA variable.

7 years agoUnix/X11 - use RGBA icon (netwm icon), rather then pixmap icon.
Campbell Barton [Sun, 24 Mar 2013 06:23:15 +0000 (06:23 +0000)]
Unix/X11 - use RGBA icon (netwm icon), rather then pixmap icon.

7 years agocode cleanup: move doxy docs from headers into source. also replace strncpy();str...
Campbell Barton [Sun, 24 Mar 2013 01:51:54 +0000 (01:51 +0000)]
code cleanup: move doxy docs from headers into source. also replace strncpy();str[len]=0 with BLI_strncpy() in BLI_stringdec().

7 years agofix for struct definition building with msvc2008 and some style cleanup.
Campbell Barton [Sun, 24 Mar 2013 01:19:55 +0000 (01:19 +0000)]
fix for struct definition building with msvc2008 and some style cleanup.

7 years agoAdded header comments to indicate the author(s) of original files.
Tamito Kajiyama [Sun, 24 Mar 2013 00:53:05 +0000 (00:53 +0000)]
Added header comments to indicate the author(s) of original files.
Suggested by Sergey Sharybin through a code review of the branch.

The information was mostly recovered from the AUTHORS file [1] of the
stand-alone Freestyle package version 2.2.0.

[1] http://freestyle.cvs.sourceforge.net/viewvc/freestyle/freestyle/AUTHORS.TXT

7 years agoRemoved a Freestyle-specific function call from bf_windowmanager.
Tamito Kajiyama [Sat, 23 Mar 2013 21:38:35 +0000 (21:38 +0000)]
Removed a Freestyle-specific function call from bf_windowmanager.
Suggested by Sergey Sharybin through a code review of the branch.

7 years agoFix for opencollada building in install_deps.sh script.
Bastien Montagne [Sat, 23 Mar 2013 17:28:24 +0000 (17:28 +0000)]
Fix for opencollada building in install_deps.sh script.

Stick to rev c89cf095c40aa2a518b1104c448825eacc92d174 of opencollada repo, next commit breaks API and prevent blender from building anymore... :(

7 years agocode cleanup: quiet shadow warning.
Campbell Barton [Sat, 23 Mar 2013 17:11:03 +0000 (17:11 +0000)]
code cleanup: quiet shadow warning.

7 years agoFix for cycles group node bug, reported on IRC: Group nodes input proxies did not...
Lukas Toenne [Sat, 23 Mar 2013 16:45:38 +0000 (16:45 +0000)]
Fix for cycles group node bug, reported on IRC: Group nodes input proxies did not get their correct default value set. Forgot to add this during r55440 ...

7 years agoBug fix 34743
Ton Roosendaal [Sat, 23 Mar 2013 16:08:02 +0000 (16:08 +0000)]
Bug fix 34743

Mac OS X full screen: the old option to go full screen now didn't hide the
dock/topbar anymore. Also made it use dock auto-hide now, not permanent hide.

7 years agocode cleanup: remove unused button type HSVSLI
Campbell Barton [Sat, 23 Mar 2013 16:03:13 +0000 (16:03 +0000)]
code cleanup: remove unused button type HSVSLI

7 years agoTheme fix:
Ton Roosendaal [Sat, 23 Mar 2013 12:46:07 +0000 (12:46 +0000)]
Theme fix:

Node Editor and Sequencer were not using grid theme color, but 'back'.

This commit adds versioning to copy background color to grid. I do this
without increasing sub-version, which allows to add correct drawing when
the subversion has to go up anyway for something else.

7 years agoCycles:
Thomas Dinges [Sat, 23 Mar 2013 10:11:29 +0000 (10:11 +0000)]
Cycles:
* Avoid an unnecessary condition in light.cpp, (totarea > 0.0f) is always true inside the "if(kintegrator->use_direct_light)" branch.

7 years agoConstraint UI:
Thomas Dinges [Sat, 23 Mar 2013 08:47:29 +0000 (08:47 +0000)]
Constraint UI:
* Hide Script Constraint from UI, not functional.
* Alphabetical order fix for Motion tracking constraints.

7 years agoCode cleanuo:
Thomas Dinges [Sat, 23 Mar 2013 08:38:53 +0000 (08:38 +0000)]
Code cleanuo:
* Remove already commented "use_radiosity" flag from RNA.
* Remove some commented exceptions for old 2.4x 3D View preview region.
* Remove empty and commented function declarations from 2.4x UI times

7 years agoCode cleanup:
Thomas Dinges [Sat, 23 Mar 2013 08:25:29 +0000 (08:25 +0000)]
Code cleanup:
* Remove already deprecated USER_DISABLE_AA flag from code, only commented DNA flag left.

7 years agoCycles:
Thomas Dinges [Sat, 23 Mar 2013 07:09:04 +0000 (07:09 +0000)]
Cycles:
* Move OpenGL settings out of the film panel into its own.

Imho these should go completely elsewhere, but better separated than mixed with Cycles settings.

7 years agoCode cleanup:
Thomas Dinges [Sat, 23 Mar 2013 06:55:59 +0000 (06:55 +0000)]
Code cleanup:
* Use bpy.app.build_options for UI checks rather than custom ones.

7 years agoOpenGL: Moving the GPU_pass_update_uniforms() call from GPU_material_bind_uniforms...
Mitchell Stokes [Sat, 23 Mar 2013 03:11:48 +0000 (03:11 +0000)]
OpenGL: Moving the GPU_pass_update_uniforms() call from GPU_material_bind_uniforms() to GPU_material_bind(). This way, material specific uniforms don't need to be resent when sending object specific uniforms. This saves uniform update calls in the BGE where one material is bound and multiple objects can be drawn. This doesn't offer much in the way of performance, but it cleans up our OpenGL usage a bit. One test scene went from 8k OpenGL calls to 4k with just this one change.

7 years agoBGE: getting rid of a few maybe-uninitialized warnings.
Mitchell Stokes [Sat, 23 Mar 2013 03:04:02 +0000 (03:04 +0000)]
BGE: getting rid of a few maybe-uninitialized warnings.

7 years agoA major code update for making the DNA file specification of Freestyle settings
Tamito Kajiyama [Sat, 23 Mar 2013 03:00:37 +0000 (03:00 +0000)]
A major code update for making the DNA file specification of Freestyle settings
and RNA for it independent of the build flag for enabling Freestyle.  Suggested
by Sergey Sharybin through a code review of the branch.

* Many #ifdef WITH_FREESTYLE blocks were removed to always have Freestyle-specific
DNA file specification and RNA for it built in Blender.  This will allow Freestyle
setting survive even when a non-Freestyle build is used for loading and saving
files.  It is noted that operations are still conditionally built through #ifdef
WITH_FREESTYLE blocks.

* To this end, new blenkernel files BKE_freestyle.h and intern/freestyle.c have
been added.  All API functions in FRS_freestyle_config.h as well as some of those
in FRS_freestyle.h were moved to the new files.  Now the relocated API functions
have BKE_ prefix instead of FRS_.

7 years agoGHOST_Cocoa, let new fullscreen also appear on 10.6 deployed builds
Jens Verwiebe [Fri, 22 Mar 2013 23:48:26 +0000 (23:48 +0000)]
GHOST_Cocoa, let new fullscreen also appear on 10.6 deployed builds

7 years agoFix for missing -DWITH_FREESTYLE.
Tamito Kajiyama [Fri, 22 Mar 2013 23:04:14 +0000 (23:04 +0000)]
Fix for missing -DWITH_FREESTYLE.

7 years agofix for buffer out-of-bounds reading for STR_String comparisons with char arrays.
Campbell Barton [Fri, 22 Mar 2013 21:26:59 +0000 (21:26 +0000)]
fix for buffer out-of-bounds reading for STR_String comparisons with char arrays.

7 years agofix for BGE crash replicating a navmesh.
Campbell Barton [Fri, 22 Mar 2013 20:19:55 +0000 (20:19 +0000)]
fix for BGE crash replicating a navmesh.

7 years agoAdd a license file for our i18n "droidsans.ttf" font (I hope I did not forget any...
Bastien Montagne [Fri, 22 Mar 2013 19:11:39 +0000 (19:11 +0000)]
Add a license file for our i18n "droidsans.ttf" font (I hope I did not forget any, the history of this "font" is... complex :/ ).

7 years agoFix [#34721]: Smoke adaptive domain threshold ignores high resolution data.
Miika Hamalainen [Fri, 22 Mar 2013 17:11:32 +0000 (17:11 +0000)]
Fix [#34721]: Smoke adaptive domain threshold ignores high resolution data.

In some cases high resolution domain could have higher density than the low resolution counterpart, causing adaptive domain to clip off areas where density is still above domain threshold. Now also high resolution data is used to determine domain bounds.

7 years agoFix [#34685]: Dynamic paint sub-steps don't work if brush is animated through parent...
Miika Hamalainen [Fri, 22 Mar 2013 17:08:55 +0000 (17:08 +0000)]
Fix [#34685]: Dynamic paint sub-steps don't work if brush is animated through parent chain longer than 2 objects.

Maximum number of parents updated is now 5. Hopefully this will be enough until Blender has better subframe sampling system.

7 years agoPatch [#34680] Updated install_deps script, by Ejner Fergo (ejnersan), thanks!
Bastien Montagne [Fri, 22 Mar 2013 16:26:33 +0000 (16:26 +0000)]
Patch [#34680] Updated install_deps script, by Ejner Fergo (ejnersan), thanks!

The script is updated with:

Arch Linux support
Numpy 1.7.0 final
Fedora 17 / 18 support
OpenSUSE 12.2 / 12.3 support
Use FFMPEG from RPM-distro repos
RPM-distro fixes
Removed Schroedinger codec
Fixes for Cmake/Scons config

Reviewed by Sergey and me.

7 years agoOSX feature:
Ton Roosendaal [Fri, 22 Mar 2013 16:11:00 +0000 (16:11 +0000)]
OSX feature:

Blender now supports the 10.7+ "Full screen" mode, which pushes a window to a permanent
other "screen", with animated zoom and sliding.

Available via the icon in window header (right), Apple+F, or "Window" menu in top.

Works much nicer than Blender's own "full screen" option.

Todo: the zoom effect is still draws a bit ugly, because Blender doesn't have "live resize"
yet.

7 years agocode cleanup: shadowing, adjust type.
Campbell Barton [Fri, 22 Mar 2013 15:47:02 +0000 (15:47 +0000)]
code cleanup: shadowing, adjust type.

7 years agoAdded missing node->id pointer checks in case node groups have unavailable node_tree...
Lukas Toenne [Fri, 22 Mar 2013 15:46:38 +0000 (15:46 +0000)]
Added missing node->id pointer checks in case node groups have unavailable node_tree data blocks.

7 years agoFix #34728, Int values in script Node can't be changed. Was caused by a bad typecast...
Lukas Toenne [Fri, 22 Mar 2013 15:39:10 +0000 (15:39 +0000)]
Fix #34728, Int values in script Node can't be changed. Was caused by a bad typecast of the node socket default_value, which caused invalid value range.

7 years agoAdd missing comment for m_isResolutionSet
Sergey Sharybin [Fri, 22 Mar 2013 14:54:02 +0000 (14:54 +0000)]
Add missing comment for m_isResolutionSet

7 years agoIncrease hard limit for prefetch frames to INT_MAX
Sergey Sharybin [Fri, 22 Mar 2013 14:41:52 +0000 (14:41 +0000)]
Increase hard limit for prefetch frames to INT_MAX

Don't see why it could give issues to use large number
of frames to be prefetched, but just in case make it
unlimited hard limit and kept soft limit still at 500.

7 years agocode cleanup: unused defines, shadowing and unintended enum-as-variable.
Campbell Barton [Fri, 22 Mar 2013 14:31:03 +0000 (14:31 +0000)]
code cleanup: unused defines, shadowing and unintended enum-as-variable.

7 years agospaces->tabs
Pablo Vazquez [Fri, 22 Mar 2013 13:53:58 +0000 (13:53 +0000)]
spaces->tabs

7 years agoFix for the custom_nodes.py template. Socket classes now return their drawing color...
Lukas Toenne [Fri, 22 Mar 2013 13:17:16 +0000 (13:17 +0000)]
Fix for the custom_nodes.py template. Socket classes now return their drawing color in a callback instead of a simple property, this makes it possible to change a socket color e.g. based on data type.

7 years agoFix for the use_hidden_preview setting in SpaceNode. The application of this flag...
Lukas Toenne [Fri, 22 Mar 2013 13:08:37 +0000 (13:08 +0000)]
Fix for the use_hidden_preview setting in SpaceNode. The application of this flag to new nodes got lost during merges at some point. Also is now in the python node.add_node operator as well as the C function.

7 years agoNodes editor,
Pablo Vazquez [Fri, 22 Mar 2013 12:57:32 +0000 (12:57 +0000)]
Nodes editor,
Draw an extra outline on hidden nodes that have custom colors, otherwise you can't recognize them unless you unhide.

Example: http://pasteall.org/pic/show.php?id=42359

7 years agoBug fix #34405
Ton Roosendaal [Fri, 22 Mar 2013 12:00:29 +0000 (12:00 +0000)]
Bug fix #34405

On opening a text editor for first time, and use search (CTRL+F) the scrollers were not
correct initialized, so the view would jump a bit on redraw.

7 years agoBug fix #34726
Ton Roosendaal [Fri, 22 Mar 2013 11:14:04 +0000 (11:14 +0000)]
Bug fix #34726

Appending a group (which adds all object members to scene), didn't follow the
setting "In active layer".

One note: only the scene layers are copied over, not local view3d layers.

7 years agoNode preview merge function now has an additional option "remove_old", which could...
Lukas Toenne [Fri, 22 Mar 2013 10:34:52 +0000 (10:34 +0000)]
Node preview merge function now has an additional option "remove_old", which could be used if previous previews should be retained after recalculating (not used currently, old previews are dropped entirely for now, because it could be confusing).

Also moved the sync and merge for previews into the respective tree callbacks for consistency. This way the handling of previews can be changed for each tree type individually if necessary.

7 years agoEnable previews for inactive compo output and viewer nodes.
Sergey Sharybin [Fri, 22 Mar 2013 10:10:21 +0000 (10:10 +0000)]
Enable previews for inactive compo output and viewer nodes.

This keeps old behavior and could be nice. However, it'll
make compositing slower  (doing final compo after editing
tree). This is easy to hide preview in this case, and also
i hope to implement percentage rendering soon.

7 years agoFix #34667: trail_count option missing for Particle (emitter) System Render Panel...
Sergey Sharybin [Fri, 22 Mar 2013 09:54:43 +0000 (09:54 +0000)]
Fix #34667: trail_count option missing for Particle (emitter) System Render Panel "Path" UI

Patch from Josh Wedlake, many thanks!

7 years agoFix #34720: Sculpt mode T panel has no texture preview
Sergey Sharybin [Fri, 22 Mar 2013 09:42:16 +0000 (09:42 +0000)]
Fix #34720: Sculpt mode T panel has no texture preview

Cycles was not able to render texture icons, same actually
goes to lux. Now made it so blender internal is used to render
icons for textures.

7 years agoFix #34689: Multilayer EXRs don't load correctly if one layer is named and the other...
Sergey Sharybin [Fri, 22 Mar 2013 09:18:35 +0000 (09:18 +0000)]
Fix #34689: Multilayer EXRs don't load correctly if one layer is named and the other is not

OpenEXR's ChannelList.layers() will not include empty layer names,
which caused the issue. Made it so if there's one non-empty layer
name, check for empty names happens.

If there's empty layer name in case one non-empty layer name, file
will be considered multilayer now.

7 years agoAttempt to fix windows building with scons
Sergey Sharybin [Fri, 22 Mar 2013 08:53:11 +0000 (08:53 +0000)]
Attempt to fix windows building with scons

7 years agoFix for compositor node preview sizes: Use the render output aspect ratio for estimat...
Lukas Toenne [Fri, 22 Mar 2013 08:50:56 +0000 (08:50 +0000)]
Fix for compositor node preview sizes: Use the render output aspect ratio for estimating the required preview rect size instead of assuming a square, to avoid wasted space. Note that this does not work for newly added nodes until they have first been evaluated and a preview image has been generated (same behavior as before pynodes merge and associated preview changes).

7 years agocorrect enums which were in fact variables defined in headers.
Campbell Barton [Fri, 22 Mar 2013 05:46:39 +0000 (05:46 +0000)]
correct enums which were in fact variables defined in headers.

7 years agocode cleanup: use NULL rather then 0 for pointers, and make vars static where possible.
Campbell Barton [Fri, 22 Mar 2013 05:34:10 +0000 (05:34 +0000)]
code cleanup: use NULL rather then 0 for pointers, and make vars static where possible.
also found unintentionally defined enum/struct variables that where only meant to be defining the type.

7 years agocode cleanup: use booleans and const's for operator vars.
Campbell Barton [Fri, 22 Mar 2013 04:40:45 +0000 (04:40 +0000)]
code cleanup: use booleans and const's for operator vars.

7 years agofix error with merge operator not handing error cases properly (errors wouldn't cance...
Campbell Barton [Fri, 22 Mar 2013 04:39:43 +0000 (04:39 +0000)]
fix error with merge operator not handing error cases properly (errors wouldn't cancel the operator as they should).
was mixing up OPERATOR_CANCELLED with 0.

7 years agoTweak to previous commit - make range check less strict so that indicators don't
Joshua Leung [Fri, 22 Mar 2013 03:25:31 +0000 (03:25 +0000)]
Tweak to previous commit - make range check less strict so that indicators don't
flicker off so easily when target moves off screen

7 years agoGraph Editor: Draw indicators on the active Driver F-Curve which show the
Joshua Leung [Fri, 22 Mar 2013 02:28:55 +0000 (02:28 +0000)]
Graph Editor: Draw indicators on the active Driver F-Curve which show the
relationship between the result of driver evaluation (NKEY region stuff) and the
end result applied to the driven properties.

Example:
http://www.pasteall.org/pic/47687