blender.git
7 years agocode cleanup: quiet warnings
Campbell Barton [Thu, 13 Dec 2012 00:47:47 +0000 (00:47 +0000)]
code cleanup: quiet warnings

7 years agofix another crash from missing update in Auto-Merge from r52911
Campbell Barton [Thu, 13 Dec 2012 00:41:23 +0000 (00:41 +0000)]
fix another crash from missing update in Auto-Merge from r52911

7 years agoCan now set a lower bound on the number of subframes (i.e. an upper bound on the...
Alex Fraser [Wed, 12 Dec 2012 22:42:55 +0000 (22:42 +0000)]
Can now set a lower bound on the number of subframes (i.e. an upper bound on the time step size) for fluid simulations. Previously, the "subframes" parameter was not available when the adaptive time step was enabled; now they can both be set. The two settings can be used together to greatly increase simulation stability.

7 years agoBugfix, irc report:
Ton Roosendaal [Wed, 12 Dec 2012 22:02:08 +0000 (22:02 +0000)]
Bugfix, irc report:

Crash on running in background mode. Calling GHOST function, but there is
no GHOST initialized. Easy to skip.

7 years agoDisable a bugfix I did - to prevent event timers to be used still.
Ton Roosendaal [Wed, 12 Dec 2012 20:31:12 +0000 (20:31 +0000)]
Disable a bugfix I did - to prevent event timers to be used still.
Code looks sane, but somehow it frustrates the panel animation timer, causing
freezes now. Work for tomorrow.

7 years agoCrash, IRC report.
Ton Roosendaal [Wed, 12 Dec 2012 19:56:24 +0000 (19:56 +0000)]
Crash, IRC report.

Moving panels in a buttons-region around was calling menu code, reading NULL pointer.
Seems to be an existing issue, not caused by my previous commit :)

7 years agoOSX: make cmake and scons both compile jack and ndof with newer sdk's
Jens Verwiebe [Wed, 12 Dec 2012 19:54:14 +0000 (19:54 +0000)]
OSX: make cmake and scons both compile jack and ndof with newer sdk's

7 years agoGHOST should now be finally fixed
Sergey Sharybin [Wed, 12 Dec 2012 19:20:36 +0000 (19:20 +0000)]
GHOST should now be finally fixed

7 years agoBetter patch for pixelsize to be zero - ghost code is going to be fixed next.
Ton Roosendaal [Wed, 12 Dec 2012 19:16:19 +0000 (19:16 +0000)]
Better patch for pixelsize to be zero - ghost code is going to be fixed next.

7 years agoQuick fix for ghost error - solves pixelsize to return 0.
Ton Roosendaal [Wed, 12 Dec 2012 19:09:25 +0000 (19:09 +0000)]
Quick fix for ghost error - solves pixelsize to return 0.

7 years agoHoliday coding log :)
Ton Roosendaal [Wed, 12 Dec 2012 18:58:11 +0000 (18:58 +0000)]
Holiday coding log :)

Nice formatted version (pictures soon):
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability

Short list of main changes:

- Transparent region option (over main region), added code to blend in/out such panels.
- Min size window now 640 x 480
- Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake.
- Macbook retina support, use command line --no-native-pixels to disable it
- Timeline Marker label was drawing wrong
- Trackpad and magic mouse: supports zoom (hold ctrl)
- Fix for splash position: removed ghost function and made window size update after creation immediate
- Fast undo buffer save now adds UI as well. Could be checked for regular file save even...
  Quit.blend and temp file saving use this now.
- Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)"
- New Userpref option "Keep Session" - this always saves quit.blend, and loads on start.
  This allows keeping UI and data without actual saves, until you actually save.
  When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header)
- Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v).
  Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards.
- User preferences (themes, keymaps, user settings) now can be saved as a separate file.
  Old option is called "Save Startup File" the new one "Save User Settings".
  To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still.
- OSX: fixed bug that stopped giving mouse events outside window.
  This also fixes "Continuous Grab" for OSX. (error since 2009)

7 years agoOSX/cmake: fix ndof compile
Jens Verwiebe [Wed, 12 Dec 2012 18:31:19 +0000 (18:31 +0000)]
OSX/cmake: fix ndof compile

7 years agoRNA properties for width and height of nodes.
Lukas Toenne [Wed, 12 Dec 2012 17:50:44 +0000 (17:50 +0000)]
RNA properties for width and height of nodes.

Note: For most node types the height is determined automatically.
Note2: There are two independent width values, one for regular nodes and one for the collapsed ("hidden") state.

7 years agoFix for range checks in generated RNA functions. The code was skipping the value...
Lukas Toenne [Wed, 12 Dec 2012 17:50:35 +0000 (17:50 +0000)]
Fix for range checks in generated RNA functions. The code was skipping the value clamping for float and int properties if using the min/max values of the respective number format, but not taking into account range callbacks of the property.

7 years agoFix error compiling in debug build, should test #ifndef NDEBUG instead of
Brecht Van Lommel [Wed, 12 Dec 2012 16:51:05 +0000 (16:51 +0000)]
Fix error compiling in debug build, should test #ifndef NDEBUG instead of

7 years agofix for another crash in r52911
Campbell Barton [Wed, 12 Dec 2012 16:39:16 +0000 (16:39 +0000)]
fix for another crash in r52911

7 years agoedge slide: skip creating BMBVHTree when its not used.
Campbell Barton [Wed, 12 Dec 2012 16:32:05 +0000 (16:32 +0000)]
edge slide: skip creating BMBVHTree when its not used.

7 years agostyle cleanup: also change node selection method not to compare nodes a lot.
Campbell Barton [Wed, 12 Dec 2012 15:41:15 +0000 (15:41 +0000)]
style cleanup: also change node selection method not to compare nodes a lot.

7 years agoremove context argument from EDBM_update_generic()
Campbell Barton [Wed, 12 Dec 2012 15:22:54 +0000 (15:22 +0000)]
remove context argument from EDBM_update_generic()

7 years agofix for crash in own commit r52911
Campbell Barton [Wed, 12 Dec 2012 15:01:27 +0000 (15:01 +0000)]
fix for crash in own commit r52911

7 years agoFix related to #33480: for blender internal volume rendering, the camera inside
Brecht Van Lommel [Wed, 12 Dec 2012 14:43:11 +0000 (14:43 +0000)]
Fix related to #33480: for blender internal volume rendering, the camera inside
volume wasn't accurate, it still isn't quite but hopefully a bit better by
taking clip start into account.

With clip start it's actually impossible to do a single 'inside' test, since
there will not be a single point where all camera rays start from, though for
small clip start they will be close together.

7 years agoCycles: disable scaling up of ray differentials after diffuse/glossy bounce, this
Brecht Van Lommel [Wed, 12 Dec 2012 14:43:07 +0000 (14:43 +0000)]
Cycles: disable scaling up of ray differentials after diffuse/glossy bounce, this
isn't working well for OSL texture filtering and wasn't very helpful to begin
with, a better solution should be possible.

7 years agofix [#33489] Scaling normals with Alt (maintains shell thickness) producing wrong...
Campbell Barton [Wed, 12 Dec 2012 14:34:21 +0000 (14:34 +0000)]
fix [#33489] Scaling normals with Alt (maintains shell thickness) producing wrong result.

not exactly a bug - zero area faces from a cancelled extrude gave issues - but this is a common use case, so make it work by only using selected faces when calculating the vertex shell thickness.

7 years agomove edge split into its own function which can be called by the modifier without...
Campbell Barton [Wed, 12 Dec 2012 12:57:27 +0000 (12:57 +0000)]
move edge split into its own function which can be called by the modifier without having to call a bmesh operator (gives some speedup).

7 years agoFix for menu context. The menu draw function context did not inherit the custom conte...
Lukas Toenne [Wed, 12 Dec 2012 12:50:49 +0000 (12:50 +0000)]
Fix for menu context. The menu draw function context did not inherit the custom context storage from the original uiLayout yet. Fix by Campbell Barton (ideasman_42).

7 years agoFix for misleading doc string of panel header options.
Lukas Toenne [Wed, 12 Dec 2012 12:50:45 +0000 (12:50 +0000)]
Fix for misleading doc string of panel header options.

7 years agoA few basic Python operators for adding nodes in the node editor tree. These operator...
Lukas Toenne [Wed, 12 Dec 2012 12:50:43 +0000 (12:50 +0000)]
A few basic Python operators for adding nodes in the node editor tree. These operators basically have the same functionality as the 'Add' menu (which currently does not even use operators itself). They can be used in customized tools.

The node_add_move operator is an extended variant which starts the (modal) transform operator right after adding a node, as a quicker way of inserting nodes in a tree.

7 years agoToolbar region for the node editor. This region is, for now, empty and hidden by...
Lukas Toenne [Wed, 12 Dec 2012 12:50:39 +0000 (12:50 +0000)]
Toolbar region for the node editor. This region is, for now, empty and hidden by default. Later on we might add standard panels here, but at least it will give addons a place to register tool shelf panels.

7 years agoSequencer: add textured solid option for opengl preview
Sergey Sharybin [Wed, 12 Dec 2012 12:42:12 +0000 (12:42 +0000)]
Sequencer: add textured solid option for opengl preview

7 years agouse header only tags for edge split (to prepare to move this into tools/)
Campbell Barton [Wed, 12 Dec 2012 12:29:37 +0000 (12:29 +0000)]
use header only tags for edge split (to prepare to move this into tools/)

7 years agoRevert recent workaround for sequencer, it'll only work in cases
Sergey Sharybin [Wed, 12 Dec 2012 12:23:30 +0000 (12:23 +0000)]
Revert recent workaround for sequencer, it'll only work in cases
scene strip is added at frame 1, which is very limited usecase.

Proper solution is not possible yet..

7 years agoBug fix [#33492] Right click on 'confirm reload' crashes
Ton Roosendaal [Wed, 12 Dec 2012 12:18:29 +0000 (12:18 +0000)]
Bug fix [#33492] Right click on 'confirm reload' crashes

Context check could result in NULL - added provision for it and made
sure the check is local only (for 1 new option)

7 years agoSequencer old todo: inserting keyframes with preview opened didn't work
Sergey Sharybin [Wed, 12 Dec 2012 11:12:37 +0000 (11:12 +0000)]
Sequencer old todo: inserting keyframes with preview opened didn't work

Solved in more like a workaround way by not calling BKE_scene_update_for_newframe
if scene's frame didn't change.

7 years agoUse own list of actions for Vertex Group Lock operator instead of reusing Select...
Sv. Lockal [Wed, 12 Dec 2012 10:21:24 +0000 (10:21 +0000)]
Use own list of actions for Vertex Group Lock operator instead of reusing Select All actions.

Previous actions and descriptions were confusing, e. g. UnLock All used the description of Deselect All.

7 years agorevert recent code cleanup which introduced const parameters
Gaia Clary [Wed, 12 Dec 2012 09:49:05 +0000 (09:49 +0000)]
revert recent code cleanup which introduced const parameters

7 years agoFix #33486: cycles CPU image textures were offset wrong by half a pixel compared
Brecht Van Lommel [Wed, 12 Dec 2012 09:17:21 +0000 (09:17 +0000)]
Fix #33486: cycles CPU image textures were offset wrong by half a pixel compared
to OpenGL/CUDA/OSL rendering.

7 years agofix for EDBM_index_arrays_ensure not working as intended.
Campbell Barton [Wed, 12 Dec 2012 07:31:22 +0000 (07:31 +0000)]
fix for EDBM_index_arrays_ensure not working as intended.

7 years agoadd threshold for bmesh & openmp so its not used with low poly meshes, BM_OMP_LIMIT...
Campbell Barton [Wed, 12 Dec 2012 07:20:34 +0000 (07:20 +0000)]
add threshold for bmesh & openmp so its not used with low poly meshes, BM_OMP_LIMIT may need tweaking.

7 years agoadd destructive argument to bmesh.update_edit_mesh()
Campbell Barton [Wed, 12 Dec 2012 06:57:41 +0000 (06:57 +0000)]
add destructive argument to bmesh.update_edit_mesh()

7 years agomake EDBM_index_arrays's stay in memory, blender was allocating an array and filling...
Campbell Barton [Wed, 12 Dec 2012 06:53:39 +0000 (06:53 +0000)]
make EDBM_index_arrays's stay in memory, blender was allocating an array and filling it for verts/edges/faces on every redraw.

this may introduce bugs which I didn't catch, but they are very easy to identify in a debug build which has asserts to ensure the arrays are valid before use.

in my own test drawing ~98,304 quads - this gave an overall ~16% drawing speedup.

7 years agoFix #33485: cycles OSL now autodetects the presence of emission and transparent
Brecht Van Lommel [Wed, 12 Dec 2012 06:51:06 +0000 (06:51 +0000)]
Fix #33485: cycles OSL now autodetects the presence of emission and transparent
closures to enable multiple importance sampling and transparent shadows.

7 years agouse htype flags as arguments to EDBM_index_arrays_init(), no functional changes.
Campbell Barton [Wed, 12 Dec 2012 05:27:52 +0000 (05:27 +0000)]
use htype flags as arguments to EDBM_index_arrays_init(), no functional changes.

7 years agouse openmp to thread some common bmesh operations
Campbell Barton [Wed, 12 Dec 2012 05:04:01 +0000 (05:04 +0000)]
use openmp to thread some common bmesh operations
- BM_mesh_elem_toolflags_ensure / bmo_flag_layer_alloc / bmo_flag_layer_free / bmo_flag_layer_clear
- BM_mesh_select_flush
- EDBM_index_arrays_init

notes:
- mostly use openmp `sections` to split operations on vert/edge/face since this is a fairly minor change.
- split tool flag pool in 3, this means we can allocate exact sizes needed and iterate on them in threads without alloc'ing.

7 years agoassert in debug builds if MEM_ alloc's are called in openmp threads.
Campbell Barton [Wed, 12 Dec 2012 04:41:23 +0000 (04:41 +0000)]
assert in debug builds if MEM_ alloc's are called in openmp threads.
note: the caller can do locking to prevent errors - but this isn't being done in blender yet, so this prevents accidental allocs in openmp for now.

7 years agoreplace BLI_array_declare with BLI_array_staticdeclare() and BLI_array_alloca() for...
Campbell Barton [Wed, 12 Dec 2012 02:48:03 +0000 (02:48 +0000)]
replace BLI_array_declare with BLI_array_staticdeclare() and BLI_array_alloca() for smaller arrays.

7 years agoFix for cloth/smoke: Collision and flow objects always had to be on the same layer.
Daniel Genrich [Tue, 11 Dec 2012 20:39:54 +0000 (20:39 +0000)]
Fix for cloth/smoke: Collision and flow objects always had to be on the same layer.

Reported and patch by MiikaH

7 years agoInstall dependencies used to always mark schro as used for suse.
Sergey Sharybin [Tue, 11 Dec 2012 19:45:16 +0000 (19:45 +0000)]
Install dependencies used to always mark schro as used for suse.
Now it should respect all features option.

Also removed some duplicated entries.

7 years agoOSL Shader Files:
Thomas Dinges [Tue, 11 Dec 2012 16:06:03 +0000 (16:06 +0000)]
OSL Shader Files:
* Simplify default color values, where each component was the same.
* Initialize closures as Null Closure, rather than assigning an existing closure, gets overwritten anyways.

7 years agochange to r52888, since we dont always want ED_view3d_offset_distance() to give a...
Campbell Barton [Tue, 11 Dec 2012 15:56:11 +0000 (15:56 +0000)]
change to r52888, since we dont always want ED_view3d_offset_distance() to give a corrected value, instead pass a fallback so callers don't allow zero by accident.

7 years agofix for building with msvc
Campbell Barton [Tue, 11 Dec 2012 15:29:08 +0000 (15:29 +0000)]
fix for building with msvc

7 years agoimage stamp data's strings could be short enough not to fit the entire ID name length.
Campbell Barton [Tue, 11 Dec 2012 15:14:35 +0000 (15:14 +0000)]
image stamp data's strings could be short enough not to fit the entire ID name length.

7 years agoreplace BLI_array_fixedstack_declare with() new macro BLI_array_alloca() which uses...
Campbell Barton [Tue, 11 Dec 2012 15:10:19 +0000 (15:10 +0000)]
replace BLI_array_fixedstack_declare with() new macro BLI_array_alloca() which uses stack memory always and doesn't need to be freed explicitly.

7 years agofix for warnings/errors in recent commits
Campbell Barton [Tue, 11 Dec 2012 15:06:51 +0000 (15:06 +0000)]
fix for warnings/errors in recent commits

7 years agoBug fix, irc report:
Ton Roosendaal [Tue, 11 Dec 2012 14:45:38 +0000 (14:45 +0000)]
Bug fix, irc report:

When camera is the pivot of 3d window, and you go to camera view, moving out of
view with MMB drag causes zooming to stop working. Zooms depend on view3d "dist"
value, which then became zero.

This fix just makes dist "1.0" then, arbitrary but keeps things at least work.
(Tried restoring to previous 'dist', but this fails in cases too)

7 years agoCycles OSL: add diffuse_ramp closure in addition to phong_ramp.
Brecht Van Lommel [Tue, 11 Dec 2012 14:39:41 +0000 (14:39 +0000)]
Cycles OSL: add diffuse_ramp closure in addition to phong_ramp.

7 years agoCycles: RGB and Vector Curves nodes now supported, with the limitation that the
Brecht Van Lommel [Tue, 11 Dec 2012 14:39:37 +0000 (14:39 +0000)]
Cycles: RGB and Vector Curves nodes now supported, with the limitation that the
range must be left to the default (0..1 and -1..1).

7 years agoCycles: trick to make building with OSL trunk work as well, it has a different
Brecht Van Lommel [Tue, 11 Dec 2012 14:39:32 +0000 (14:39 +0000)]
Cycles: trick to make building with OSL trunk work as well, it has a different
name for LoadMemoryShader so we make it call the right name depending on which
is available.

7 years agoRNA: add Window x/y position and size access.
Brecht Van Lommel [Tue, 11 Dec 2012 14:39:30 +0000 (14:39 +0000)]
RNA: add Window x/y position and size access.

7 years agoFix issue reported in #32174: IK solver stretch was less stable after a code refactor
Brecht Van Lommel [Tue, 11 Dec 2012 14:39:28 +0000 (14:39 +0000)]
Fix issue reported in #32174: IK solver stretch was less stable after a code refactor
commit, epsilon was supposed to be 0.01 instead of 0.001.

7 years agoFix OS X warning on startup about using deprecated function, when building against...
Brecht Van Lommel [Tue, 11 Dec 2012 14:39:26 +0000 (14:39 +0000)]
Fix OS X warning on startup about using deprecated function, when building against 10.8 SDK.

7 years agominor speedup - replace use of smallhash with api_flags for BM_edge_split()
Campbell Barton [Tue, 11 Dec 2012 14:30:12 +0000 (14:30 +0000)]
minor speedup - replace use of smallhash with api_flags for BM_edge_split()

7 years agodefine the size of matrix args for both rows/cols.
Campbell Barton [Tue, 11 Dec 2012 14:29:01 +0000 (14:29 +0000)]
define the size of matrix args for both rows/cols.

7 years agoown cleanup commit in bmesh branch - removed last letters from ends of some comments.
Campbell Barton [Tue, 11 Dec 2012 14:24:27 +0000 (14:24 +0000)]
own cleanup commit in bmesh branch - removed last letters from ends of some comments.

7 years agowas using max short on a float in EDBM_face_find_nearest()
Campbell Barton [Tue, 11 Dec 2012 14:21:52 +0000 (14:21 +0000)]
was using max short on a float in EDBM_face_find_nearest()

7 years agouse const char for display device
Campbell Barton [Tue, 11 Dec 2012 14:20:29 +0000 (14:20 +0000)]
use const char for display device

7 years agocode cleanup: neareast -> nearest
Campbell Barton [Tue, 11 Dec 2012 14:19:41 +0000 (14:19 +0000)]
code cleanup: neareast -> nearest

7 years agocode cleanup: spelling labda -> lambda
Campbell Barton [Tue, 11 Dec 2012 14:18:37 +0000 (14:18 +0000)]
code cleanup: spelling labda -> lambda

7 years agoFix some RNA subtypes for collections' active/active_index props (some PROP_POINTER...
Bastien Montagne [Tue, 11 Dec 2012 14:11:46 +0000 (14:11 +0000)]
Fix some RNA subtypes for collections' active/active_index props (some PROP_POINTER had PROP_UNSIGNED!). Harmless, but stupid ;)

7 years agoswitch BLI_ghashutil_strhash() to "djb" hash (as used by glib),
Campbell Barton [Tue, 11 Dec 2012 13:57:58 +0000 (13:57 +0000)]
switch BLI_ghashutil_strhash() to "djb" hash (as used by glib),

Gives approx 10% speedup in my own micro-benchmark looking up operators.

7 years agounfreeze blender, back to bcon1
Campbell Barton [Tue, 11 Dec 2012 13:56:01 +0000 (13:56 +0000)]
unfreeze blender, back to bcon1

7 years agoBugfix [#33467] Fluid Simulations Speed factor animated wrong result
Daniel Genrich [Tue, 11 Dec 2012 13:02:42 +0000 (13:02 +0000)]
Bugfix [#33467] Fluid Simulations Speed factor animated wrong result

Thanks to Brecht for providing a patch and example blend.
I changed and extended it a bit since there was another bug in that loop.

7 years agoFix #33476: cycles environment texture not showing image sequence options properly.
Brecht Van Lommel [Tue, 11 Dec 2012 11:22:51 +0000 (11:22 +0000)]
Fix #33476: cycles environment texture not showing image sequence options properly.

7 years agoOSL install deps script: set STOP_ON_WARNING to OFF to disable -Werror.
Brecht Van Lommel [Tue, 11 Dec 2012 08:13:56 +0000 (08:13 +0000)]
OSL install deps script: set STOP_ON_WARNING to OFF to disable -Werror.

7 years agoFix game player still not using fast GPU mipmap generation, user preferencs
Brecht Van Lommel [Tue, 11 Dec 2012 08:01:16 +0000 (08:01 +0000)]
Fix game player still not using fast GPU mipmap generation, user preferencs
are not actually used here.

7 years agoSplash template XCF file for Gimp.
Brecht Van Lommel [Tue, 11 Dec 2012 08:01:05 +0000 (08:01 +0000)]
Splash template XCF file for Gimp.

7 years agocmake wouldn't build since it was missing files added in r52858.
Campbell Barton [Tue, 11 Dec 2012 05:57:42 +0000 (05:57 +0000)]
cmake wouldn't build since it was missing files added in r52858.

7 years agoupdate api changelog
Campbell Barton [Tue, 11 Dec 2012 02:13:42 +0000 (02:13 +0000)]
update api changelog

7 years agoAudaspace:
Joerg Mueller [Mon, 10 Dec 2012 16:58:47 +0000 (16:58 +0000)]
Audaspace:
Implemented forgotten Calculator classes from boost migration.

7 years agoFix for maya keymap
Sergey Sharybin [Mon, 10 Dec 2012 14:06:57 +0000 (14:06 +0000)]
Fix for maya keymap

7 years agoSplash screen for 2.65, created by Jordan Schur.
Brecht Van Lommel [Mon, 10 Dec 2012 14:01:08 +0000 (14:01 +0000)]
Splash screen for 2.65, created by Jordan Schur.

7 years agoFix cycles OSL + AO enabled in world settings not working correct.
Brecht Van Lommel [Mon, 10 Dec 2012 12:56:56 +0000 (12:56 +0000)]
Fix cycles OSL + AO enabled in world settings not working correct.

7 years ago2.65 commit: version bump
Sergey Sharybin [Mon, 10 Dec 2012 11:01:13 +0000 (11:01 +0000)]
2.65 commit: version bump

7 years agoFix shader nodes Normal node not showing right direction choosing widget.
Brecht Van Lommel [Mon, 10 Dec 2012 10:44:08 +0000 (10:44 +0000)]
Fix shader nodes Normal node not showing right direction choosing widget.

7 years agoCMake: fix numpy install not getting properly disabled when numpy was not found.
Brecht Van Lommel [Mon, 10 Dec 2012 09:07:57 +0000 (09:07 +0000)]
CMake: fix numpy install not getting properly disabled when numpy was not found.

7 years agofix for knife when clipping was enabled, The knife would not snap to edges/verts...
Campbell Barton [Mon, 10 Dec 2012 08:15:14 +0000 (08:15 +0000)]
fix for knife when clipping was enabled, The knife would not snap to edges/verts outside the clip area but the geometry would still get cut

7 years agofix for knife tool when the mouse was moved outside the clipped area the mouse line...
Campbell Barton [Mon, 10 Dec 2012 07:53:20 +0000 (07:53 +0000)]
fix for knife tool when the mouse was moved outside the clipped area the mouse line would reset to 0/0/0

a few areas that use ED_view3d_win_to_segment_clip() didnt take into account the case where the segment was filly clipped, some callers even needed the segment not to be clipped.
- added ED_view3d_win_to_segment()
- ED_view3d_win_to_segment_clip() now returns FALSE if the segment is totally clipped, but the start/ends of the line are not zero'd as they were before.

7 years agoknife tool was incorrectly moving points into worldspace, then checking clipping...
Campbell Barton [Mon, 10 Dec 2012 07:20:52 +0000 (07:20 +0000)]
knife tool was incorrectly moving points into worldspace, then checking clipping against the object space bounds.
more fixes needed here but at least correct whats there.

also ensure clipping is initialized from the object before handling modal operator events.

7 years agode-duplicate labda_PdistVL2Dfl() & line_point_factor_v2()
Campbell Barton [Mon, 10 Dec 2012 06:14:43 +0000 (06:14 +0000)]
de-duplicate labda_PdistVL2Dfl() & line_point_factor_v2()

7 years agosome of the modal knife key bindings didn't cause a refresh until you moved the mouse...
Campbell Barton [Mon, 10 Dec 2012 05:07:46 +0000 (05:07 +0000)]
some of the modal knife key bindings didn't cause a refresh until you moved the mouse. - snap, angle snap, midpoint snap.

7 years agorevert most of r52820 (patch to fix [#33452]), this caused a regression in text stepp...
Campbell Barton [Mon, 10 Dec 2012 02:06:26 +0000 (02:06 +0000)]
revert most of r52820 (patch to fix [#33452]), this caused a regression in text stepping when ctrl is held.

This adds back the problem that double-clicking on a single char wont select it. Double click selection may need its own logic.

7 years agofix for copying markers to other scenes not working with 10 or more scenes. Regressio...
Campbell Barton [Mon, 10 Dec 2012 01:37:31 +0000 (01:37 +0000)]
fix for copying markers to other scenes not working with 10 or more scenes. Regression from r34115.

7 years agoFix for camera solver not working properly when built with scons
Sergey Sharybin [Sun, 9 Dec 2012 17:42:36 +0000 (17:42 +0000)]
Fix for camera solver not working properly when built with scons

7 years agomake cppcheck run with quiet flag when QUIET env var is set, make bpy.ops.image.proje...
Campbell Barton [Sun, 9 Dec 2012 14:17:33 +0000 (14:17 +0000)]
make cppcheck run with quiet flag when QUIET env var is set, make bpy.ops.image.project_apply() only use local images.

7 years agoFix #33454: cycles wasn't hiding the original object used for dupliverts or
Brecht Van Lommel [Sun, 9 Dec 2012 12:43:40 +0000 (12:43 +0000)]
Fix #33454: cycles wasn't hiding the original object used for dupliverts or
duplifaces like blender internal.

7 years agoBugfix: softshadow in menus was broken.
Ton Roosendaal [Sun, 9 Dec 2012 11:57:06 +0000 (11:57 +0000)]
Bugfix: softshadow in menus was broken.
Already since like 2.61 - when Array draw was added - drawing only shadow
in bottom of menus with bad looking corners.

7 years agoFix for Render Layers node: when sockets are hidden (by 'hide unused sockets' operato...
Lukas Toenne [Sun, 9 Dec 2012 11:41:20 +0000 (11:41 +0000)]
Fix for Render Layers node: when sockets are hidden (by 'hide unused sockets' operator, ctrl+h), newly enabled render passes will not show up in the Render Layers node. The SOCK_HIDDEN flag cancels out the SOCK_UNAVAIL flag in that case. Disable the SOCK_HIDDEN flag as well when showing new passes to avoid confusion.

7 years agoFurther refined the check for GCC 4.2 to not add the flag -Wuninitialized then.
Ton Roosendaal [Sun, 9 Dec 2012 11:31:34 +0000 (11:31 +0000)]
Further refined the check for GCC 4.2 to not add the flag -Wuninitialized then.
Now it checks for "Not less then 4.3" because it doesnt have >= 4.3.

7 years agofix [#33442] Units
Campbell Barton [Sun, 9 Dec 2012 10:48:18 +0000 (10:48 +0000)]
fix [#33442] Units
adding meshes were scaling the user input values so the distance on the button didnt relate to the scale of the object added.

Now use an invoke function that scales unset default values.

7 years agoconsole auto-complete button looked silly when aligned against a menu.
Campbell Barton [Sun, 9 Dec 2012 05:18:56 +0000 (05:18 +0000)]
console auto-complete button looked silly when aligned against a menu.

7 years agostyle cleanup
Campbell Barton [Sun, 9 Dec 2012 05:15:21 +0000 (05:15 +0000)]
style cleanup