Campbell Barton [Wed, 12 Dec 2012 16:39:16 +0000 (16:39 +0000)]
fix for another crash in r52911
Campbell Barton [Wed, 12 Dec 2012 16:32:05 +0000 (16:32 +0000)]
edge slide: skip creating BMBVHTree when its not used.
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.
Campbell Barton [Wed, 12 Dec 2012 15:22:54 +0000 (15:22 +0000)]
remove context argument from EDBM_update_generic()
Campbell Barton [Wed, 12 Dec 2012 15:01:27 +0000 (15:01 +0000)]
fix for crash in own commit r52911
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.
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.
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.
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).
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).
Lukas Toenne [Wed, 12 Dec 2012 12:50:45 +0000 (12:50 +0000)]
Fix for misleading doc string of panel header options.
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.
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.
Sergey Sharybin [Wed, 12 Dec 2012 12:42:12 +0000 (12:42 +0000)]
Sequencer: add textured solid option for opengl preview
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/)
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..
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)
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.
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.
Gaia Clary [Wed, 12 Dec 2012 09:49:05 +0000 (09:49 +0000)]
revert recent code cleanup which introduced const parameters
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.
Campbell Barton [Wed, 12 Dec 2012 07:31:22 +0000 (07:31 +0000)]
fix for EDBM_index_arrays_ensure not working as intended.
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.
Campbell Barton [Wed, 12 Dec 2012 06:57:41 +0000 (06:57 +0000)]
add destructive argument to bmesh.update_edit_mesh()
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
Campbell Barton [Tue, 11 Dec 2012 15:29:08 +0000 (15:29 +0000)]
fix for building with msvc
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.
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.
Campbell Barton [Tue, 11 Dec 2012 15:06:51 +0000 (15:06 +0000)]
fix for warnings/errors in recent commits
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)
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.
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).
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.
Brecht Van Lommel [Tue, 11 Dec 2012 14:39:30 +0000 (14:39 +0000)]
RNA: add Window x/y position and size access.
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.
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.
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()
Campbell Barton [Tue, 11 Dec 2012 14:29:01 +0000 (14:29 +0000)]
define the size of matrix args for both rows/cols.
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.
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()
Campbell Barton [Tue, 11 Dec 2012 14:20:29 +0000 (14:20 +0000)]
use const char for display device
Campbell Barton [Tue, 11 Dec 2012 14:19:41 +0000 (14:19 +0000)]
code cleanup: neareast -> nearest
Campbell Barton [Tue, 11 Dec 2012 14:18:37 +0000 (14:18 +0000)]
code cleanup: spelling labda -> lambda
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 ;)
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.
Campbell Barton [Tue, 11 Dec 2012 13:56:01 +0000 (13:56 +0000)]
unfreeze blender, back to bcon1
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.
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.
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.
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.
Brecht Van Lommel [Tue, 11 Dec 2012 08:01:05 +0000 (08:01 +0000)]
Splash template XCF file for Gimp.
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.
Campbell Barton [Tue, 11 Dec 2012 02:13:42 +0000 (02:13 +0000)]
update api changelog
Joerg Mueller [Mon, 10 Dec 2012 16:58:47 +0000 (16:58 +0000)]
Audaspace:
Implemented forgotten Calculator classes from boost migration.
Sergey Sharybin [Mon, 10 Dec 2012 14:06:57 +0000 (14:06 +0000)]
Fix for maya keymap
Brecht Van Lommel [Mon, 10 Dec 2012 14:01:08 +0000 (14:01 +0000)]
Splash screen for 2.65, created by Jordan Schur.
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.
Sergey Sharybin [Mon, 10 Dec 2012 11:01:13 +0000 (11:01 +0000)]
2.65 commit: version bump
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.
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.
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
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.
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.
Campbell Barton [Mon, 10 Dec 2012 06:14:43 +0000 (06:14 +0000)]
de-duplicate labda_PdistVL2Dfl() & line_point_factor_v2()
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.
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.
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.
Sergey Sharybin [Sun, 9 Dec 2012 17:42:36 +0000 (17:42 +0000)]
Fix for camera solver not working properly when built with scons
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.
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.
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.
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.
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.
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.
Campbell Barton [Sun, 9 Dec 2012 05:18:56 +0000 (05:18 +0000)]
console auto-complete button looked silly when aligned against a menu.
Campbell Barton [Sun, 9 Dec 2012 05:15:21 +0000 (05:15 +0000)]
style cleanup
Campbell Barton [Sun, 9 Dec 2012 03:57:10 +0000 (03:57 +0000)]
patch [#33452] Double click select does not work properly + patch
from Tobias Johansson (mutze)
with some minor edits (don't treat '!' as an operator - python centric)
Antony Riakiotakis [Sun, 9 Dec 2012 01:42:26 +0000 (01:42 +0000)]
CMake:
*Remove WITH_MINGW64 option, automatically test for presence of __MINGW64__ definition instead to determine presence of MinGW32/64.
*Placeholder for LLVM libraries (Compiled locally but still crashing on render due to thread issue).
Campbell Barton [Sat, 8 Dec 2012 13:15:04 +0000 (13:15 +0000)]
bmesh toolflags would use BLI_MEMPOOL_SYSMALLOC when reducing layers only (would use MEM_mallocN in one case but malloc in another). better use blenders MEM_mallocN for both.
Campbell Barton [Sat, 8 Dec 2012 09:43:02 +0000 (09:43 +0000)]
fix [#33431] Impossible to add "None" string to a property
Campbell Barton [Sat, 8 Dec 2012 07:35:54 +0000 (07:35 +0000)]
fix [#33438] Bevel modifier "angle" mode is broken
bevel modifier was making zero area faces & edges that made scanfill fail (since it no longer removes doubles when filling ngons)
Campbell Barton [Sat, 8 Dec 2012 02:16:17 +0000 (02:16 +0000)]
update themes with update_themes.py
Campbell Barton [Sat, 8 Dec 2012 01:16:59 +0000 (01:16 +0000)]
ifdef out dynstr so mathutils can be compiled as an external module again.
Howard Trickey [Fri, 7 Dec 2012 18:45:52 +0000 (18:45 +0000)]
Bevel: fix 'causing artifacts' bug 33245.
Really was caused by a previous bevel making
a two-edged face, which caused other faces to
be dropped when copying a bmesh.
The quadstrip code needed to be more careful
to avoid creating two-edge faces.
Sergey Sharybin [Fri, 7 Dec 2012 13:47:35 +0000 (13:47 +0000)]
Camera tracking: fixed type in camera intrinsics update function
Seems to be from the very beginning here, not sure why nobody noticed this is wrong.
Brecht Van Lommel [Fri, 7 Dec 2012 11:30:40 +0000 (11:30 +0000)]
Fix missing mapping and influence panel for particles when cycles is selected
as render engine. Still missing is colors and texture slots, but that's too
tricky to fix this close to release.
Campbell Barton [Fri, 7 Dec 2012 05:27:09 +0000 (05:27 +0000)]
Add 2 documents to the python api reference.
- Blender/Python Addon Tutorial: a step by step guide on how to write an addon from scratch
- Blender/Python API Reference Usage: examples of how to use the API reference docs
Thanks to John Nyquist for editing these docs and giving feedback.
Benoit Bolsee [Thu, 6 Dec 2012 22:23:58 +0000 (22:23 +0000)]
Fix bug #33176: Deactivating both position and rotation target from iTaSC IK-Solver crashes Blender. No constraint is created for target in that case, just needed to add a check.
Campbell Barton [Thu, 6 Dec 2012 21:59:16 +0000 (21:59 +0000)]
fix for texture_slot path, would give incorrect path when used with brushes which only have one texture slot.
also quiet float/double warning.
Sergey Sharybin [Thu, 6 Dec 2012 21:08:24 +0000 (21:08 +0000)]
Fix #33433: Importing video files into movie clip editor crashes Blender
This was a regression in svn rev52718 caused by the fact that we can not
free packet fun until we've finished all manipulation with decoded frame
since frame and packet could share same pointers.
For now restored old behavior of next_packet which seems to be well
tested and better not do bigger refactoring here so close to release.
Memory leak fixed by that revision was fixed by calling av_free_packet
just before avcodec_decode_video2 in cases we're at the end of file.
Tested with valgrind and could not see any memory leaks in ffmpeg
area.
Sergey Sharybin [Thu, 6 Dec 2012 16:18:35 +0000 (16:18 +0000)]
Disable multisamples on windows for intel cards
This doesn't work nice currently and there's no simple workaround for this,
it'll require lots of statistics about cards and some further investigation
on supported combination of draw methods and multisamples supports.
For the release better be more stable and do not deliver dangerous option.