blender.git
7 years agoOSX/cmake: rework the optional frameworks handling more osx-like, make jack weak...
Jens Verwiebe [Sat, 10 Nov 2012 13:50:28 +0000 (13:50 +0000)]
OSX/cmake: rework the optional frameworks handling more osx-like, make jack weak-linked

7 years agoAdded UI support to set OpenGL MultiSample.
Ton Roosendaal [Sat, 10 Nov 2012 11:55:45 +0000 (11:55 +0000)]
Added UI support to set OpenGL MultiSample.

Code to support it was lying around for long already, but not controlled by UI nicely.
Now you have in user preferences "System" tab an option to set it.

NOTE:
- it only works saving as User startup.blend, and restart Blender.
- your system should support it, no check for it is visible in UI
- tested only on iMac OSX 10.7

Screenshot:
http://www.blender.org/bf/chinchilla.blend.png

7 years agoadd argument so recent bge function mesh.transform_uv() so you can optionally transfo...
Campbell Barton [Sat, 10 Nov 2012 10:26:39 +0000 (10:26 +0000)]
add argument so recent bge function mesh.transform_uv() so you can optionally transform between UV1 / UV2

7 years agoadd 2 new utility functions to the BGE mesh py api.
Campbell Barton [Sat, 10 Nov 2012 09:45:43 +0000 (09:45 +0000)]
add 2 new utility functions to the BGE mesh py api.

  mesh.transform(matid, matrix)
  mesh.transform_uv(matid, matrix, uv_index=-1))

much more efficient then looping over verts in python to transform them.

7 years agoCycles: correction to how device of lists is exposed to blender
Sergey Sharybin [Sat, 10 Nov 2012 08:37:02 +0000 (08:37 +0000)]
Cycles: correction to how device of lists is exposed to blender

compute_device_list is using static vector of device information which
had pointers (identifier and name) to values from device information
structures. That structures are also stored in static vector and being
refreshed every 5 seconds.

The issue is, as soon as device information is being updated, pointers
in vector from compute_device_list became incorrect.

Seems it was the reason of issues with sudden switching from CUDA to
OpenCL on my desktop and from CUDA to CPU on my laptop, It was also
seems to be making persistent images behaves instable.

Made it so device identifier and name are copied from device info
to structures used by RNA (CCLDeviceInfo).

Alternative could be avoid cacheing CCLDeviceInfo and always use actual
list of device information by RNA. It shouldn't be so much slow.

7 years agoFix #33132: Incorrect render session update when using persistent images issue and...
Sergey Sharybin [Sat, 10 Nov 2012 08:13:13 +0000 (08:13 +0000)]
Fix #33132: Incorrect render session update when using persistent images issue and changing resolution

7 years agocode cleanup: some warnings and formatting for PyMethodDef's in the BGE.
Campbell Barton [Sat, 10 Nov 2012 05:42:50 +0000 (05:42 +0000)]
code cleanup: some warnings and formatting for PyMethodDef's in the BGE.

7 years agoFix for wrong usage of RE_engine_free
Sergey Sharybin [Sat, 10 Nov 2012 05:03:45 +0000 (05:03 +0000)]
Fix for wrong usage of RE_engine_free

7 years agoUpdated stubs to make blender player compilable
Sergey Sharybin [Sat, 10 Nov 2012 04:59:52 +0000 (04:59 +0000)]
Updated stubs to make blender player compilable

7 years agoFixes for movie distortion node
Sergey Sharybin [Sat, 10 Nov 2012 04:59:32 +0000 (04:59 +0000)]
Fixes for movie distortion node

- Somehow this node was using nearest interpolation which seems have been
  passed from compositor node. It was using b-spline interpolation with
  old compositor implementation. Now forced this node to use bilinear
  interpolation, which should be close enough.

- Operation should be marked as complex it seems, otherwise area of
  interest wouldn't make any affect on it's behavior.

7 years agoBGE: Committing patch [#32697] "New BGE gravity API" by HG1.
Mitchell Stokes [Sat, 10 Nov 2012 03:11:18 +0000 (03:11 +0000)]
BGE: Committing patch [#32697] "New BGE gravity API" by HG1.

This patch adds a gravity attribute to KX_Scene.

7 years agoFix part of #31080: missing UV editor redraw after edge slide with correct UVs.
Brecht Van Lommel [Sat, 10 Nov 2012 03:05:08 +0000 (03:05 +0000)]
Fix part of #31080: missing UV editor redraw after edge slide with correct UVs.

7 years agoFix #33084: lock camera to view + view smooth disabled incorrectly moved the
Brecht Van Lommel [Sat, 10 Nov 2012 02:45:56 +0000 (02:45 +0000)]
Fix #33084: lock camera to view + view smooth disabled incorrectly moved the
camera when going into camera view (bug in revision 51256).

7 years agosimple optimization for library loading, just reduce pointer indirection and use...
Campbell Barton [Sat, 10 Nov 2012 02:38:16 +0000 (02:38 +0000)]
simple optimization for library loading, just reduce pointer indirection and use unsigned int's, gives up to 2x overall speedup for loading some libraries.

7 years agofix for crashes running the BGE without colorspace enabled.
Campbell Barton [Fri, 9 Nov 2012 23:59:16 +0000 (23:59 +0000)]
fix for crashes running the BGE without colorspace enabled.

7 years agoFix part of #33132: render resoltuion refresh issues after persistent images
Brecht Van Lommel [Fri, 9 Nov 2012 23:54:58 +0000 (23:54 +0000)]
Fix part of #33132: render resoltuion refresh issues after persistent images
was added for cycles.

This fixes the case where the option is disabled. I moved the option now to
Blender itself and made it keep the engine around only when it's enabled. Also
fixes case where there could be issues when switching to another renderer.

7 years agocode cleanup: bge static functions & use C++ guarded alloc for the character class.
Campbell Barton [Fri, 9 Nov 2012 23:47:06 +0000 (23:47 +0000)]
code cleanup: bge static functions & use C++ guarded alloc for the character class.

7 years agoFix #33131: more useful cycles behavior for layers that are both marked excluded
Brecht Van Lommel [Fri, 9 Nov 2012 23:28:51 +0000 (23:28 +0000)]
Fix #33131: more useful cycles behavior for layers that are both marked excluded
and as mask layer. Now it will still use the mask, and have no further influence
rather than just being excluded entirely.

7 years agoCycles OSL: auto update script node sockets when setting text datablock or filepath.
Brecht Van Lommel [Fri, 9 Nov 2012 22:08:51 +0000 (22:08 +0000)]
Cycles OSL: auto update script node sockets when setting text datablock or filepath.

7 years agoCycles / OSL:
Thomas Dinges [Fri, 9 Nov 2012 22:01:37 +0000 (22:01 +0000)]
Cycles / OSL:
* UI fix for "shading_system" property, own fault from r51120

7 years agoCycles Test App:
Thomas Dinges [Fri, 9 Nov 2012 21:44:31 +0000 (21:44 +0000)]
Cycles Test App:
* Remove outdated hard coded path from path_init().

7 years agoFix #32972: cycles crash changing to GPU render with OSL enabled.
Brecht Van Lommel [Fri, 9 Nov 2012 21:27:05 +0000 (21:27 +0000)]
Fix #32972: cycles crash changing to GPU render with OSL enabled.

7 years agoAnother fix for finding python stuff... Should work for everyone now! (I hope...).
Bastien Montagne [Fri, 9 Nov 2012 20:38:09 +0000 (20:38 +0000)]
Another fix for finding python stuff... Should work for everyone now! (I hope...).

7 years agoCycles / CMake:
Thomas Dinges [Fri, 9 Nov 2012 18:31:04 +0000 (18:31 +0000)]
Cycles / CMake:
* Removed PARTIO building code, partio code was removed already.
* Include "app" dir only when building with CYCLES_TEST enabled.

7 years agoFix #30505: bpy.context.copy() gives error running in the properties editor
Brecht Van Lommel [Fri, 9 Nov 2012 17:12:39 +0000 (17:12 +0000)]
Fix #30505: bpy.context.copy() gives error running in the properties editor
with cycles as render engine.

7 years agoSequencer: disabled sequencer recursion and corrected rendered preview mode
Sergey Sharybin [Fri, 9 Nov 2012 16:49:17 +0000 (16:49 +0000)]
Sequencer: disabled sequencer recursion and corrected rendered preview mode

Sequencer recursion was never actually supported and only gives lots of
issues. Disabled it now, so users are not getting confused by semi-working
stuff.

Also made a correction to rendered sequencer preview, so now using scene
strip in it's own sequencer will work properly (it produced black frames
before).

This required killing compositor jobs since they could be using the same
render result as renderer called from sequencer uses.

Small improvements could be:
- Add slight delay before compositor job starts handling nodes so killing
  this job would be fast
- Tag compositor to be updated after preview was fully rendered.

7 years agocode cleanup: double promotion warnings, also allow cmake to build SDL without audaspace.
Campbell Barton [Fri, 9 Nov 2012 16:15:00 +0000 (16:15 +0000)]
code cleanup: double promotion warnings, also allow cmake to build SDL without audaspace.

7 years agoBevel: use library plane/line intersection instead of custom one.
Howard Trickey [Fri, 9 Nov 2012 16:00:30 +0000 (16:00 +0000)]
Bevel: use library plane/line intersection instead of custom one.
Custom one had a bug, not worth tracking down.

7 years agoUI scripting:
Ton Roosendaal [Fri, 9 Nov 2012 15:00:27 +0000 (15:00 +0000)]
UI scripting:

Layout separator should end button aligning.

7 years agobmesh refactor - rename some of the BM_****_share_****_count() functions to BM_*...
Campbell Barton [Fri, 9 Nov 2012 14:52:05 +0000 (14:52 +0000)]
bmesh refactor - rename some of the BM_****_share_****_count() functions to BM_***_share_check()
some of these were only returning a boolean, others returned a count even though only a boolean was needed.

split some of the functions in two as well where check/count are both needed.

7 years agoFix #33123: lamp nodes drivers not working, now uses same hacks as material
Brecht Van Lommel [Fri, 9 Nov 2012 13:57:09 +0000 (13:57 +0000)]
Fix #33123: lamp nodes drivers not working, now uses same hacks as material
to work around dependency graph limitations.

7 years agoUsability:
Ton Roosendaal [Fri, 9 Nov 2012 13:33:23 +0000 (13:33 +0000)]
Usability:

Made SHIFT+drag mouse in Curve and ColorPicker widgets move with more precision.
This was only working with UserPref "continuous grab".

7 years agorename template_color_wheel() to template_color_picker()
Campbell Barton [Fri, 9 Nov 2012 11:03:53 +0000 (11:03 +0000)]
rename template_color_wheel() to template_color_picker()

7 years agoTemporarily change:
Ton Roosendaal [Fri, 9 Nov 2012 10:41:47 +0000 (10:41 +0000)]
Temporarily change:

Intel graphics cards now use Triple Buffer when you set it to "Auto".
Recent tests proved that this is now working... and better test this
now well than a week before a release!

7 years agoBugfix #33124
Ton Roosendaal [Fri, 9 Nov 2012 10:33:42 +0000 (10:33 +0000)]
Bugfix #33124

User Preference setting for Color Picker type only affected the popup
version. Now it uses it for all color pickers in Panels too.

Note for UI Py team: col.template_color_wheel() function follows
the userpref - might be a need for rename here? Dunno how to handle
this. Comment noted in template code.

7 years agoEdits for consistency with other parts of code
Joshua Leung [Fri, 9 Nov 2012 09:57:35 +0000 (09:57 +0000)]
Edits for consistency with other parts of code

For the record, AnimData vars should be named "adt", not "ad"

7 years agostyle cleanup: indentation
Campbell Barton [Fri, 9 Nov 2012 09:33:28 +0000 (09:33 +0000)]
style cleanup: indentation

7 years agoFisheye Equidistant Lens algorith bugfix
Dalai Felinto [Fri, 9 Nov 2012 09:11:24 +0000 (09:11 +0000)]
Fisheye Equidistant Lens algorith bugfix
r = lens * theta

Thanks for Adriano Oliveira for reporting this and chasing down the right formula.
Now fulldome works no longer need to use equisolid + a specific lens+sensor size.

And happy birthday to me. And yes, that's how I celebrate it ;)

7 years agoCycles: no need in spin lock in memory statistics
Sergey Sharybin [Fri, 9 Nov 2012 08:47:08 +0000 (08:47 +0000)]
Cycles: no need in spin lock in memory statistics

This functions are called from device code which is guaranteed
not to be called simultaneously from different threads.

7 years agoCycles: persistent images option
Sergey Sharybin [Fri, 9 Nov 2012 08:46:53 +0000 (08:46 +0000)]
Cycles: persistent images option

This option enables keeping loaded images in the memory in-between
of rendering.

Implemented by keeping render engine alive for until Render structure
is being freed.

Cycles will free all data when render finishes, optionally keeping
image manager untouched. All shaders, meshes, objects will be
re-allocated next time rendering happens.

Cycles cession and scene will be re-created from scratch if render/
scene parameters were changed.

This will also allow to keep compiled OSL shaders in memory without
need to re-compile them again.

P.S. Performance panel could be cleaned up a bit, not so much happy
     with it's vertical alignment currently but not sure how to make
     it look better.

 P.P.S. Currently the only way to free images from the device is to
       disable Persistent Images option and start rendering.

7 years agoadd fallbacks for BM_vert_calc_shell_factor() and BM_vert_calc_mean_tagged_edge_lengt...
Campbell Barton [Fri, 9 Nov 2012 08:28:14 +0000 (08:28 +0000)]
add fallbacks for BM_vert_calc_shell_factor() and BM_vert_calc_mean_tagged_edge_length() to avoid divide by zero when a vertex has no connected geometry.

also style cleanup.

7 years agoFix crash when copying scene with sequencer's animation using Link Objects or Link...
Sergey Sharybin [Fri, 9 Nov 2012 07:29:27 +0000 (07:29 +0000)]
Fix crash when copying scene with sequencer's animation using Link Objects or Link Object Data methods

- Don't crash if there's any fcurves created for sequencer but no sequencer itself
- Don't copy sequencer's fcurves when copy new scene with linking data/objects method

7 years agoAxis Colours are now Themeable
Joshua Leung [Fri, 9 Nov 2012 06:36:11 +0000 (06:36 +0000)]
Axis Colours are now Themeable

This commit allows you to set the RGB <-> XYZ axis colours used for things like
the mini axis indicator, grid axis indicators, manipulators, transform
constraint indicators, F-Curves (when using XYZ to RGB colouring option), and
perhaps something else I've missed. Previously, these places all used hardcoded
defines (220 * i/j/k), but the readability of these colours was often quite
poor, especially when used with certain themes.

The settings for these colours can be found under the "User Interface" section
of the themes (i.e. same set of colours is used across editors). I could have
made these per editor, but since it's unlikely that these will need to be too
different across editors in practice (+ being easier to version patch), they are
stored under the UI section.

7 years agoshrink/fatten was missing from the transform menu
Campbell Barton [Fri, 9 Nov 2012 06:06:50 +0000 (06:06 +0000)]
shrink/fatten was missing from the transform menu

7 years agoOption for shrink-fatten to maintain shell thickness (hold Alt).
Campbell Barton [Fri, 9 Nov 2012 05:37:36 +0000 (05:37 +0000)]
Option for shrink-fatten to maintain shell thickness (hold Alt).

7 years agoadd a distance limit to the shrinkwrap modifiers project mode,
Campbell Barton [Fri, 9 Nov 2012 04:20:17 +0000 (04:20 +0000)]
add a distance limit to the shrinkwrap modifiers project mode,
it was problematic for vertices to fire rays out and hit some unrelated-far-off geometry which is often not what users want.

7 years agocode cleanup: move shrinkwrap's benchmark macro into PIL_time.h & some minor style...
Campbell Barton [Fri, 9 Nov 2012 04:01:19 +0000 (04:01 +0000)]
code cleanup: move shrinkwrap's benchmark macro into PIL_time.h & some minor style edits.

7 years agofix [#33121] crashing when srolling down in text editor !
Campbell Barton [Fri, 9 Nov 2012 03:36:38 +0000 (03:36 +0000)]
fix [#33121] crashing when srolling down in text editor !

7 years agoCMake: LLVM configuration tweak to check if llvm-config actually exists before
Brecht Van Lommel [Fri, 9 Nov 2012 03:10:29 +0000 (03:10 +0000)]
CMake: LLVM configuration tweak to check if llvm-config actually exists before
using it (patch by IRIE Shinsuke). Also search for any library instead of just
static ones.

7 years agoFix #33125: cycles OSL crash with multiple render sessions running at the same time.
Brecht Van Lommel [Fri, 9 Nov 2012 03:10:22 +0000 (03:10 +0000)]
Fix #33125: cycles OSL crash with multiple render sessions running at the same time.

7 years agoFix #33082: dupliverted metaball showing wrong in cycles render and metaball
Brecht Van Lommel [Fri, 9 Nov 2012 03:10:15 +0000 (03:10 +0000)]
Fix #33082: dupliverted metaball showing wrong in cycles render and metaball
edit mode. I've made it follow blender internal now, but this system should
really be improved once, metaballs that are in linked dupligroups will never
show up.

7 years agocode cleanup: double promotion warnings with new bevel code & wrong use of NULL in...
Campbell Barton [Fri, 9 Nov 2012 03:08:02 +0000 (03:08 +0000)]
code cleanup: double promotion warnings with new bevel code & wrong use of NULL in cycles.

7 years agoOSX/cmake: fix jack compile
Jens Verwiebe [Thu, 8 Nov 2012 19:50:25 +0000 (19:50 +0000)]
OSX/cmake: fix jack compile

7 years agoBugfix #29072 (Color pickers don't close properly when moving the mouse away)
Ton Roosendaal [Thu, 8 Nov 2012 16:50:31 +0000 (16:50 +0000)]
Bugfix #29072 (Color pickers don't close properly when moving the mouse away)

This rewinds the fix for revision 50483.

- the removed code there (as comment said) closes menus on hoovering over another
  button in panels. Is unfinished feature to allow quick inspecting menus
  by mouse-hold going over menu popup buttons.

- It added yet another check for closing menus - should be done with ->saferct

- The actual bug was simple; the block flag with UI_BLOCK_MOVEMOUSE_QUIT was
  accidentally cleared for colorpickers.

7 years agoFix #33113: cycles not rendering motion blur correct with dying particles.
Brecht Van Lommel [Thu, 8 Nov 2012 16:35:28 +0000 (16:35 +0000)]
Fix #33113: cycles not rendering motion blur correct with dying particles.

There were a bunch of other issues with dupli motion blur and syncing, the problem
being that there was no proper way to detect corresponding duplis between frames
or updates. As a solution, a persistent_id was added to the DupliObject. It's an
extension of the previous index value, with one index for each dupli level. This
can be used to reliably find matching dupli objects between frames. Works with
nested duplis, multiple particle systems, etc.

7 years agoCycles: add strength input for normal map node.
Brecht Van Lommel [Thu, 8 Nov 2012 16:35:20 +0000 (16:35 +0000)]
Cycles: add strength input for normal map node.

7 years agoRender: make default lamp size smaller (10cm instead of 1m in typical units).
Brecht Van Lommel [Thu, 8 Nov 2012 16:35:10 +0000 (16:35 +0000)]
Render: make default lamp size smaller (10cm instead of 1m in typical units).

7 years agostyle cleanup
Campbell Barton [Thu, 8 Nov 2012 16:00:18 +0000 (16:00 +0000)]
style cleanup

7 years agoMerge gsoc Bevel (with rounding) into trunk.
Howard Trickey [Thu, 8 Nov 2012 15:12:21 +0000 (15:12 +0000)]
Merge gsoc Bevel (with rounding) into trunk.

7 years agoAttempt to fix OSX compilation issue.
Sergey Sharybin [Thu, 8 Nov 2012 14:34:42 +0000 (14:34 +0000)]
Attempt to fix OSX compilation issue.

BLI_bitmap is not a sctruct, so that should be culptrit.

7 years agoCorrection to previous commit
Sergey Sharybin [Thu, 8 Nov 2012 14:22:05 +0000 (14:22 +0000)]
Correction to previous commit

pBVH nodes buffers could share some pointers from pBVH itself,
and after updating pointers in pBVH we need to recreate this buffers.

This starts looking a bit awkward and seems it's mainly because of
assumptions made when was working on sculpting on deformed mesh.
Would revision such a sculpting and would try to make it more clear
later.

7 years agoFix #33116: Blender Crashes when saving inside Sculpt Mode with with GLSL and texture...
Sergey Sharybin [Thu, 8 Nov 2012 14:01:47 +0000 (14:01 +0000)]
Fix #33116: Blender Crashes when saving inside Sculpt Mode with with GLSL and textured view enabled.

Issue was caused by call ED_sculpt_force_update from WM_file_write which frees
derived mesh and pBVH and forces them to be re-created. After this sculpt session
wasn't repairing properly.

Freeing data from WM_file_write is not nice by itself, but it exposed possible
real issue when sculpting on modifiers. Made it so BLI_pbvh_grids_update will
update pointers to material flags and hidden grids as well.

This isn't idea solution for particular circumstances from the report, since
pBVH would be rebuilt after save which ends up with small interface lags for
while pBVH is rebuilding.

Would be nice to have multires displacement propagation to higher levels
without freeing data.

7 years agoOSX/cmake: workaround for getting right LC_VERSION_MIN_MACOSX with makefiles
Jens Verwiebe [Thu, 8 Nov 2012 12:57:01 +0000 (12:57 +0000)]
OSX/cmake: workaround for getting right LC_VERSION_MIN_MACOSX with makefiles

7 years agoSmall fix:
Ton Roosendaal [Thu, 8 Nov 2012 11:31:15 +0000 (11:31 +0000)]
Small fix:

Pressing ESC for renders now checks for modifier keys, and doesn't escape renders
when a modifier key is held. In Windows, SHIFT+CTRL+ESC brings up task manager,
and it seems to pass on the event.

7 years agofix [#33000] bmesh.ops.create_* either crash blender or do nothing
Campbell Barton [Thu, 8 Nov 2012 10:32:11 +0000 (10:32 +0000)]
fix [#33000] bmesh.ops.create_* either crash blender or do nothing

7 years agopatch [#32874] Fixed the property path calculation in situations where the link.index...
Campbell Barton [Thu, 8 Nov 2012 09:38:18 +0000 (09:38 +0000)]
patch [#32874] Fixed the property path calculation in situations where the link.index variable gets set during the search.
From Florian K?\246berle

7 years agoAdded Map Taper option which if enabled maps affect of taper object on
Sergey Sharybin [Thu, 8 Nov 2012 08:16:44 +0000 (08:16 +0000)]
Added Map Taper option which if enabled maps affect of taper object on
actually beveled part of curve (previously affect of taper would have
been clamped by start/end bevel factor)

Here's an illustration:
http://wiki.blender.org/uploads/5/5d/Blender2.65_CurveMapTaper.png

7 years agodecimator - merge flags when collapsing edges / verts, so seams and edges draw flags...
Campbell Barton [Thu, 8 Nov 2012 07:06:08 +0000 (07:06 +0000)]
decimator - merge flags when collapsing edges / verts, so seams and edges draw flags are kept.

7 years agocode cleanup: unused defines & some formatting.
Campbell Barton [Thu, 8 Nov 2012 06:46:10 +0000 (06:46 +0000)]
code cleanup: unused defines & some formatting.

7 years agocode cleanup: avoid doing multiplications within macro FTOCHAR() per pixel when apply...
Campbell Barton [Thu, 8 Nov 2012 06:44:14 +0000 (06:44 +0000)]
code cleanup: avoid doing multiplications within macro FTOCHAR() per pixel when applying brush color.

7 years agoCMake: Since Audaspace now requires Boost, auto enable Boost if WITH_AUDASPACE is...
Mitchell Stokes [Thu, 8 Nov 2012 05:50:02 +0000 (05:50 +0000)]
CMake: Since Audaspace now requires Boost, auto enable Boost if WITH_AUDASPACE is enabled.

7 years agominor cleanup to to selecting the shortest path, change some variable names and make...
Campbell Barton [Thu, 8 Nov 2012 03:39:15 +0000 (03:39 +0000)]
minor cleanup to to selecting the shortest path, change some variable names and make edge/face modes share the cost calculation function.

7 years agoadd mesh editmode Ctrl+RMB to select the shortest path between faces, works the same...
Campbell Barton [Thu, 8 Nov 2012 03:19:21 +0000 (03:19 +0000)]
add mesh editmode Ctrl+RMB to select the shortest path between faces, works the same as for edges.
Request from Kjartan.

7 years agofurther cleanup for selecting the shortest path, remove the need for EDBM_index_array...
Campbell Barton [Thu, 8 Nov 2012 02:33:26 +0000 (02:33 +0000)]
further cleanup for selecting the shortest path, remove the need for EDBM_index_arrays_* functions.

7 years agocode improvements for selecting the shortest path for mesh editmode,
Campbell Barton [Thu, 8 Nov 2012 02:12:31 +0000 (02:12 +0000)]
code improvements for selecting the shortest path for mesh editmode,
this will give some speedup but its mainly to simplify the function.

- use bmesh adjacency data, was building its own data, left over from pre-bmesh.
- use a flag to store visited edges rather then a hash.
- store edge pointers in the heap rather then index values (was converting back and fourth a lot).

7 years agocode cleanup:
Campbell Barton [Wed, 7 Nov 2012 23:55:52 +0000 (23:55 +0000)]
code cleanup:
linearrgb_to_srgb_ushort4_predivide() was calling `linearrgb_to_srgb(t) * alpha` twice in the FTOUSHORT macro, which gcc didn't optimize out.

7 years agocode cleanup: quiet double promotion warnings
Campbell Barton [Wed, 7 Nov 2012 23:52:33 +0000 (23:52 +0000)]
code cleanup: quiet double promotion warnings

7 years agofix [#26472] Decimate overlaps polygons
Campbell Barton [Wed, 7 Nov 2012 22:39:47 +0000 (22:39 +0000)]
fix [#26472] Decimate overlaps polygons

7 years agodecimate - degenerate edges are now added back into the heap (with an dummy cost...
Campbell Barton [Wed, 7 Nov 2012 22:28:50 +0000 (22:28 +0000)]
decimate - degenerate edges are now added back into the heap (with an dummy cost), so when surrounding geometry may be modified and the previously degenerate edge re-evaluated after.
The C++ LOD decimator did this too.

7 years agoitask: reworked conditionals for osx version compatibility
Jens Verwiebe [Wed, 7 Nov 2012 21:19:43 +0000 (21:19 +0000)]
itask: reworked conditionals for osx version compatibility

7 years agoFix #33107: cycles fixed threads 1 was still having two cores do work,
Brecht Van Lommel [Wed, 7 Nov 2012 21:00:49 +0000 (21:00 +0000)]
Fix #33107: cycles fixed threads 1 was still having two cores do work,
because main thread works as well.

7 years agoBugfix [#32939] Fluid sim reversed on X and Y with animated Control object
Daniel Genrich [Wed, 7 Nov 2012 18:11:13 +0000 (18:11 +0000)]
Bugfix [#32939] Fluid sim reversed on X and Y with animated Control object

Bug was introduced in r48531 by accident since fluid control object abuse a variable for another flag which got reset.

7 years agoUse CMAKE_LIBRARY_ARCHITECTURE instead of hardcoded stuff like x86_64-linux-gnu!...
Bastien Montagne [Wed, 7 Nov 2012 16:51:09 +0000 (16:51 +0000)]
Use CMAKE_LIBRARY_ARCHITECTURE instead of hardcoded stuff like x86_64-linux-gnu! Now should work with any multiarch!

7 years agoFix #33114: crash with render frame update script and GLSL.
Brecht Van Lommel [Wed, 7 Nov 2012 16:27:18 +0000 (16:27 +0000)]
Fix #33114: crash with render frame update script and GLSL.

7 years agoBugfix #32806
Ton Roosendaal [Wed, 7 Nov 2012 16:18:20 +0000 (16:18 +0000)]
Bugfix #32806

Two fixes for NDOF device:

- RNA item for setting turntable or trackball for ndof was using wrong variable
- Some moment the option "rotate around selection" stopped to work for ndof.

Note: the latter option doesn't do dolly in, use shift+ndof for that.

7 years agoUI message fixes...
Bastien Montagne [Wed, 7 Nov 2012 14:56:53 +0000 (14:56 +0000)]
UI message fixes...

7 years agocode cleanup: use min/max functions rather then macros.
Campbell Barton [Wed, 7 Nov 2012 12:31:05 +0000 (12:31 +0000)]
code cleanup: use min/max functions rather then macros.

7 years agoAttempt to fix problems with local built py caused by own r51976.
Bastien Montagne [Wed, 7 Nov 2012 12:24:03 +0000 (12:24 +0000)]
Attempt to fix problems with local built py caused by own r51976.

7 years agoNew words...
Bastien Montagne [Wed, 7 Nov 2012 12:14:35 +0000 (12:14 +0000)]
New words...

7 years agoFix ITASK warnings
Jens Verwiebe [Wed, 7 Nov 2012 11:57:51 +0000 (11:57 +0000)]
Fix ITASK warnings

7 years agoUpdate to make it work with new debian-like py3.3 packages. A bit hackish (this arch...
Bastien Montagne [Wed, 7 Nov 2012 11:44:39 +0000 (11:44 +0000)]
Update to make it work with new debian-like py3.3 packages. A bit hackish (this arch-dependent stuff makes things a bit complex), and probably only working for amd64 arch, but at least should not create any regression...

7 years agoMotion Tracker: disable stabilization operators when active object is not a camera
Sergey Sharybin [Wed, 7 Nov 2012 11:41:08 +0000 (11:41 +0000)]
Motion Tracker: disable stabilization operators when active object is not a camera

7 years agofix for own error in recent orig-index refactor (reported as [#33112])
Campbell Barton [Wed, 7 Nov 2012 11:37:53 +0000 (11:37 +0000)]
fix for own error in recent orig-index refactor (reported as [#33112])

7 years agoAffine tracker do_versions were missed for objects tracs
Sergey Sharybin [Wed, 7 Nov 2012 11:32:57 +0000 (11:32 +0000)]
Affine tracker do_versions were missed for objects tracs

Run this code again, so files from 2.63 would be opened correct now.

7 years agoprevent floating point exceptions from being raised in soft_range_round_up/soft_range...
Campbell Barton [Wed, 7 Nov 2012 11:28:50 +0000 (11:28 +0000)]
prevent floating point exceptions from being raised in soft_range_round_up/soft_range_round_down(), caused by log(0).

7 years agofix [#33094] Even edge slide on multiple loops destroys geometry
Campbell Barton [Wed, 7 Nov 2012 11:19:54 +0000 (11:19 +0000)]
fix [#33094] Even edge slide on multiple loops destroys geometry

7 years agoFixed crashes when motion tracks are zero-sized
Sergey Sharybin [Wed, 7 Nov 2012 11:18:42 +0000 (11:18 +0000)]
Fixed crashes when motion tracks are zero-sized

This is probably versioning issue happened when both trunk and tomato
were mixed to work on the same file.

Anyway, there're few files here locally and it's probably other users
do have the same files, so lets keep things safe here :)

7 years agoFix a typo and more descriptve commet
Jens Verwiebe [Wed, 7 Nov 2012 10:52:07 +0000 (10:52 +0000)]
Fix a typo and more descriptve commet

7 years agoOSX: some more version target cleanups and corrections
Jens Verwiebe [Wed, 7 Nov 2012 10:43:31 +0000 (10:43 +0000)]
OSX: some more version target cleanups and corrections

7 years agoInvalidate sequencer cache when movie clip's input color space is changing
Sergey Sharybin [Wed, 7 Nov 2012 10:18:11 +0000 (10:18 +0000)]
Invalidate sequencer cache when movie clip's input color space is changing

Currently the only way is to invalidate the whole cache, for something
smarter we'll need a dependency graph which would be able to deal with
relations between clip and strip.