Commit Graph

26923 Commits

Author SHA1 Message Date
Martin Poirier
6eaf0ac8be Cancel edge slide on invalid selection.
Patch by Shane Ambler
2010-11-20 18:46:36 +00:00
Ton Roosendaal
4f3d80e706 Bugfix #21028
- Image Editor, "New", gave for each tweak in redo menu a new Image
  when Object is in Editmode. This is a limitation of our current
  undo system. Marked this issue in the wiki todo.
  Solved by adding a poll in operator that prevents this to be called.
  (a bit annoying, but the error is worse!)

- On assigning a new image texture to faces in Editmode, no redraw
  happened in 3D window. Added notifier for it.
2010-11-20 17:31:59 +00:00
Campbell Barton
03e943be52 Allow keyframing editmode curve values, also fix a bug where adding a new curve would always use object mode spline list but removing would use editmode when set. 2010-11-20 17:28:05 +00:00
Campbell Barton
7b16d7496d - report python script errors to blender report system, or through operators reports (when using operator callbacks).
- when python operators fail to execute they were returning RUNNING_MODAL, now return CANCELLED

now when an operator fails it gives an error popup as well as a message in the terminal.
2010-11-20 16:39:15 +00:00
Ton Roosendaal
6e5ccba6da Bugfix #24801
- Reading 2.4x files could cause print "missing region type".
  Appeared the 2.50 do_versions patch differed from default region
  definitions
- Sometimes editors showed wrong button for type browsing.
  Was because variable wasn't correctly reset on saves.
2010-11-20 16:00:36 +00:00
Campbell Barton
dcd5d7b99d region.tag_redraw() broke building with the player. 2010-11-20 14:39:03 +00:00
Campbell Barton
8c6c6d01f4 WITH_OPENJPEG wasn't defined for CMake or SCons, which meant blender couldn't save jpeg2000 images from the file selector.
also fixed typo in jp2.c
2010-11-20 14:19:21 +00:00
Thomas Dinges
6aea182b1e Bugfix for [#24768] 6DoF Constraint options missing.
* Added the options in UI and RNA 

Funny Note: This was on my own to-do list (see commit 20577 in the py file from 2009-06-02 when I ported the UI from C to Python) :P
2010-11-20 09:48:51 +00:00
Campbell Barton
78cd971bac - smoke wasn't closing the file of loading a tile had the wrong length.
- missing break in operator context switch meant RGN_TYPE_CHANNELS was always being overwritten with RGN_TYPE_PREVIEW when calling operators (from r26692)
2010-11-20 07:51:39 +00:00
Campbell Barton
de9bb343cf fix smoke memory leak with OpenMP disabled. 2010-11-20 07:40:50 +00:00
Campbell Barton
35014aa741 - add python/rna function region.tag_redraw()
- removed print which was before NULL check, (possible crash)
- add execute hooks for the python console (not used by any scripts yet)
2010-11-20 05:11:10 +00:00
Campbell Barton
593815b23f reloading addons wasn't working. 2010-11-20 04:18:06 +00:00
Campbell Barton
03d8fd4616 - use relative imports for packages
- reload() has been removed from pythons builtins. use imp.reload() instead (still need to apply globally).
- fixed own mistake, not ignoring 'filter_glob' as a keyword argument (broke fbx, obj, 3ds export)
2010-11-20 02:56:58 +00:00
Campbell Barton
96952b83fa patch from Shane Ambler, free memory when failing to create slide verts. 2010-11-19 17:29:51 +00:00
Campbell Barton
e8647ff5c7 bugfix [#24812] Cannot change top/left/front views in quad view after camera change 2010-11-19 17:16:25 +00:00
Janne Karhu
b2a227b442 Tsk! Circle, cross and axis draw types for particles weren't using the particle draw size. 2010-11-19 16:19:15 +00:00
Janne Karhu
64e8035d0b Tsk! Minimum value for particle draw size is 0 (default size). 2010-11-19 16:19:07 +00:00
Janne Karhu
257a2553c0 Fix for [#23696] Receive Transparent produces shadows in diffuse pass
* Even Ton couldn't remember why that code was there, so problem solved by removing the code :)
2010-11-19 15:17:33 +00:00
Campbell Barton
7689ac75ad fix for error in recent commit. 2010-11-19 11:57:10 +00:00
Campbell Barton
a04bbb2374 use CMake's OpenMP built in detection rather then defining flags ourselves. 2010-11-19 11:33:12 +00:00
Campbell Barton
47541fe47e fix [#24810] Mist Settings Are Not Visually Updated When Camera Displays Mist 2010-11-19 11:10:56 +00:00
Campbell Barton
506e692263 fix [#24804] filetring of files doesnt work for import/export 2010-11-19 10:33:44 +00:00
Campbell Barton
7358a95c8a bugfix [#24807] nan pixel on Word BG with Angular Map coord texture
also avoid divide by zero with an empty raytree
2010-11-19 10:24:14 +00:00
Janne Karhu
ba36dd3cc5 "Fix" for [#24743] Strand Shading: Distance slider gives different results even when greyed out
* The actual flag was set at render time, was not supposed to be editable manually.
2010-11-19 08:37:19 +00:00
Janne Karhu
53d0bdd6b3 Possible fix for [#23982] Display update with animated nested custom ID properties
* Any property area can have animated properties, so redraw the area on frame changes regardless of the specific property area type.
2010-11-19 08:17:57 +00:00
Campbell Barton
3066d82662 patch [#24800] Make scene type buttons from material preview optional
from Wenzel Jakob (wenzel)
2010-11-19 07:46:23 +00:00
Campbell Barton
ab72823917 edit on last commit, for calculating drivers on obdata just check for animdata rather then the object type.
also use switch rather then if checks.
2010-11-19 07:40:17 +00:00
Campbell Barton
39de1914ab bugfix [#24796] Drivers are ineffective on Text & Curve obj. geometry parameters
also added note that adjusting bone radius changes the parent bone for connected child bones, and fix typo on failing to read startup.blend (both pointed out by MikeS on IRC)
2010-11-19 07:31:24 +00:00
Campbell Barton
18200f5f87 bugfix for pivot constraint.
- no rotation resulted in NAN location.
- subtraction of pivot done in wrong order made the constraint give odd results when rotating on more then 1 axis.
2010-11-19 06:21:39 +00:00
Mitchell Stokes
844e63f3b6 Fixing a crash when dynamically loading a scene that contains a bone parent. 2010-11-19 04:06:06 +00:00
Campbell Barton
d4a2972a21 bugfix [#24803] Export UV Layout in PNG (default) corrupts Blendfile
Removing a scene would set the active scene, assuming the scene removed was the current scene. This broke UV Export which used a temp background scene.
2010-11-19 03:45:45 +00:00
Campbell Barton
c1664dd78e [#24802] Invert vertex group not inverting armature modifier influence
the armature vertex group options only apply to Multi-Modifier, rename and edit the UI to make this clear.
2010-11-19 03:09:51 +00:00
Campbell Barton
5a09368957 use 'const char *' for imbuf and file ops. 2010-11-19 02:14:18 +00:00
Campbell Barton
0b74aab939 remove unused argument. 2010-11-19 01:06:46 +00:00
Joshua Leung
b83cc77b14 Bugfix #24795: Typo fix in particle_system.c
Also, fixed indention in armature.c (stupid space-based indention)
2010-11-18 23:48:55 +00:00
Janne Karhu
71721f02fc Algorithm fix for fluid particles:
* The SPH fluid particle algorithm was implemented a bit wrong. This problem could for example result in the fluid moving sideways after being dropped straight to a horizontal collision surface, a very big no-no as far as real world physics are concerned!
* After some extensive code shuffling the algorithm is now much more true to the paper it was implemented from, and more importantly now the physics should be correct too!
* The main thing was that fluids calculations can effect many particles simultaneously, so just a single loop through all particles can't work properly. As a side note this also means that the actual fluid algorithm can't be made threaded :(
* To make things work I also had to reshuffle some general particle physics code, but there should be no functional changes what so ever to other physics types, so poke me immediately if something strange happens.

Note to users: these changes will most probably effect the way previously done sph fluid simulations look, so some parameter tweaking will be needed to get things back looking the way they were.
2010-11-18 19:12:36 +00:00
Ton Roosendaal
aef3e99eab Bugfix #22052
OpenGL viewport render gave squeezed results in cases.
Reason: some graphics cards only give offscreen buffers in multiples
of 256 or 512 (my case). 

Current fix uses the actual size returned by graphics card, which
is also safe for too large renders.
More elaborate cropping or matching is for another time.

(Added printf for feedback on this, might disappear)
2010-11-18 19:11:05 +00:00
Ton Roosendaal
e76074da0b Feature fix
When using Material Nodes, there was no indication in Material
Property window which node was active. The context/channel widget
now shows this.

Better would be to be able to browse nodes in this list, and
to have option to preview only this material (not node tree
result). Enough todo for future :)
2010-11-18 16:38:32 +00:00
Campbell Barton
23fbce5a5f bugfix [#22615] Opening a blend file in python (bpy.ops.wm.open_mainfile() (r29489)
[#22557] bpy.ops.wm.read_homefile() causes segfault (r29372)
2010-11-18 16:33:13 +00:00
Campbell Barton
3ae670fc02 fix [#24786] Setting Rotation Units to Radians doesn't affect the UI [33146] 2010-11-18 14:10:09 +00:00
Campbell Barton
4045e838df missed removing the file for scons. 2010-11-18 13:52:09 +00:00
Campbell Barton
95e7417e0a remove unused classes. 2010-11-18 12:54:05 +00:00
Campbell Barton
da1f288f50 rename libs internal libs for CMake + SCons (used in MSVC project files)
for game engine use "ge_" prefix & make names generally more descriptive.
2010-11-18 11:42:05 +00:00
Campbell Barton
8d77002ae7 patch [#24736] 3ds import hierarchy
from Dominique Lorre (dlorre)
- fixes [#24626] 3ds import assigns wrong positions to objects
- spec info http://www.the-labs.com/Blender/3dsspec.html, http://www.martinreddy.net/gfx/3d/3DS.spec

This patch adds parent/child support to the 3ds importer.
2010-11-18 10:36:14 +00:00
Ton Roosendaal
fd3c8214d0 Bug fix:
When 2nd window open, the code that tried to find an Image editor in the
the active window failed.
2010-11-18 08:44:50 +00:00
Joshua Leung
26cd3fd293 Bugfix #24781: Can't use rest position / pose position on linked-group proxy armatures 2010-11-18 05:45:21 +00:00
Campbell Barton
a3773b6ec5 bugfix [#24783] Strange shadows on beveled curve; goes away with modifier
this bug wasnt in 2.4x, suspect this happened when normal flipping was removed.
2010-11-18 05:35:04 +00:00
Campbell Barton
223e70467e bugfix [#24777] Scale both markers and keyframes at the same time?
sync marker option worked for translate and extend but not for scale in the dope sheet.
2010-11-18 05:05:06 +00:00
Campbell Barton
48524d6e91 fix [#24780] Metaballs are not drawn correctly in new scenes
this is a can of worms, at the moment blender depends on broken behavior for metaballs:
 find_basis_mball() can return a metaball object that fails a is_basis_mball() check which makes this logic very confusing (added note about this in mball.c).

Metaballs needs a refactor however at least make drawing fail consistently,
For wire draw is_basis_mball() wasn't being checked, for solid drawing it was (hence the strange wire frame).

For now the motherball needs to exist in the main scene else it wont work.
2010-11-18 04:26:50 +00:00
Campbell Barton
7045ef617f - many settings in a new scene didn't match the startup.blend defaults, copied into scene.c.
- view3d metaball panel wasn't updated for rna name change 'location' -> 'co'
2010-11-18 03:03:17 +00:00