7 years agocode cleanup: spelling,
Campbell Barton [Mon, 12 Nov 2012 07:33:01 +0000 (07:33 +0000)]
code cleanup: spelling,
also initialize bmesh-bevel settings struct to zero to avoid possible uninitialized memory later.

7 years agoBM_iter_as_arrayN() can now take an optional existing array argument, useful to avoid...
Campbell Barton [Mon, 12 Nov 2012 05:53:43 +0000 (05:53 +0000)]
BM_iter_as_arrayN() can now take an optional existing array argument, useful to avoid many small malloc's by passing a fixes size stack variable instead.

Will give some speedup to edge-split modifier and bevel.

7 years agobmesh bevel todo: don't loop through all faces to find faces connected to a vertex.
Campbell Barton [Mon, 12 Nov 2012 05:29:54 +0000 (05:29 +0000)]
bmesh bevel todo: don't loop through all faces to find faces connected to a vertex.

7 years agoreplace BM_edge_face_count with BM_edge_is_manifold/BM_edge_is_wire/BM_edge_is_boundary
Campbell Barton [Mon, 12 Nov 2012 04:50:45 +0000 (04:50 +0000)]
replace BM_edge_face_count with BM_edge_is_manifold/BM_edge_is_wire/BM_edge_is_boundary

7 years agostyle cleanup
Campbell Barton [Mon, 12 Nov 2012 03:41:25 +0000 (03:41 +0000)]
style cleanup

7 years agobuild fix: recent commit broke building on 64bit linux
Campbell Barton [Mon, 12 Nov 2012 03:37:28 +0000 (03:37 +0000)]
build fix: recent commit broke building on 64bit linux

7 years agoWhitespace tweaks and Bugfixes
Joshua Leung [Mon, 12 Nov 2012 03:26:40 +0000 (03:26 +0000)]
Whitespace tweaks and Bugfixes

* Fixed memory leak, where temp buffers for tGpTimingData were not freed
* Fixed crash when there was no active object when converting to paths

7 years agoupdate to python api `Gotcha` docs to reflect changes to the api. also add a section...
Campbell Barton [Mon, 12 Nov 2012 03:23:47 +0000 (03:23 +0000)]
update to python api `Gotcha` docs to reflect changes to the api. also add a section about modifying linked library data.

7 years agoBevel: several bug fixes.
Howard Trickey [Mon, 12 Nov 2012 02:52:24 +0000 (02:52 +0000)]
Bevel: several bug fixes.

7 years agoScons compiling fix
Joshua Leung [Mon, 12 Nov 2012 02:30:16 +0000 (02:30 +0000)]
Scons compiling fix

Proper implementation for only including the boost locale libs when
WITH_BF_INTERNATIONAL is enabled, so that those of us who do not need/want to
bother with translated ui's can compile. The way it was done before was wrong as
1) the value was always set to true earlier in the config scripts, 2) the base
config scripts run before user config overrides are set

7 years agoDNA alignment fix for GPencil commit
Joshua Leung [Mon, 12 Nov 2012 02:25:21 +0000 (02:25 +0000)]
DNA alignment fix for GPencil commit

7 years agofix [#33142] Ctrl LMB higher selection mode in edit mode sometimes selects extra...
Campbell Barton [Sun, 11 Nov 2012 23:33:59 +0000 (23:33 +0000)]
fix [#33142] Ctrl LMB higher selection mode in edit mode sometimes selects extra elements

7 years agoFix CMake boost locale lib names for MinGW64.
Antony Riakiotakis [Sun, 11 Nov 2012 22:50:28 +0000 (22:50 +0000)]
Fix CMake boost locale lib names for MinGW64.

7 years agoOSX: fix linking with new boost_locale
Jens Verwiebe [Sun, 11 Nov 2012 20:41:28 +0000 (20:41 +0000)]
OSX: fix linking with new boost_locale

7 years ago* Remove one last "gnu_gettext.dll" reference in scons.
Thomas Dinges [Sun, 11 Nov 2012 19:53:12 +0000 (19:53 +0000)]
* Remove one last "gnu_gettext.dll" reference in scons.

7 years agoClen up of gettext stuff from scons scripts... Did not touch to buildbots ones, nor...
Bastien Montagne [Sun, 11 Nov 2012 19:46:36 +0000 (19:46 +0000)]
Clen up of gettext stuff from scons scripts... Did not touch to buildbots ones, nor to iconv, as it’s still uncleare whether we can get rid of it :/

7 years ago* Replace math.h with BLI_math.h, this fixes compile on windows.
Thomas Dinges [Sun, 11 Nov 2012 18:56:58 +0000 (18:56 +0000)]
* Replace math.h with BLI_math.h, this fixes compile on windows.

7 years agoFix for RNA soft values (confused with hard ones... tss).
Bastien Montagne [Sun, 11 Nov 2012 18:38:54 +0000 (18:38 +0000)]
Fix for RNA soft values (confused with hard ones... tss).

7 years agoFour fixes (own collection)
Ton Roosendaal [Sun, 11 Nov 2012 18:33:35 +0000 (18:33 +0000)]
Four fixes (own collection)

- Screencast: stops working on window resize - crashes movie file output
- Screencast now draws simple brush overlay to indicate mouse cursor.
- Greasepencil now works again to use MMB for view rotates
  (and missed proper redraw signal for toolbar, at end of paint)

7 years agorevert muddle in changing jack in msvc instead apple
Jens Verwiebe [Sun, 11 Nov 2012 18:28:45 +0000 (18:28 +0000)]
revert muddle in changing jack in msvc instead apple

7 years agoFix a stupid warning (due to last minute refactor...).
Bastien Montagne [Sun, 11 Nov 2012 18:26:39 +0000 (18:26 +0000)]
Fix a stupid warning (due to last minute refactor...).

7 years agoRestore my work overwritten by 52106 and some further reordering for cmake 2.8.10...
Jens Verwiebe [Sun, 11 Nov 2012 18:06:10 +0000 (18:06 +0000)]
Restore my work overwritten by 52106 and some further reordering for cmake 2.8.10, todo: take into account missing symlinks for Library and /usr/local in newest xcode, affects ndof and jack

7 years agoOSX/cmake-2.8-10: just reorder, now sdk must be set before deployment target
Jens Verwiebe [Sun, 11 Nov 2012 17:04:12 +0000 (17:04 +0000)]
OSX/cmake-2.8-10: just reorder, now sdk must be set before deployment target

7 years agoReplacing gettext i18n backend by boost::locale one.
Bastien Montagne [Sun, 11 Nov 2012 16:54:26 +0000 (16:54 +0000)]
Replacing gettext i18n backend by boost::locale one.

This commit adds a small and simplistic C wrapper around boost's locale library as intern/locale, and heavily simplifies/reduces Blender's own i18n code (under blenfont/ dir). And it adds back UI translation on windows' official builds (with msvc)!

Note to platform maintainers: iconv and gettext (libintl) can now be removed from precompiled libs (not gettext binaries, under windows, of course ;) ).

Note to MinGW32/64 users: boost_locale lib has not yet been uploaded for those build env, please disable WITH_INTERNATIONAL for now (hopefully will be fixed very soon, have contacted psy-fy).

7 years agoFix #32974: cycles curved motion blur is not working well combined with rotation,
Brecht Van Lommel [Sun, 11 Nov 2012 15:02:05 +0000 (15:02 +0000)]
Fix #32974: cycles curved motion blur is not working well combined with rotation,
problem is that the curved interpolation is not constant speed which leads to
mismatches. Turns out this is really hard to solve and implement efficiently, so
curved motion blur is disabled for now, until I can find a solution.

7 years agoActually, need no more BKE_main.h here...
Bastien Montagne [Sun, 11 Nov 2012 14:53:17 +0000 (14:53 +0000)]
Actually, need no more BKE_main.h here...

7 years ago"Dynamic Sketch" patch, which adds timing data to GP strokes, by storing an inittime...
Bastien Montagne [Sun, 11 Nov 2012 14:48:58 +0000 (14:48 +0000)]
"Dynamic Sketch" patch, which adds timing data to GP strokes, by storing an inittime in each stroke (value returned by PIL_check_seconds_timer() func), and then a delta time for each of its points, relative to that inittime.

These timing data can then be used during conversion to Curve objects, to create a path animation (i.e. an Evaluation Time F-Curve) exactly reproducing the drawing movements.

Aside from this "main feature", the patch brings several fixes/enhancements:
* Stroke smoothing/simplifying will no more move the start/end points of a stroke (this was rather annoying sometimes!).
* Also optimized smoothing code (even though not really noticeable on a modern computer, it now uses less memory and runs faster).
* When converting to curve, you now have the following new possibilities:
** Normalize the weight values (currently, they will get "stroke width * 0.1", i.e. would range by default from 0.0 to 0.3...).
** Scale the radius values to your liking (again, currently they are set from stroke width times 0.1)!
** Link all strokes into a single curve, using zero-radius sections (this is mandatory to use the dynamic feature!).

Here is a small demo video:

Will update user manual later today.

7 years agoOSX/cmake: actualize message for xcode specifics
Jens Verwiebe [Sun, 11 Nov 2012 14:33:06 +0000 (14:33 +0000)]
OSX/cmake: actualize message for xcode specifics

7 years agoBugfix [#33140]
Ton Roosendaal [Sun, 11 Nov 2012 14:07:58 +0000 (14:07 +0000)]
Bugfix [#33140]

The alt+shift+RMB menu to select objects didn't handle 'extend' (now called toggle).
Was due to code cleanup for selecting (and new CTRL+SHIFT+Select).

Now the shift+alt menu behaves like shift+clicks.

7 years agoBugfix, IRC report:
Ton Roosendaal [Sun, 11 Nov 2012 13:12:53 +0000 (13:12 +0000)]
Bugfix, IRC report:

NumPad emulation code wasn't working for double-clicks, preventing to fast
type same values in buttons (Like, 111111 resulted in 111 only).

Moved the emulation hack to where it belongs, in lowest level function that
interprets the ghost events for Blender's WM events.

7 years agoMultiSample feature: added provision that requires a restart in order to get
Ton Roosendaal [Sun, 11 Nov 2012 12:02:39 +0000 (12:02 +0000)]
MultiSample feature: added provision that requires a restart in order to get
it work properly - you cannot set/disable it in a running program with windows

In short: Multisample setting is static, set on first time running of Blender,
after reading the user preferences.

For as far as I can see - disabling/enableing (glEnable) doesn't harm to be
used in drawing code. With multisample on at start, you can enable and disable it
freely. But without it set at start, enabling doesn't do anything nor draws badly.

7 years agostyle cleanup
Campbell Barton [Sun, 11 Nov 2012 11:00:55 +0000 (11:00 +0000)]
style cleanup

7 years agocode cleanup:
Campbell Barton [Sun, 11 Nov 2012 10:55:32 +0000 (10:55 +0000)]
code cleanup:
- blf doesnt have includes for TRUE/FALSE, use 1/0.
- rename ogl_multisamples -> multi_sample, also shorten enum strings.

7 years agoBGE: fix for 2 uses of uninitialized memory - property-sensor and object-color for...
Campbell Barton [Sun, 11 Nov 2012 10:03:25 +0000 (10:03 +0000)]
BGE: fix for 2 uses of uninitialized memory - property-sensor and object-color for materials.

7 years agoreplace 0 and 1 with FALSE and TRUE in BLF_global_font_init in blf.c
Jason Wilkins [Sun, 11 Nov 2012 09:07:29 +0000 (09:07 +0000)]
replace 0 and 1 with FALSE and TRUE in BLF_global_font_init in blf.c

7 years agoCode de-duplication in imageprocess.c -- made it use interpolation functions from...
Sergey Sharybin [Sun, 11 Nov 2012 08:48:35 +0000 (08:48 +0000)]
Code de-duplication in imageprocess.c -- made it use interpolation functions from blenlib

7 years agoFix #32398: Mirror modifier with "Merge" enabled producing pairs of faces
Ben Batt [Sun, 11 Nov 2012 04:53:20 +0000 (04:53 +0000)]
Fix #32398: Mirror modifier with "Merge" enabled producing pairs of faces
sharing the same set of vertices.

Modified the CDDM_merge_verts function (currently only used by the Mirror
modifier) to skip faces using all merged vertices.

7 years agobge mesh conversion speedup, avoid calling ConvertMaterial() on every face.
Campbell Barton [Sun, 11 Nov 2012 01:54:30 +0000 (01:54 +0000)]
bge mesh conversion speedup, avoid calling ConvertMaterial() on every face.
now do per material bucket.

7 years agogame engine material conversion: don't use the material to convert vertex colors...
Campbell Barton [Sun, 11 Nov 2012 00:39:08 +0000 (00:39 +0000)]
game engine material conversion: don't use the material to convert vertex colors, then extract back out (pre face).

7 years agocode cleanup: bge - rename 'type' to 'use_mcol' in material conversion.
Campbell Barton [Sat, 10 Nov 2012 23:57:13 +0000 (23:57 +0000)]
code cleanup: bge - rename 'type' to 'use_mcol' in material conversion.

7 years ago- property sensor was converting floating point values to text then back to float...
Campbell Barton [Sat, 10 Nov 2012 22:32:15 +0000 (22:32 +0000)]
- property sensor was converting floating point values to text then back to float - for floating point properties.
- IntValue's GetNumber() was convert int -> float -> double.
- BL_Shader was using STR_String rather then char*, where most callers had a char*, use a char* to avoid STR_String conversion-and-alloc on shader access.

7 years agoCycles: panorama camera in viewport camera view now shows the render mapped
Brecht Van Lommel [Sat, 10 Nov 2012 22:31:29 +0000 (22:31 +0000)]
Cycles: panorama camera in viewport camera view now shows the render mapped
to the camera border rather than the entire viewport.

7 years agoRemoved determineDependingAreaOfInterest from movie distortion node
Sergey Sharybin [Sat, 10 Nov 2012 19:15:09 +0000 (19:15 +0000)]
Removed determineDependingAreaOfInterest from movie distortion node

It wasn't used and it was incorrect anyway (distortion could be more than 100px).

7 years agoMovie clip: display stabilization border even if current frame failed to load
Sergey Sharybin [Sat, 10 Nov 2012 19:11:34 +0000 (19:11 +0000)]
Movie clip: display stabilization border even if current frame failed to load

7 years agoSolved issue with distorted compositor results in some cases
Sergey Sharybin [Sat, 10 Nov 2012 19:11:25 +0000 (19:11 +0000)]
Solved issue with distorted compositor results in some cases

Originally issue was discovered when using stabilization and movie distortion
nodes, but in fact issue was caused by render layer node always doing nearest
interpolation. Now made it so this node will respect sampler passed to it's
executePixel function and do an interpolation.

Added two new functions to do bilinear/bicubic interpolation in float buffer
with variable number of components per element, so it could interpolate 1, 3
and 4 component vectors. This functions currently mostly duplicates the same
functions from imageprocess.c and it should actually be de-duplicated. Think
it's ok to leave a bit of time with such duplication, since functions should
be generalized one more time to support byte buffers, which could backfire on

Also removed mark as complex from stabilization node, which isn't needed sine
int fact this node is not complex.

7 years agoOSX/ndof: rollback 52072, test showed we need individually weak functions -> todo...
Jens Verwiebe [Sat, 10 Nov 2012 15:13:41 +0000 (15:13 +0000)]
OSX/ndof: rollback  52072, test showed we need individually weak functions -> todo: solve the clang link issue other way

7 years agoFix #33135: cycles object info random number not working anymore.
Brecht Van Lommel [Sat, 10 Nov 2012 14:50:34 +0000 (14:50 +0000)]
Fix #33135: cycles object info random number not working anymore.

7 years agoBevel: patch from Thomas Beck fixes numeric offset input and adds wheel input for...
Howard Trickey [Sat, 10 Nov 2012 13:59:45 +0000 (13:59 +0000)]
Bevel: patch from Thomas Beck fixes numeric offset input and adds wheel input for number of segments.

7 years agoOSX/cmake: little cleanup in ghost
Jens Verwiebe [Sat, 10 Nov 2012 13:53:58 +0000 (13:53 +0000)]
OSX/cmake: little cleanup in ghost

7 years agoOSX/ndof: test link whole framework weak rather than single functions to fix clang...
Jens Verwiebe [Sat, 10 Nov 2012 13:53:02 +0000 (13:53 +0000)]
OSX/ndof: test link whole framework weak rather than single functions to fix clang compile issue

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.

- 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


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

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

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)]

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.