Commit Graph

52002 Commits

Author SHA1 Message Date
Campbell Barton 7c75bfd744 minor change r53918 was supposed to resolve. 2013-01-20 11:54:43 +00:00
Jason Wilkins 80410a4ff6 removed incorrect comment in draw_nla_channel_list_gl 2013-01-20 10:04:11 +00:00
Jason Wilkins 6a522ac058 removed extraneous glEnable(GL_BLEND)/glDisable(GL_BLEND) in ui_draw_aligned_panel 2013-01-20 09:41:46 +00:00
Jason Wilkins 517ac5c57c edited wmSubWindowScissorSet for readability 2013-01-20 09:22:11 +00:00
Campbell Barton 8aa891ac6d correction for msvc2008 2013-01-20 08:43:44 +00:00
Campbell Barton bc44e81dff fix own bug with uninitialized arrays in subdivide (from recent BLI_array.h update)
also quiet warning.
2013-01-20 08:05:23 +00:00
Nicholas Bishop 7db7d7f210 Use KKEY in sculpt mode to activate the snake hook brush
This brush is more useful now with dynamic topology, deserves its own
key binding.
2013-01-20 00:51:52 +00:00
Nicholas Bishop 4ca7bad748 Delete loose edges left behind by sculpting with collapse-short-edges
After deleting a face, check for unused edges and delete them.

Fixes bug [#33891]
projects.blender.org/tracker/?func=detail&aid=33891&group_id=9&atid=498
2013-01-20 00:46:33 +00:00
Nicholas Bishop 4256ad7566 Update object bounding box during sculpt
Fixes the sculpt object being incorrectly clipped during drawing due
to an out-of-date bounding box making it seem that the object had gone
outside the view.

Added a BKE_pbvh function to get the top-level bounding box. In
sculpt_flush_update(), where the PBVH bounds are updated, the result
is copied to the object's bounding box.

Fixes bug [#33790]
projects.blender.org/tracker/?func=detail&aid=33790&group_id=9&atid=498
2013-01-20 00:19:57 +00:00
Nicholas Bishop 383987560b Disable OpenMP with dyntopo in paint_mesh_restore_co()
Otherwise, new entries might be inserted by sculpt_undo_push_node()
into the GHash used internally by BM_log_original_vert_co() by a
different thread.

Fixes bug [#33787]
http://projects.blender.org/tracker/?func=detail&aid=33787&group_id=9&atid=498
2013-01-19 23:52:33 +00:00
Nicholas Bishop 9a50f45469 Skip hidden faces in PBVH BMesh ray intersection test
Moved the GPU function gpu_bmesh_face_visible() to BKE_paint and
inverted the test to match equivalent tests for other mesh types:
paint_is_bmesh_face_hidden().

Changed BKE_pbvh_bmesh_node_save_orig() to not save hidden faces into
the triangle array.

Modified the non-use-original branch of pbvh_bmesh_node_raycast() to
skip hidden faces.

Fixes bug #33914:
projects.blender.org/tracker/index.php?func=detail&aid=33914&group_id=9&atid=498
2013-01-19 16:10:21 +00:00
Campbell Barton 3997630157 use malloc for BLI array reallocation. Existing code initializes memory. 2013-01-19 07:41:15 +00:00
Campbell Barton 23af6743c7 code cleanup: BLI_array.h's BLI_array_grow_items macro was unmanageable.
moved the main re-alloc logic into a C function.
2013-01-19 07:35:55 +00:00
Campbell Barton 162c331417 style cleanup 2013-01-19 06:12:25 +00:00
Campbell Barton 9051868564 patch [#33923] Patch for Node Theme Colors
from Gavin Howard (gdh)
2013-01-19 04:20:53 +00:00
Campbell Barton 9a4da5a2f1 utility function to get a mempool as a pointer array. 2013-01-19 03:51:17 +00:00
Campbell Barton bf355362b1 replace error prints with asserts in BLI_mempool when an iterator function is called on a non-iterator flagged pool. 2013-01-19 03:16:52 +00:00
Campbell Barton 53e383ff9d patch [#33924] Spelling Corrections
from Gavin Howard (gdh)
2013-01-19 03:04:51 +00:00
Campbell Barton 5006a39c27 replace calloc with malloc for arrays that are filled in right after. 2013-01-19 02:37:04 +00:00
Campbell Barton 38825f891e use openmp for building bmesh arrays, also replace calloc with malloc. 2013-01-19 02:21:53 +00:00
Campbell Barton f45d8827ba CDDM_merge_verts() was building an index array for all loops and not using it.
also use malloc over calloc since the values are filled in right after.
2013-01-19 02:01:18 +00:00
Campbell Barton f251eb3f0c minor dyntopo speedup: was doing 2x ghash lookups for BM_log_face_removed(), BM_log_vert_removed(), only one needed. 2013-01-19 00:53:33 +00:00
Campbell Barton a8abc11e42 dyntopo optimization - fast path for edges with 2 faces using it, was counting the edge-faces then using an iterator,
instead use BM_edge_loop_pair()
2013-01-19 00:17:10 +00:00
Campbell Barton d4bf47350f Holding Alt now removes [-1, 1] clamping in vertex slide, Thanks to Psy-Fi for the original patch. 2013-01-18 23:20:17 +00:00
Campbell Barton 32ce3a6ca7 utility vector functions for flipping one vector about another:
nicer then interp_v3_v3v3(v, v1, v2, -1.0f);
2013-01-18 23:07:27 +00:00
Tamito Kajiyama 806e727370 Suppressed MSVC warning C4521: multiple copy constructors specified. 2013-01-18 22:10:20 +00:00
Campbell Barton b7a2402da6 fix for building with BSD & MinGW. 2013-01-18 21:05:37 +00:00
Campbell Barton 5f9ea0d7eb move draw all edges into the object settings (object panel), makes more sense here since its next to draw extra wire 2013-01-18 19:01:26 +00:00
Sergey Sharybin a08a3ab931 Fix #33916: 2.65a regression: particles duplicating objects with halo - crash
allow_render_dupli_instance used to pass zero-based index to give_current_material
which is wrong.

Before rev53332 it wasn't so much visible because give_current_material used
to clamp index internally. But that was wrong behavior here anyway, and why
nobody noticed this for so long? :)
2013-01-18 12:29:18 +00:00
Sergey Sharybin 9660ba6c2b Fix #33910: Wipe effect starts and stops to early with blur enabled.
Made small tweaks which now limits blur width in a way it can not
be wider than distance between frame boundary and wipe effect center.
It eliminates weirdeness of how blur appears/disappears in cases
effect fac is close to 0/1.

Could be tweaked further but will require effect rewrite it seems.
2013-01-18 09:36:17 +00:00
Alex Fraser 55030a4c1a Applying sRGB color space transform when baking to vertex colors. Thanks to Campbell Barton and Sergey Sharybin for their help! 2013-01-18 09:19:43 +00:00
Sergey Sharybin 6a5cdde899 Fix #33913: Unable to set sequencer proxy custom directory as relative path
Added absolute->relative conversion for directory in file_browse_exec.
This is how other places deals with this, but perhaps we'd better change
file selection so both filepath and directory are affected by relative
option.
2013-01-18 08:44:55 +00:00
Campbell Barton ee0eb394c9 use openmp sections for felling origindex arrays 2013-01-18 06:26:06 +00:00
Tamito Kajiyama 008de305ef Removed unused variable d2 and calculation of its value in GeomUtils::intersect2dSeg2dSegParametric().
It is double-checked that this is not a bug :)
This fix was suggested as part of the patch set committed in revision 53887, thanks again Bastien!
2013-01-18 02:22:51 +00:00
Tamito Kajiyama 68715c5ca7 A patch set from Bastien Montagne (thanks!) for silencing build warnings (from gcc 4.7),
mostly by commenting out unused variables, or using the BLI's SET_UINT_IN_POINTER macro.
2013-01-18 02:13:36 +00:00
Alexander Pinzon 9e8c509213 The problem of the peaks is corrected with the use of the normalized version. 2013-01-17 19:19:02 +00:00
Campbell Barton 8a0ad8f8b5 fix for text selection glitch, moving the mouse to the left would sometimes not entirely select the start of the text. 2013-01-17 19:12:11 +00:00
Campbell Barton 2b80a7d5da use define for text offset & seletion.
and no need to calloc memory for string selection.
2013-01-17 18:59:19 +00:00
Ton Roosendaal a896366ca9 My bad - commit today for "Continuous Grab" fix ignored the comment that
bounds could be NULL :) Crash fixed.
2013-01-17 15:27:58 +00:00
Bastien Montagne b8116ed659 "Fix" for [#33903] Wrong description string in "remove vertices from vertex group" function - just making the tooltip describe both possible actions by this op! 2013-01-17 13:29:32 +00:00
Ton Roosendaal 0193c88083 Bug fix #33887
Ancient issue: on much zoomed in UIs, text selecting or cursor placement
in Text-input buttons was off.
2013-01-17 11:35:33 +00:00
Ton Roosendaal 7af0fff9d8 Bug fix #33892
HiDPI "retina" mode didn't work for "Continuous Grab" yet.

Note; this mode works by having different coordinate systems
for pixels and window/mouse coords. I really hope future
HiDPI implementations use the same trick.
2013-01-17 10:16:40 +00:00
Campbell Barton 9b57b2315c include svn revision in the crash log, also free smoothview on the off-chance you manage to exit blender while the view is moving :) 2013-01-17 09:11:51 +00:00
Campbell Barton 146d1b9cab minor changes to view3d
- BKE_camera_params_from_object now sets the lens to 35 if the object isnt a camera/lamp, without this the view3d lens would be used in camera view.
- running smooth-view multiple times now stores the initial user view rather then over-writing from the current state each time re-smoothview runs.
- redraw panels after smoothview finishes.
2013-01-17 08:46:46 +00:00
Campbell Barton d9855243d2 Accidentally added commented line when testing smoothview fix. 2013-01-17 08:07:09 +00:00
Campbell Barton 5f35d91ab5 fix [#33894] Viewport heavily distorted
The SmoothView operator was mixing up source-view and original-view parameters cleanup this operator and add 'original' view settings store.
2013-01-17 08:05:48 +00:00
Campbell Barton c1f6261aee fix for own bug introduced when splitting up vertex slide function. 2013-01-17 06:21:20 +00:00
Campbell Barton 3040a6abaf - draw inner pressure circle for weightpaint, vertexpaint, projectpaint modes.
- only draw pressure circle if the pressure is used for brush size.
- remove 'last-pressure' workaround for project paint, its no longer needed.
2013-01-17 04:24:22 +00:00
Campbell Barton 2fe92248a0 change to pressure & sculpt mode:
Ignore size+pressure when the sculpt tool doesnt use dynamic size brushes (grab, thumb for eg).

The problem was if you didnt jab the stylus on the tablet hard enough you'd end up with a tiny brush since the initial pressure was used.
2013-01-17 04:00:51 +00:00
Campbell Barton 0f981edc99 fix airbrush + tablet pressure bug.
Timer events used by the airbrush would always give a pressure of 1.0, ignoring the tablets real pressure in all paint modes.

Move tablet data into its own struct-member so it can be used with timer events.
2013-01-17 03:41:23 +00:00