Commit Graph

24996 Commits

Author SHA1 Message Date
Ton Roosendaal
c4debb1c64 Bugfix #26977 + Patch by Harley Acheson
Using search for operators showed ambigious names like "Duplicate" or "Delete".
Default names should give at least a descriptive label. In case operators
are collected in a group name-shortening should be handled separaly.
2011-04-19 11:17:29 +00:00
Campbell Barton
a8185f4cc8 patch [#26978] Minor Spelling Mistakes in Editor Operators
+ some errors I noticed.
2011-04-19 10:35:24 +00:00
Campbell Barton
5b920bc2ff Some strings to store ID names were too small, could cause stack corruption.
corrected these and replaced 'sizeof(((ID *)NULL)->name)-2' with 'MAX_ID_NAME-2'.
2011-04-19 06:59:49 +00:00
Campbell Barton
6a91cf9adb noticed a problem with rendering non-active scenes in the node editor.
- the frame from the current scene wasn't used - whereas with rendering it is, set the current frame as is done when node rendering.
- camera switching also failed, added a call to it.
2011-04-19 06:37:29 +00:00
Campbell Barton
217d1aa461 fix [#26900] Problem with active camera between scenes 2011-04-19 06:15:13 +00:00
Campbell Barton
1d536da57e fix [#27016] Add new vertex at wrong position ( bpy.ops.mesh.dupli_extrude_cursor() )
also found curve click-extrude was always aligning the new points depth to (0,0,0), now work the same as mesh edit - align to the selected point or the cursor if none are seleted.
2011-04-19 05:34:05 +00:00
Campbell Barton
ba229e3859 fix [#27011] executing a script crashes Blender 2011-04-19 04:19:09 +00:00
Campbell Barton
6bdb5e75ce fix [#27015] RNA Bug: Unpacking sounds with a long ID name fails: sound ID length wrong?!
also fix for OBJECT_OT_proxy_make and RENDER_OT_render using incorrect lengths for ID names.
2011-04-18 15:20:19 +00:00
Joerg Mueller
5f08bfd46c Fix for [#26990] Loading file w packed audio crashes
FFMPEG was reallocating buffers it didn't own and wasn't allowed to. This workaround should work now flawlessly.

Also fixing a bug regarding unpacking sounds, the UI stated unpacking to //audio/filename while it was unpacking to //sounds/filename
2011-04-18 14:24:36 +00:00
Ton Roosendaal
54f3167270 Bugfix #26901
Compositing, lens distortion node: it delivered RGBA out with alpha zero,
making it not draw previews, violates both premul or straight alpha usage.

Now it just sets alpha to 1 for entire output. 

Cleaned code readability a bit as well.
2011-04-18 11:22:01 +00:00
Campbell Barton
c84e26cb91 fix for part of this report [#27006] Apply Scale at a B-Bone Skeleton causes rescale of B-Bones and offset of attached objects
bbones now get scaled too, but the attached objects still get offset.
2011-04-18 10:40:06 +00:00
Campbell Barton
9dda11e0f1 correction for windows. 2011-04-18 10:18:35 +00:00
Joerg Mueller
fae253a428 Fix for [#26949] problems opening 2.49 files with audio (relative path problems?)
When I wrote that code main.name wasn't set correctly and I had to use G.main.name; now it seems to be the other way round :-)
2011-04-18 10:04:28 +00:00
Campbell Barton
0814cdf54e fix [#26951] blenderplayer and runtimes will not load
blenderplayer wasn't finding bundled python, eg: ./2.57/python/lib
2011-04-18 08:27:50 +00:00
Campbell Barton
75e1104d92 cmake
- allow building blenderplayer with redcode.
- when ffmpeg is enabled remove strict compiler errors for imbuf and blenkernel since its hard to avoid these warnings across ffmpeg versions.
2011-04-18 07:11:40 +00:00
Campbell Barton
ea5baccbf8 fix for own mistake in recent commit: [#27000] Spotlight spot shape size, lamp object data - numerical entries are interpreted as radians though displayed in degrees in SVN 36199
now apply units after python evaluation for unit buttons.
2011-04-18 03:27:15 +00:00
Campbell Barton
66bf6487df object.collision was allocating on access for all object types - camera could get collision data for eg.
now check for mesh types only.

any other type will return None.
2011-04-18 01:45:28 +00:00
Campbell Barton
d95e572227 fix [#26995] Crash on bpy.context.object.collision
use object.collision rather then object.modifiers[...].settings
2011-04-18 01:40:45 +00:00
Matt Ebb
8b2a3c250a Fix [#26896] Displace Node crashes Blender when connected to Z-Buffer
Clamped the maximum displacement distance to 4 x the input image dimensions - prevents hanging when vary large values are mistakenly plugged in, such as Z buffers,
2011-04-17 22:47:23 +00:00
Matt Ebb
f261a22263 Committing patch [#26960] bu MiikaH, fixes bug:
[#26945] Hue Correct doesn't Hue But Rather Saturate

thanks!
2011-04-17 22:11:23 +00:00
Campbell Barton
0862abf68b change unit evaluation only to do try the units replacements if evaluating with python fails, in rare cases its possible a valid python expression could get units applied to it. 2011-04-17 12:47:20 +00:00
Sergey Sharybin
d00f664ee0 Fix #26989: Smooth tangent Iteration field in Curve panel not responding.
Not sure what's the uint of step argument for RNA_def_property_ui_range, but
i just set the same values as in other cases used (like Camera.draw_size)
2011-04-17 12:13:02 +00:00
Peter Schlaile
163dbded30 == Sequencer ==
Fixes Fix for [#25713] VSE shows and renders wrong straight alpha gradient even after convert to pr
(see revision: 34540, fix by Janne)

By not breaking the seqcache interface API.

Added comments to header file, so that it is easier to understand, how the
cache API is supposed to work.
2011-04-17 10:05:27 +00:00
M.G. Kishalmi
69f9104ea7 fix #26957
spotlights halo and intensity tooltip had "(buffer shadow)" in there,
while it works just fine with no-shadow and ray-shadow.

the volumetric "step" property is only visible with buffershadows
anyways.
2011-04-17 08:38:27 +00:00
Campbell Barton
99aec11acf changing the gl texture limit wasn't updating the displayed sizes. 2011-04-16 10:19:34 +00:00
Sergey Sharybin
dbf509237e Fix for IRC reported bug from Dalai:
Text editor used to add extra indentation when inserting new line from
line with dictionary. Also, fixed extra indentation when comma is inside string.
2011-04-16 09:58:50 +00:00
Campbell Barton
71f571a54d fix [#26955] GL Texture Size doesn't work.
Brecht: reverting this change you made r22532, which I cant see a reason for.
2011-04-16 09:26:45 +00:00
Campbell Barton
7f598451fc fix [#26906] Panorama Button (Camera Data Properties)
- render check for ortho/panorama combination wasn't working since the flags were not initialized at the time of checking.
- disable panorama button in ortho mode.
2011-04-15 12:08:17 +00:00
Campbell Barton
1fc9fabfbf possible fix [#26930] Blender 2.57 Shuts down when trying to edit 3D text
can't test but this avoids using strncat which is giving problems.
2011-04-15 03:47:54 +00:00
Campbell Barton
c8798090a7 style changes & replace some memset's with zero initializers. 2011-04-15 01:43:30 +00:00
Campbell Barton
a41c0c324a fix [#26937] Radio button text truncation should start at beginning of string
ensure start of text is always visible.

- also left in test for fix [#26933] which left it broken.
- quiet warning in AUD Py API.
2011-04-15 01:32:37 +00:00
Joseph Eagar
d3e4c2243d correct typo 2011-04-14 22:15:43 +00:00
Daniel Salazar
a4cc295000 float value reader in compositor backdrop (Alt + LMB Drag) should be 4 decimals like in image editor 2011-04-14 20:30:54 +00:00
Campbell Barton
5e26763b40 fix [#26933] Render Crash with Decimate Modifier 2011-04-14 17:22:05 +00:00
Campbell Barton
3ac68d7975 no functional change, avoid making stack arrays for the purpose of indexing. 2011-04-14 17:06:55 +00:00
Campbell Barton
d9c2497859 no functional change, avoid making a 4 pointer array just for an index lookup for tangents, orcos and normals. 2011-04-14 16:41:17 +00:00
Campbell Barton
5d850c16bf fix [#26902] Raytracing black dots
derivatives from reflected duplis were not taking object instance transformation into account.
2011-04-14 16:13:32 +00:00
Sergey Sharybin
31bd412447 Fix #26932: When I enable multires, and start sculpting, some parts of the mesh just disappears.
Redraw issue was caused due to different redraw rectangles used for 3d view redraw and
gathering PBVH nodes to be re-drawed. I moved redraw rect expansion with rect from
previous step into sculpt_get_redraw_rect, so now redrawing works as it was planned
some commits ago -- redraw everything to which is inside currect rectangle and rectangle
from previous stroke step -- this still prevents artifact caused by fast strokes but
mesh doesn't disappear.

Brecht, Nicholas: it's the simpliest fix i could suggest atm. I've got some more
ideas with additional node flags, but it looked more complicated for me and
made code more difficult to understand. If you could see something better (like
revert all this redraw fixes for fast strokes) please tell me.
2011-04-14 15:53:33 +00:00
Campbell Barton
5175d509ab fix [#26931] Shift+Alt+RMB only selects loops, can't deselect them - 2.57 official
own fault with fix [#26885] for selected edges having de-selected verts in some cases.
2011-04-14 15:03:28 +00:00
Campbell Barton
b1cc8ea18a incorrect documentation spotted by macouno. 2011-04-14 12:19:31 +00:00
Joshua Leung
6019b007a8 A better fix than r36151 for the Grease Pencil drawing issues in the
Image Editor.

There's already a flag in use for tagging the "special drawing in
Image Editor" case, so make use of that now.
Most of the changes here are just whitespace tweaks...
2011-04-14 04:22:52 +00:00
Campbell Barton
fa63c29775 work-around for grease pencil single points in the image view drawing really large (bigger then the image). 2011-04-13 15:30:26 +00:00
Campbell Barton
5fbfbd4470 fix [#26904] Crush while open file !
commit r28002 was attempting to run do-versions on an invalid pointer.
2011-04-13 14:40:50 +00:00
Campbell Barton
8a238fb8f9 disable engine info until report popup bug is fixed. 2011-04-13 09:08:55 +00:00
Campbell Barton
cacc6b5ecf fix [#26895] STL import in Win 7 64bit
fixes python non-utf8 path access for file selector 'files' property.
2011-04-13 02:47:52 +00:00
Campbell Barton
b68c911931 fix for mistake checking engines on load. 2011-04-13 00:51:48 +00:00
Thomas Dinges
84e793a6f9 Crap, there was still a old Link to Release Logs. Maybe retag, after this and last commit (Tooltip error in Splash Screen) ? 2011-04-12 21:17:31 +00:00
Andrea Weikert
d78220549b fix for compile issue on MSVC 2008 due to macro expansion differences with gcc. 2011-04-12 17:58:54 +00:00
Campbell Barton
771390793f fix for crash when pressing 'Copy Startup Settings', was using out of date main database. 2011-04-12 17:18:02 +00:00
Campbell Barton
2a0d8a4dfb edits to blender version data. 2011-04-12 16:36:14 +00:00
Ton Roosendaal
4239d7c1a5 The Epic Blender 2.57 first stable commit! :)
Let's do a quick last check if things work, call for release will be done
shortly on bf-committers.

Thanks everyone for making it possible!
2011-04-12 16:24:24 +00:00
Campbell Barton
f0b45cc1fb - fix for cmake when there is no version character.
- link to release docs correctly from the splash page.
2011-04-12 16:20:41 +00:00
Campbell Barton
d14738a560 report missing engines on file load. (request from Martin). 2011-04-12 15:55:38 +00:00
M.G. Kishalmi
bfa332e275 changed image texture filters description from 'Area filter' to
'selected filter'.
2011-04-12 15:55:04 +00:00
Campbell Barton
b636418bd9 ignore the local blender folder when displaying the copy old settings button. 2011-04-12 14:57:02 +00:00
Brecht Van Lommel
a475368deb Fix #26860: uv snap/weld/stitch did not take live unwrap setting into account. 2011-04-12 14:22:52 +00:00
Campbell Barton
62c0dfbb46 fix [#26888] 3D viewport shading broken after solidify modifier 2011-04-12 12:59:37 +00:00
Campbell Barton
6e98c791af fix [#26885] transform option disapears when deselecting loops
deselecting edgeloop & edgering would leave the verts de-selected even if other edges had them selected.
2011-04-12 12:49:54 +00:00
Campbell Barton
a42bf45333 revert Joseph Eagar's eltopo commits r36073, 36075 (& some minor edits)
discussed with Janne, Ton, Nathan and we agreed this kind of change at least needs discussion with module owners.

Its also too close to release to be making these kinds of changes.

commands used:

  # reverse merge
  svn merge -r36073:36072 .
  # for some reason this gave a lot of property changes
  svn revert `svn st | grep "^ M" | awk '{print $2}'`
  # reverse merging didn't work here, removing while dir.
  svn rm extern/eltopo/


  # manually fixed conflict in
  # ./source/blenderplayer/CMakeLists.txt
  #
  # also manually removed 2 lines from
  # ./CMakeLists.txt
2011-04-12 11:09:10 +00:00
Sergey Sharybin
b7269aa36e Fix #26879: Some sculpt brushes does not work when sculpting corrective shapekeys
It was simply missed crazyspace correction for shape keys when mesh is
deformed by modifiers and current tool is smooth/layer (they need special
approach due to they don't use proxies)
2011-04-12 10:16:00 +00:00
Campbell Barton
618690b05e modify the method for calculating ghost alpha.
* ghost frame 1 did nothing (alpha 0.0).
* was subtracting alpha from the existing alpha which could end up with negative alpha.
* with larger frame ranges the frames on each size would get too close to being the same as the active frames alpha, use 66% alpha for all non-active frames as well as time based falloff.
2011-04-12 10:13:09 +00:00
Campbell Barton
8fd1d53a31 change behavior of restoring old settings
- only attempt to restore old 'user' settings (not local), since bundled blender's always use their own settings.
- only automatically run 'bpy.ops.wm.read_homefile()' after copying files if the user hasnt alreadt started making changes in the blend file.
2011-04-12 04:23:38 +00:00
Campbell Barton
3a73a75e84 enable blenderplayer library sorting on windows, (was already enabled for blender), resolves linking issue on windows 2011-04-12 01:56:03 +00:00
Campbell Barton
9699592628 py api: bpy.data.is_dirty wasn't working like image is dirty, instead is would return if the file was saved or not.
- rename to 'is_saved' (and negated).
- add 'is_dirty' which is true when the files edits are not saved to disk.
2011-04-11 15:31:05 +00:00
Campbell Barton
66419dcc12 operator & splash button to copy over old settings when blender version changes. 2011-04-11 15:13:06 +00:00
Campbell Barton
f8c09b37d4 api changes needed for for copying old settings to new.
- py: bpy.utils.resource_path('USER', 2, 56)
- C: BLI_get_folder_version(id, major, minor, check);
2011-04-11 13:56:58 +00:00
Campbell Barton
d4d88de2b0 fix [#26856] Can't change target object in modifier by Ctrl+V 2011-04-11 05:33:43 +00:00
Campbell Barton
2d1e663440 patch [#26861] Spelling, Typos, and Grammar
- also fix own bad assert from yesterday & remove testing cmake print.
2011-04-11 01:18:25 +00:00
Campbell Barton
cfc2b0b01f fix for one of the [#26854] UV issues
- add back UV X/Y number buttons, the report points out they are missing.
- set the 2D cursor's subtype to PROP_COORDS (so buttons say x/y now)
2011-04-11 00:49:08 +00:00
Joerg Mueller
e37dc17991 Fix for [#26652] "Audio Muted" in Time Line Editor is not working
-> The feature was completely missing o_O
Also fixed an ffmpeg seeking bug.
2011-04-10 22:40:37 +00:00
Ton Roosendaal
2afae38019 Bugfix #26842
Compositor: when using RenderLayer nodes from other scenes and FSA,
Blender crashed because these nodes didn't get a 'tag' for refresh.
2011-04-10 18:15:24 +00:00
Campbell Barton
dbd3009108 - background job style cleanup.
- assert if material assignment is called with lib. (so the callers can be corrected).
- correct example docs
2011-04-10 15:24:05 +00:00
Ton Roosendaal
f2b9dfe9f7 Redid the previous startup.blend changes by Thomas
(icon for material, 1 console). 
A windows tmp path crept in somehow...
2011-04-10 13:14:34 +00:00
Andrea Weikert
e137a3a081 Fix [#26827] Blender Crashes when it opens corrupt jpeg
* memory corruption when skipping over long marker (was attempting to read over end of file)
* also updated internal jpeg macros to be the same as in jpeg lib
2011-04-10 11:36:29 +00:00
Janne Karhu
f8124d6db7 [#26848] Keyed Particles seems to be broken
* Explode modifier wasn't updated properly when keyed particles were used.
* Explode modifier didn't get correct locations for grid distributed particles.
2011-04-10 11:24:29 +00:00
Campbell Barton
28594bc742 minor pep8 edits, also added 'test_pep8' & 'test_cmake' to the GNUmakefile for convenience. 2011-04-10 10:45:56 +00:00
Campbell Barton
1c6956a4d6 quiet msvc/mingw compiler warnings. 2011-04-10 09:37:04 +00:00
Thomas Dinges
2d677efb3b Startup blend:
* Default material missed the mat preview icon.
2011-04-10 08:29:17 +00:00
Thomas Dinges
e0c759ece3 Startup blend:
* Removed the second console in the "Scripting" Screen Layout.
2011-04-10 07:53:18 +00:00
Nathan Letwory
4d469265dd Enable WINDRES only for MinGW, otherwise we get multiple manifest errors for ie. vs2008 2011-04-09 23:25:52 +00:00
Joseph Eagar
0a60bc14d6 =cloth collisions=
Plugged the eltopo library into the cloth solver.
I was playing with it earlier, and it's so easy to
use I decided to quickly put it in (trunk's) cloth.

See http://www.cs.ubc.ca/labs/imager/tr/2009/eltopo/eltopo.html
.  The authors are on the bleeding edge of continuous collision
detection (one of them did ILM's cloth sim).  
I
don't really have to time to plug it into softbody, particles,
bullet, fluid, etc, but doing so would be pretty straightforward.
I'll leave that up to someone else.

To use, turn on USE_ELTOPO (in cmake) or WITH_BF_ELTOPO in scons.
2011-04-09 23:19:11 +00:00
Nathan Letwory
d13df6cffc Print out reports on console too (debug and up) as fix for [#26708] "INFO" reports are not displayed
reported by Tom Edwards

Showing of certain reports (ie. info) is very hidden. At least print these to console.
2011-04-09 02:23:39 +00:00
Campbell Barton
161927e27e remove -mwindows flag for scons/mingw, enable manifest & winblender.rc for all windows builds except for msvc2010 2011-04-09 00:10:29 +00:00
Nathan Letwory
9feb70d390 Add missing defines for .rc file. 2011-04-08 22:07:17 +00:00
Ton Roosendaal
1728c20a63 Fixes related to using Library files:
- Assigning local materials to library objects disabled
  (crashes on undo/redo cases)
- Disabling options in Material buttons to add/remove slots
  on library data
- Drawing Object ID template in Object properties, this
  allows browse active Object, but especially shows library
  status then.
2011-04-08 16:56:44 +00:00
Nathan Letwory
626c268096 Fix small typo in resource define. 2011-04-08 15:00:53 +00:00
Sergey Sharybin
20dea8c108 Fix for compilation under non-windows platforms -- missed check for
platform before WM_console_toggle call
2011-04-08 14:04:59 +00:00
Campbell Barton
70cd0803ab add new subtype PROP_COORDS, for generic coordinates that are not to be changed by units. 2011-04-08 13:32:56 +00:00
Nathan Letwory
2b95549079 Apply console part of patch [#26044] Windows thumbnails and improved filetype registration
submitted by Tom Edwards

This patch introduces a switch -con and its longer version --start-console. When giving this on cmd-line you'll get the black console window. The new behaviour is to hide it by default. We'll still see briefly the console at startup and during exit, but that's something that cannot be changed.

If you start blender from a cmd.exe, the console will not be hidden.
2011-04-08 12:49:38 +00:00
Campbell Barton
0f5959abd9 fix [#26674] Inconsistency in snapping CursorToSelection between UV_Editor and 3d_View. 2011-04-08 12:28:59 +00:00
Lukas Toenne
50969c24a6 Minor bugfix in initTransInfo: SpaceImage used even if space type is SPACE_NODE. 2011-04-08 12:02:30 +00:00
Janne Karhu
5ada3999ca Fix for [#26800] Particle Render "Use Group Count" is shared between different Particle Settings datablocks
* Copying particle settings didn't copy the dupliweights.
2011-04-08 10:28:16 +00:00
Nathan Letwory
08bb4bed94 doxygen comments, removal of superfluous backslash. 2011-04-08 09:31:13 +00:00
Campbell Barton
ed7f0c603f fix [#26803] Libs paths are case sensitive in windows
another case was exposed by this report, making relative paths wasn't case insensitive on windows.
2011-04-08 06:47:41 +00:00
Campbell Barton
fefb044293 for thumbnail generation only scale the byte buffer. (was scaling float & byte). 2011-04-08 03:56:15 +00:00
Campbell Barton
b305a26d2f fix for own assert with image scaling, wasnt working with float images. 2011-04-08 03:53:40 +00:00
Campbell Barton
b0d6c0fdee fix [#26830] Blender crashes when opening this file
was linking NLA fcurve modifiers as fcurves (wrong function call).
2011-04-08 02:21:43 +00:00
Campbell Barton
6b3f5ecd18 change to fcurve keyframe coords broke simplify addon since the property
was no longer wrapped by python as a vector. now fixed size float arrays
with PROP_NONE subtype are wrapped as vectors since its convenient to
have x/y access.
2011-04-08 01:40:54 +00:00
Ton Roosendaal
ba44bf522c Bugfix #26812
On anim-render, a click in timeline stopped render completely.

The reason for this was a bit wacko code to cope with frame-step 
feature (steps of multiple frames).

I thought of fixing that, but instead decided to block any operator 
in Blender to change a frame while a render is in progress. 
Both render engine and UI are accessing (writing to) the same 
data then, which is a bad conflict.

Still a serious weakness of threaded render, but I'll keep
trying to allow this as far as possible :)
2011-04-07 15:48:33 +00:00
Ton Roosendaal
545b0a483d Bugfix #26748
Boolean modifier should be restricted to Mesh objects only.
2011-04-07 13:14:08 +00:00
Ton Roosendaal
5c2b8baa4b Minor fix, own collection.
Knife cut operator was using int_get where enum_get was meant.
2011-04-07 12:36:24 +00:00
Campbell Barton
3e5e49d902 add margin access [#26806] Missing pack margin for pack islands in UV editor 2011-04-07 08:54:43 +00:00
Campbell Barton
24d6192f53 fix [#26816] P(separate) an object messes up logic brick links 2011-04-07 08:23:00 +00:00
Dalai Felinto
4fb7f6a706 build fix after commit 36036 reported by Tom Edwards over mailing list 2011-04-06 22:03:02 +00:00
Brecht Van Lommel
0a9ec053c0 Fix for Image.pixels set, buffer was not tagged as modified, patch by Domino Marama. 2011-04-06 12:54:47 +00:00
Sergey Sharybin
dbe3369ae2 Name unification commit for console toggling operator.
Requested by Dalai, approved by Campbell. Other requested from Dalai
changes were rejected by our Python Departament.
2011-04-06 12:30:07 +00:00
Sergey Sharybin
11efce450d Fixed incorrect RNA access when changing type of sequencer view 2011-04-06 07:24:58 +00:00
Campbell Barton
696e7a311a include needed for windows 2011-04-06 06:29:10 +00:00
Campbell Barton
083f8d3a0a cmake/windows, temporarily build without winblender.rc until its fixed, was giving linking error with msvc2010 and isn't essential info. 2011-04-06 06:11:39 +00:00
Campbell Barton
a7507e945d fix [#26803] Libs paths are case sensitive in windows
use case insensitive path comparison on windows: BLI_path_cmp
2011-04-06 06:03:48 +00:00
Campbell Barton
5c7bed92d4 fix for cmake glew includes (tested with mingw), also made qtcreator project generator work with mingw again 2011-04-06 03:02:40 +00:00
Campbell Barton
4b15fcf497 fix [#26801] Undoing Animation modifiers undoes 2 steps.
also found grease pencil layer operators were not flagged to use undo.
2011-04-06 01:13:01 +00:00
Campbell Barton
751bbd0b6a update test checksums (change in normals caused this). also make all imports write blend files so its easy to check what the imports look like. 2011-04-06 00:46:06 +00:00
Campbell Barton
ca254dd37b add option WITH_BUILTIN_GLEW, so linux packagers can disable to use their own glew library. 2011-04-05 23:31:01 +00:00
Campbell Barton
b6a1df337d tooltips were part way of the bottom of the screen (timeline play button for eg) 2011-04-05 12:05:47 +00:00
Joshua Leung
bbf82877cf Bugfix [#26792] blender crash when scaling action strip in NLA
Two part bug:
Part 1) NLA Editor menu was calling wrong operator
Part 2) r35829 broke NLA scaling, since it only checked that the
transform mode used was allowed in the Action Editor (probably
confused by Part 1)
2011-04-05 11:04:00 +00:00
Campbell Barton
1f45f5c15d fix [#26793] Is the Convert function of Grease Pencil normal?
disallow grease pencil conversion in editmode, was setting a new active object.
2011-04-05 08:54:13 +00:00
Campbell Barton
8f4343cb30 fix for render only drawing wire curves in wire view. 2011-04-05 07:26:22 +00:00
Campbell Barton
2b90eb18e2 Commit r33378 adds a red alert to search buttons which have items which are not in the list.
Disable this for pointer buttons since this was intended for vgroups & uvlayers.

Pointer buttons often reference ID's which can be in the 1000+, lookups like this on each button draw is not useful since invalid pointers here will likely crash on scene evaluation.
2011-04-05 07:13:23 +00:00
Campbell Barton
dcb26e4e47 fix [#26782] Missing settings in some texture nodes.
also rename noisebasis_2 --> noise_basis_2
2011-04-05 06:05:55 +00:00
Campbell Barton
db6ea4d3a5 utility function for getting the vector direction the mouse is pointing in a perspective view. 2011-04-05 02:58:19 +00:00
Campbell Barton
162d02bf50 quiet warning & minor pep8 edits. 2011-04-04 22:42:43 +00:00
Campbell Barton
b3bc0040d8 fix [#26785] Curve shows in 3dview regardless of "Only Render" 2011-04-04 22:40:56 +00:00
Andrea Weikert
257c408f46 == filebrowser ==
Small fix for recent folders in filebrowser, didn't save correctly when too many folders in the list (more than the currently allowed 10), now skips the oldest entries.
Reported on IRC.
2011-04-04 20:32:39 +00:00
Sergey Sharybin
83931775a1 Descriptions for some of curve operators 2011-04-04 20:31:01 +00:00
Brecht Van Lommel
3303b838c6 Fix for the fix, making hurried last minute changes is not a good idea :) 2011-04-04 17:28:31 +00:00
Brecht Van Lommel
7b9fed7392 Fix for slow Image.pixels, make it a flat instead of multidimensional array. 2011-04-04 17:10:48 +00:00
Brecht Van Lommel
35c934af79 Fix mistake in recent commit to revert some normal changes. 2011-04-04 17:09:22 +00:00
Ton Roosendaal
89e4de45e4 Startup.blend update:
- Clip in 3d window now 1000 (2nd try :)
- Raytrace "Instances" default
2011-04-04 16:58:17 +00:00
Sergey Sharybin
6f5f4283fd Fix #26781: Assigning multiple Materials to Text seems not to work correctly
Problems was in 0-based numbering vs. 1-based. Fonts are getting converted to
displists when they're displaying and here base conversion happens, so no need
in conversion when assigning material to selected text.

This makes indices more inconsistant, but saves compatibility in both of
directions. Maybe in further releases we'll make indices consistent.
2011-04-04 16:19:18 +00:00
Sergey Sharybin
e8ea4411f8 Fix for redraw issues when making fast strokes with grab tool in sculpt mode
Join redraw rectangles from previous step and current during one stroke
and reset previous rectangle when stroke is finished. This shouldn't cause problems
with viewport changes during the sculpt session and this should emulate
object boundbox merging for states "before step" and "after step".

At leastm it's more logical because boundbox could not only grow up during
stroke, but it could also shrink down.
2011-04-04 15:15:45 +00:00
Campbell Barton
25976b7b87 crash fix: screen context editable_bones & visible_bones were not checking for armature type object first. 2011-04-04 15:13:37 +00:00
Ton Roosendaal
8d1a04a2bb UI fix:
On dark menu backgrounds, the labels for Option buttons were not using
the theme colors for 'text on menu backdrop'.
2011-04-04 15:01:22 +00:00
Ton Roosendaal
f2fd9d11bc Bugfix #26761
Texture preview render now doesn't increment/decrement material->texture
user counts anymore. Blenders library.c code could use some overhaul
once to support data relinkage and copying around better. :)
2011-04-04 13:47:34 +00:00
Janne Karhu
36858f6342 Fix for [#26747] Crash accessing dynamic hair RNA
* Removed hairkey.co_dynamic. The hairkey access is now simplified so that hairkey.co are the dynamic coordinates whenever the hair is dynamic.
2011-04-04 13:47:28 +00:00
Janne Karhu
5b996e04d2 Fix for [#26750] Particles Can Only Address first 16 Material Indexes
* The rna maximum hadn't been updated when the maximum material count was increased.
2011-04-04 13:33:31 +00:00
Brecht Van Lommel
709e4b309e Revert mesh recalculation change that gives different vertex normals based
on smooth/flat flag on faces. This does give better results for low poly
game models, but there's just too much functionality that depends on this
(modifiers, displacey, editmode tools, extrude, ...), that there's not
enough time to fix these before the release.
2011-04-04 13:02:12 +00:00
Campbell Barton
dfa3a6fc84 fix [#26774] Grease Pencil error?
own error with recent change to grease pencil.
2011-04-04 09:22:06 +00:00
Campbell Barton
57d020f061 fix [#26756] "Release confirms" breaks marker functionality in Timeline 2011-04-04 07:42:08 +00:00
Campbell Barton
233d8594fc [#26768] 2.57 - sys.path not initialized properly
we should document this properly (we only have general design docs atm), for now just correct the tooltip.

also update api example docs.
2011-04-04 05:47:04 +00:00
Campbell Barton
4ea7e562f8 rename mathutils.Vector/Quaternion difference() method to rotation_difference() since its too vague when applied to vectors. 2011-04-04 05:17:23 +00:00
Campbell Barton
188d830385 fix [#26765] seperate selection removes all seams from the new /seperated object.
patch from Sergy to copy the draw flags, also copy smooth threshold and other flags todo with editing / draw settings.
2011-04-04 04:54:41 +00:00
Campbell Barton
91769a65f2 remove unused DNA from mesh, effects list & cubemap size. 2011-04-04 04:47:18 +00:00
Campbell Barton
a3cc6c73e8 noticed image color info text was impossible to read at 25% alpha with some images, set alpha level higher. 2011-04-04 04:14:25 +00:00
Campbell Barton
37007a7bc8 disable continuous grab in the header, its more annoying then useful.
also NULL texture's point density tree data when copying to prevent possible double free.
2011-04-04 03:25:05 +00:00
Campbell Barton
b344d80726 fix crash with previewing point density colorband, it wasnt being copied with the texture but was freed, making blenders own data point to freed memory.
found in bug report [#26767].
2011-04-03 23:35:20 +00:00
Campbell Barton
65b13c8089 fix [#26757] Python console: help() doesn't work anymore
also quiet some warnings & add docstrings to bpy module which was shaowing the GPL header in its help() message.
2011-04-03 23:11:00 +00:00
Campbell Barton
c118d644d9 fix [#26760] Crash on voxel data image sequence file datablock unlink 2011-04-03 22:24:05 +00:00
Sergey Sharybin
a30ebdeb68 Fixed invalid RNA access in radial brush operators (like strength/size abjustment) 2011-04-03 20:00:19 +00:00
Ton Roosendaal
3fb74f8e59 Startup.blend update
- make outliner search unrestricted
  - clip-end not on 5000 (zbuffer errors), but on 1000
  - disabled continious grab
  - "duplicate action" default on
  - addon svg import default on
2011-04-03 16:55:58 +00:00
Brecht Van Lommel
993e9d4c46 Image pixel acces, through Image.pixels as floating point values.
It's not the most efficient solution, but this can be optimized later. It's
best to copy out all the pixels at once into a list, rather than accessing
them one by one.
2011-04-03 16:17:39 +00:00
Brecht Van Lommel
480b9dca64 Add material slot now adds no material in the new slot.
It's obviously much better than the two previous behaviors, since you don't
get confusing linked materials, and you don't have useless added materials.
2011-04-03 16:11:21 +00:00
Campbell Barton
4c44a1fc04 quiet warnings. 2011-04-03 13:17:07 +00:00
Campbell Barton
5932cec2c6 temp fix for building with msvc2010, this changes recently and gave mingw/msvc2010 troubles 2011-04-03 12:31:53 +00:00
Campbell Barton
0298d223cc quiet various warnings, also disable -Wdouble-promotion with cmake since it gives warnings with variable length args. 2011-04-03 10:04:16 +00:00
Campbell Barton
5c8234c81c replace while loops with angle_wrap_rad() 2011-04-03 05:29:58 +00:00
Thomas Dinges
2c3b4a91dc Committing patch [#26740] Interface improvement for toolbar by Brecht. Thanks!
This patch makes the bool properties inside the toolshelf more compact, only 1 row per item now. :)
2011-04-02 16:45:17 +00:00
Ton Roosendaal
447c73d639 IRC report: Proportional editing tooltip lacked, and missed info for
the menu items.
2011-04-02 16:29:33 +00:00
Ton Roosendaal
b85013e1ec Bugfix #26736
Operator "New Image" cannot be redone simply, undo system keeps images
around, and each redo will create new block. Removed it from being
registered for redos.

Also: fix up for default operator names to be complete, and not just
"new" or "load". If we want contextual shortening of operator names
(like in Image menu), that should be handled seprately, automatically,
or anything we can sanely come up with that will suit any possible
language as well.
2011-04-02 15:30:58 +00:00
Martin Poirier
371a7b477d Fix register method order. Was broken when Campbell moved it to the C implementation.
register has to be called AFTER the type is registered while unregister has to be called BEFORE it's unregistered.
2011-04-02 14:58:58 +00:00
Ton Roosendaal
89dea61c17 Bugfix #26731
Hotkey operator "Toggle full screen layout" restored previous layout
wrongly when mouse in was top header.
2011-04-02 14:11:13 +00:00
Thomas Dinges
a5804c2e60 [#26719] Fix AAO Tooltips by Sergej Reich (sergof). Thanks! 2011-04-02 12:54:17 +00:00
Campbell Barton
d85279e58c move grese pencil layers[i].active (boolean) -> layers.active (GPencil Layer). 2011-04-02 11:06:41 +00:00
Campbell Barton
3bc59fe771 fix [#26732] Colorband bug with compositing.
reported on IRC but submitted to the tracker for example file reference.
2011-04-02 07:04:34 +00:00
Campbell Barton
f1b42a129f add angle wrapping functions: angle_wrap_rad(), angle_wrap_deg().
use with mathutils.
2011-04-02 03:05:49 +00:00
Campbell Barton
69bd72c3b6 quiet gcc float -> double promotion warnings. 2011-04-02 02:08:33 +00:00
Campbell Barton
fb994b3c85 fix [#26727] Make Proxy ignores group offset 2011-04-02 01:36:40 +00:00
Thomas Dinges
1f7ed6a931 2.5 Weight Paint UI:
* Added menu entry for "Set Weight" Tool. Request by venomgfx :)
2011-04-01 22:19:03 +00:00
Thomas Dinges
367cf47dd6 2.5 UI:
*Brush option "size" had different naming in 3D View / Image Editor.
Ported back name "Radius" to RNA (Brush and ParticleBrush) 

Discovered by Bart Crouch. Thanks!
2011-04-01 20:36:27 +00:00
Sergey Sharybin
d40b0dfb75 Comments for mesh normals calculation from Mortem Mikkelsen (aka sparky).
We hope it'll help for further workers in this area!
2011-04-01 18:35:49 +00:00
Brecht Van Lommel
18fd4d3137 Partial fix for #26673: sss + normal map wasn't compatible with previous versions. 2011-04-01 16:01:29 +00:00
Campbell Barton
3ddbb36fa7 modification to api docs so release point to:
http://www.blender.org/documentation/blender_python_api_2_57b_release

Development versions point to:
   http://www.blender.org/documentation/blender_python_api_2_57_0

This way updates to api docs after release wont overwrite release docs.
2011-04-01 15:13:58 +00:00
Ton Roosendaal
339c6c4a51 Bugfix #26691
"Theme default" missed a couple of new colors still.
2011-04-01 15:08:45 +00:00
Campbell Barton
b94a5e7f02 fix problem with recent commit [#26717] X-Ray conflict (X-Ray Grease Pencil and Object X-Ray) 2011-04-01 14:14:37 +00:00
Campbell Barton
a4193184bf - bpy.app.release so python scripts can check if the release is stable or not.
- edited pose bone matrix description.
2011-04-01 14:04:26 +00:00
Ton Roosendaal
00fe87c84b Bugfix #26672
Minor glitch: Add Camera operator showed option "view aligned", 
but that doesn't work for camera. Is now hidden.
2011-04-01 13:56:01 +00:00
Ton Roosendaal
e725f1cf95 Bugfix #26654
A lot of UV tools only work in Image editor, but the operator polls
allowed them to be used in 3d window too, causing crashes in cases.

Also added a poll() check in F6 redo menu.
2011-04-01 12:51:04 +00:00
Joshua Leung
2bd22ec559 Animation Editors: Name-based filtering
I'm finally yielding to months of feature requesting, and adding
support for filtering F-Curves by name, where the "name" here is the
text which is displayed for each F-Curve in the Animation Editor
channel lists.

To use, just enable the magnifying-glass toggle on the DopeSheet
filtering settings, and enter a snippet of text to find within the
names of channels you wish to filter. This is case insensitive, and
currently doesn't support any wildcard/regrex fanciness.

Some examples:
loc  <--- location curves only
x loc <--- x location curves only
x eul <--- x rotation curves only
rot <--- rotation curves only
etc.
2011-04-01 12:21:41 +00:00
Campbell Barton
94ec34fb04 xray option for grease pencil (on by default), sometimes its nicer not to have lines draw through the mesh. 2011-04-01 11:55:21 +00:00
Campbell Barton
3556da255a fix for memory leak when freeing metastrips from the clipboard. 2011-04-01 09:00:16 +00:00
Campbell Barton
6d3546069c fix [#26713] Video Sequencer: Audio mute after making meta strip copy/paste
was not recursively restoring sound strips on paste.

also found many duplicate functions were defining the transform mode as in int but getting as an enum, use enum for both now.
2011-04-01 08:51:12 +00:00
Campbell Barton
308f813f3a workaround for building blender with mingw, was giving syntax error, for now just dont include blender version in the exe for mingw 2011-04-01 06:56:45 +00:00
Campbell Barton
9999c958c8 fix for cmake / windows from mont29 on IRC. 2011-04-01 06:39:19 +00:00
Campbell Barton
d2a3005dd0 Add back sculpt mode brush keys.
Operator for switching brushes based on type, cycling through brushes when multiple exist.

This has the advantages over the old method that it doenst rely on hard coded brush names and if there are multiple brushes of the same type it cycles between them.

also fix error in previous commit which broke number buttons changing brushes.
2011-04-01 06:14:39 +00:00
Campbell Barton
d4a9bc1c21 while looking into adding back brush tool keys found mixed texture/image paint rna vars, using 'image paint' internally. 2011-04-01 04:22:30 +00:00
Campbell Barton
c8652b301f pep8 checker, mostly pedantic style changes but also found an error in mesh_utils.mesh_linked_faces() 2011-04-01 02:41:15 +00:00
Campbell Barton
14e94d742e using wrong RNA type in sculpt update. 2011-03-31 17:54:23 +00:00
Ton Roosendaal
5d02ce8a7b Bugfix #26687
Using "New scene" operator was setting the screen->scene pointer
after the undo-push, messing up redos or undos immediate after.
2011-03-31 17:14:31 +00:00
Campbell Barton
cd9b42871c remove bpy python api from blenderplayer, it was being linked but not initialized/available. 2011-03-31 15:28:53 +00:00
Ton Roosendaal
6e14661ad0 Bugfix #26651
If greasepencil became active, making Blender area full or restore
screen from full, the greasepencil handler was still running, using
outdated area pointer. This crashed Blender.

Now greasepencil modal() ends on the case its own stored area does
not exist anymore.
2011-03-31 15:26:51 +00:00
Campbell Barton
76d7a3562c blender had no option to add a new scene from the UI, only to copy the existing one.
added a new scene option which doesnt copy any render settings from the previous.
2011-03-31 14:33:59 +00:00
Campbell Barton
c7183d2622 library linked modifiers were not having their ID linked expanded properly.
was missing array cap ends, wave map object and shrinkwrap objects.

use modifiers_foreachIDLink() rather then having to list all modifiers ID's in this function.
also add foreachIDLink() for smoke domain.

This fixes a bug where a linked object has as a modifier using an indirectly linked object for the missing cases mentioned above.
2011-03-31 11:21:21 +00:00
Campbell Barton
75cd392a57 fix for own error r35877, was ignoring #'s in file path by using the digits value passed rather then the number of digits in the string. 2011-03-31 10:31:14 +00:00
Campbell Barton
d7dd2154a1 fix for issue #2 in report: [#26695] Two fail cases with modifiers targeting linked assets
also fix for scene.objects.link() not setting library data as being directly used.
2011-03-31 08:49:52 +00:00
Campbell Barton
e339acf3a9 fix for a crash when loading a new blend file which had a scene with the same name as the old one, the freed backbuffer image from the previous blend file would get reused.
also NULL the bakebuf just incase its accessed in future though at the moment this isnt causing any problems.
2011-03-31 05:20:48 +00:00
Campbell Barton
7cb68f89ed fix for using freed memory in ED_area_newspace() caused by loading webskategirl_bullet.blend and rendering which created a new image space. 2011-03-31 04:55:57 +00:00
Campbell Barton
66a1259153 fix for crash when running blender with define WITH_PYTHON_SAFETY & no startup.blend was found.
was calling python function when python was not initialized.
2011-03-31 04:43:26 +00:00
Joshua Leung
077f8520da Pose Propagate - Further Tweaks:
- Pose Propagate and Pose Sliding tools now work in the same way as
Pose Library previewing, with regards to selections. If some bones are
selected, then only those will be affected. But if no bones are
selected, then the whole rig gets affected.
- Added a "On Selected Markers" option, which only propagates poses to
frames where there's a selected marker. Animators can combine this
with a "select markers whose name contains..." operator to get an
effective way to manage hand-keyed walk cycles, etc.
2011-03-31 01:37:42 +00:00
Joshua Leung
531d3e410f Propagate Pose Tweaks:
- Renamed "Last Keyframe" mode to "Before End". This mode still just
copies the pose to all keyframes starting from the current frame until
the last one encountered per F-Curve
- "Last Keyframe" mode (new one) now copies the pose to the last
keyframe. This is useful for making animations cyclic (i.e. go to
first keyframe, edit, then Pose->Propagate->To Last Keyframe (Make
Cyclic))
2011-03-31 00:45:52 +00:00
Campbell Barton
9c01b94148 py/rna Operator.cancel method didnt have return defined. 2011-03-30 16:44:18 +00:00