Commit Graph

35179 Commits

Author SHA1 Message Date
Campbell Barton
050f09aa6c buildsystem cleanup: remove duplicate source & includes for scons,
add a check for duplicates in BlenderLib()m, if 0'd now.
2012-11-14 01:41:24 +00:00
Jens Verwiebe
de5d0d649d scons/warningfix: remove mask_evaluate.c from blenkernel/intern, as it is already build 2012-11-13 19:17:35 +00:00
Matthew Smith
b6d15e3778 Added 'remove doubles' tool to uv editor. 2012-11-13 18:29:29 +00:00
Ton Roosendaal
7abee9614a Bugfix, IRC report:
The "Add Monkey" object name should be Suzanne - as it was until 2.50. :)
2012-11-13 15:47:22 +00:00
Campbell Barton
f579aea076 code cleanup: use ptrdiff_t when comparing pointers and tag event as an unused arg to move_to_layer_invoke() 2012-11-13 15:46:55 +00:00
Ton Roosendaal
f9428065b8 Bugfix #33161
The new node that outputs multilayer was using longer names than default.
Caused old code that truncated pass names to 11 chars to fail on loading exr.

This was an old limit in openexr - but that got fixed long ago.

On todo: check current openexr name lenghts, and all code in Blender that
defines pass/layer names.
2012-11-13 15:36:46 +00:00
Campbell Barton
f0b6b89911 fix [#33156] Ctrl+L Link modifiers produce copies with identical names 2012-11-13 14:53:33 +00:00
Ton Roosendaal
37cc2b4fdc Bugfix #26891
Recoded the move-to-layer popup to wait for execution of operator until you 
press Enter or OK button.
That excludes undo/redo, which makes it faster for many too.

(note the menu is all hotkey driven, so it's MKEY, <number>, Enter)

Also fixed: missing MEM_free in this popup type.
2012-11-13 14:34:36 +00:00
Sergey Sharybin
5aee7c7744 Correction to YCCK and CNYK jpeg images loading into blender
There was incorrect formula applied on color components, used the same
as gimp uses. It makes image looking nicer in blender, however it's
still not 100% correct. Seems lots of software are handling profiles
from jpeg file nicely. But that's another topic.
2012-11-13 14:28:45 +00:00
Campbell Barton
d94b2efbb9 disable applying constructive modifiers when in sculpt mode with multi-res data, since this would crash.
also rename modifier_sameTopology -> modifier_isSameTopology(), modifier_nonGeometrical -> modifier_isNonGeometrical()
2012-11-13 14:21:55 +00:00
Ton Roosendaal
054c6159de Bugfix #33159
Histogram in Blender was nearly useless - it just didnt work, showed
confusing blank results.

Two reasons for it:
- It was including Alpha in the weighted total value
  (RGB images have alpha 255 for all pixels)
- It was counting the a total weight value max(R, G, B, A), instead of
  using max(R) and max(G) etc.

Now it all draws much nicer - similar to Da Gimp! :)
2012-11-13 12:55:09 +00:00
Jason Wilkins
9a5cc8235a Last fix to get_plugin in ikplugin_api.c was off by one in the wrong direction. 2012-11-13 11:31:54 +00:00
Sergey Sharybin
590ed4feb1 Render Engines: fix crash when changing render engine during rendering
Crash would have been happen when changing render ending at the same time
rendering happens. It could be final Cycles render or even preview LUX render.
2012-11-13 11:00:46 +00:00
Campbell Barton
140d382cee fix [#33143] Exporter crash since 2.64 2012-11-13 06:57:07 +00:00
Campbell Barton
add5dd3797 add an operator for mesh mode switching,
this lets python menu for mode setting do mixed selection and extending the selection - just like the buttons in the header.
2012-11-13 05:44:49 +00:00
Mitchell Stokes
590dbb87e7 BGE: Renaming KX_GameObject.group_parent and group_children to groupObject and groupMembers to be a bit more descriptive and match the rest of the BGE Py API. KX_MeshProxy.transform_uv has also been renamed to transformUV. It would be nice to switch to PEP8 names for the BGE Python API, but for now, consistency is better. 2012-11-13 04:38:34 +00:00
Campbell Barton
a7bee65d38 make smoothing value for ring select compatible with the operator.
also wrap long lines in noise.c
2012-11-13 02:45:42 +00:00
Campbell Barton
6335401a49 todo from 2.4x, add back smooth option to edge loop cut. 2012-11-13 02:28:07 +00:00
Jason Wilkins
2243ab514a 2012-11-13 00:54:57 +00:00
Campbell Barton
156047263e uv stitch was executing on Enter-key release, making it not work when starting from operator search popup (pressing enter), also Plus/Minus keys would get incremented for key press and release. 2012-11-12 22:52:16 +00:00
Campbell Barton
1c32617f1e remove 'Reset' button from operator UI, instead have 'Restore Defaults' in preset menu.
If this is needed we can add the reset button back as an option for certain operators,
but AFAICS any operator with enough settings that resetting them all would be annoying - could have presets enabled.
2012-11-12 21:44:48 +00:00
Bastien Montagne
9e8a66e16f Minor spell fix (only one this week, yeah!). 2012-11-12 19:31:31 +00:00
Ton Roosendaal
f0caab41b2 Bugfix #33147
Conversion from 2.49 and older files: support for unlimited materials on
objects had an error in conversion.

Effect was that you couldn't re-assign material slots a Material, in case
you were using "link to object" option.
2012-11-12 18:07:33 +00:00
Campbell Barton
66aa7e9192 add simple quad-strip filling to bevel, use to bevel edges when 2 bevel-edges share a vertex.
this gives more useful topology, eg:
http://www.graphicall.org/ftp/ideasman42/bevel_strip_fill.png
2012-11-12 16:08:02 +00:00
Brecht Van Lommel
d934ae70a0 Fix conflict of cycles persistent data flag with freestyle, add reserved
value for freestyle now.
2012-11-12 14:25:29 +00:00
Campbell Barton
0364a83771 fan filling didnt always work well, now only apply this when its going to work properly. 2012-11-12 12:30:58 +00:00
Campbell Barton
fbdae9ca0a change bevel do/while loops to step the pointer in the while check, no functional changes. 2012-11-12 12:16:21 +00:00
Campbell Barton
08ec3ab64e bevel fan fill edges meeting non selected geometry rather then making ngons which often dont triangulate nicely to follow rounded corners: http://www.graphicall.org/ftp/ideasman42/bevel_fan_fill.png 2012-11-12 11:59:28 +00:00
Joshua Leung
0fc0cb351b More spelling errors, whitespace, and simplifying code with many side effects 2012-11-12 10:38:51 +00:00
Campbell Barton
fbc61c96d6 fix for DNA alignment on 32 and 64bit systems. 2012-11-12 09:27:39 +00:00
Jason Wilkins
d0570c3e39 fix syntax error when disabling both IK solvers 2012-11-12 08:39:27 +00:00
Campbell Barton
cf6994b910 code cleanup: spelling,
also initialize bmesh-bevel settings struct to zero to avoid possible uninitialized memory later.
2012-11-12 07:33:01 +00:00
Campbell Barton
0bfc92ff8e 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.
2012-11-12 05:53:43 +00:00
Campbell Barton
428e5b7a99 bmesh bevel todo: don't loop through all faces to find faces connected to a vertex. 2012-11-12 05:29:54 +00:00
Campbell Barton
97b7154142 replace BM_edge_face_count with BM_edge_is_manifold/BM_edge_is_wire/BM_edge_is_boundary 2012-11-12 04:50:45 +00:00
Campbell Barton
744378483c style cleanup 2012-11-12 03:41:25 +00:00
Campbell Barton
955b5db5e9 build fix: recent commit broke building on 64bit linux 2012-11-12 03:37:28 +00:00
Joshua Leung
5d8a207b67 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
2012-11-12 03:26:40 +00:00
Campbell Barton
d22c5d4341 update to python api Gotcha docs to reflect changes to the api. also add a section about modifying linked library data. 2012-11-12 03:23:47 +00:00
Howard Trickey
b747759698 Bevel: several bug fixes. 2012-11-12 02:52:24 +00:00
Joshua Leung
cf1801e167 DNA alignment fix for GPencil commit 2012-11-12 02:25:21 +00:00
Campbell Barton
89845f280f fix [#33142] Ctrl LMB higher selection mode in edit mode sometimes selects extra elements 2012-11-11 23:33:59 +00:00
Bastien Montagne
0738284e32 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 :/ 2012-11-11 19:46:36 +00:00
Thomas Dinges
13e474047b * Replace math.h with BLI_math.h, this fixes compile on windows. 2012-11-11 18:56:58 +00:00
Bastien Montagne
3dffa021d1 Fix for RNA soft values (confused with hard ones... tss). 2012-11-11 18:38:54 +00:00
Ton Roosendaal
731e15be06 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)
2012-11-11 18:33:35 +00:00
Bastien Montagne
724c55aafa Fix a stupid warning (due to last minute refactor...). 2012-11-11 18:26:39 +00:00
Bastien Montagne
5ff3017900 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).
2012-11-11 16:54:26 +00:00
Bastien Montagne
99d26ceefd Actually, need no more BKE_main.h here... 2012-11-11 14:53:17 +00:00
Bastien Montagne
35dff426e9 "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: http://youtu.be/VwWEXrnQAFI

Will update user manual later today.
2012-11-11 14:48:58 +00:00