Campbell Barton [Mon, 22 Nov 2010 23:25:21 +0000 (23:25 +0000)]
fix for building with mingw/cmake
Campbell Barton [Mon, 22 Nov 2010 23:06:57 +0000 (23:06 +0000)]
fix for cmake if build flags are not defined.
Brecht Van Lommel [Mon, 22 Nov 2010 22:23:50 +0000 (22:23 +0000)]
Fix #24596: specular toggle on material didn't work correct.
Campbell Barton [Mon, 22 Nov 2010 20:54:26 +0000 (20:54 +0000)]
fix [#24866] object/transform/align objects error
Campbell Barton [Mon, 22 Nov 2010 20:44:59 +0000 (20:44 +0000)]
bugfix [#23609] Lamp PointerProperty
Ton Roosendaal [Mon, 22 Nov 2010 18:51:40 +0000 (18:51 +0000)]
Bugfix #24823
Color picker: RMB "insert single value" was inserting all three values.
Same case as yesterday, made code recurse into open menu to check for
active button there.
Ton Roosendaal [Mon, 22 Nov 2010 18:41:08 +0000 (18:41 +0000)]
More button alignment stuff: campbell had a script that was
drawing various cases. Fixed another one. :)
Ton Roosendaal [Mon, 22 Nov 2010 18:11:40 +0000 (18:11 +0000)]
Bugfix #24856
Button aligning revisited. Now layer buttons draw OK too, and even
better than before (missed a rounded corner!)
Campbell Barton [Mon, 22 Nov 2010 17:21:18 +0000 (17:21 +0000)]
bugfix [#24805] bpy operator runs in wrong order or is ignored at all
Campbell Barton [Mon, 22 Nov 2010 16:20:59 +0000 (16:20 +0000)]
fix for triangulate OBJ export option.
reworked fix from Radu Danciu
Campbell Barton [Mon, 22 Nov 2010 14:16:11 +0000 (14:16 +0000)]
bugfix [#20768] Project Snap Broken
Campbell Barton [Mon, 22 Nov 2010 13:43:51 +0000 (13:43 +0000)]
rna invoke function wm.invoke_confirm() for python access.
Campbell Barton [Mon, 22 Nov 2010 13:32:43 +0000 (13:32 +0000)]
find filepaths operator had blend file and search path swapped.
Ton Roosendaal [Mon, 22 Nov 2010 11:21:33 +0000 (11:21 +0000)]
Reverting fix for yesterday's commit that broke Undo.
Campbell Barton [Mon, 22 Nov 2010 10:39:28 +0000 (10:39 +0000)]
- blend_m3_m3m3 and blend_m4_m4m4 now support matrices with negative scales.
- python/mathutils api matrix.lerp(other, factor)
- new function mat3_to_rot_size(), like mat4_to_loc_rot_size but with no location.
Campbell Barton [Mon, 22 Nov 2010 06:18:49 +0000 (06:18 +0000)]
fix for fix r33219, reports. Set a valid WM after running UNDO.
[#24849] changing objects to another layer causes segmentation fault
[#24848] Using an operator outside of edit mode crashes blender
[#24844] Crash related to the subdivision (aka subsurf) modifier
[#24843] ctrl+z crashes blender
Campbell Barton [Mon, 22 Nov 2010 05:36:49 +0000 (05:36 +0000)]
rename hide_tooltips_python to show_ ..., tag unused variable with recent sequencer commits.
Elia Sarti [Mon, 22 Nov 2010 00:10:32 +0000 (00:10 +0000)]
User preference to hide Python references in Tooltips.
Matt Ebb [Sun, 21 Nov 2010 23:36:29 +0000 (23:36 +0000)]
Fix: 8bit raw and 'blender voxel' voxel data texture formats didn't support relative paths
Peter Schlaile [Sun, 21 Nov 2010 20:00:31 +0000 (20:00 +0000)]
== Sequencer ==
* documented and rewrote the render interface of the sequencer.
(now, the geometry / render_type / etc. settings are stored within a
seperate structure called SeqRenderData that is passed within the code.)
* that fixes
* cache problems, since the caching system didn't keep track of
proxy files vs. final renders.
* is a necessary step, to bring back frame blending in speed effect
(the SeqRenderData structure elements are already there)
* will make motion blur render options available within the sequencer!
* this patch also fixes:
* "easy retiming" using speed effects. (in Blender 2.49, you could
add a speed effect and resize the source track to retime it to that
length)
* adds labels for the Original dimensions for Image + Movie tracks
(worked in 2.49, too)
Sergey Sharybin [Sun, 21 Nov 2010 19:29:08 +0000 (19:29 +0000)]
Toggle cyclic on when creating segment between first and last points of non-cyclic bezier
Sergey Sharybin [Sun, 21 Nov 2010 19:01:18 +0000 (19:01 +0000)]
Recalc handles after toggling bezier's cyclic flag when deleting segment
Sergey Sharybin [Sun, 21 Nov 2010 18:50:53 +0000 (18:50 +0000)]
Applying patch #24822: Select linked for curves as for meshes, CTRL + L version
With some own changes:
- Select pick moved to invoke()
- Used editsurfcurve_region_view3d as poll function for this operator
due to ogl dependency
Thanks to Elia Sarti (vekoon)!
Ton Roosendaal [Sun, 21 Nov 2010 18:46:50 +0000 (18:46 +0000)]
Bugfix #22611
(Well, while testing this report I found this fix!)
Blender could crash after rendering a 2.4 or 2.5 file
The context before/during/after file reads is still fishy.
Need a more clear & clean mind to really check it from
scratch again.
Martin Poirier [Sun, 21 Nov 2010 18:31:00 +0000 (18:31 +0000)]
[#22854] Objects lag behind mouse pointer when transformed (translated)
[#24652] Project vertices button showing in object mode and leads to wrong behavior.
Removing soft redraw (code is still there in case we need it eventually) on mouse move, now that events are compressed.
Ton Roosendaal [Sun, 21 Nov 2010 17:32:57 +0000 (17:32 +0000)]
Bugfix #24837
Small typo, EXR option PIZ was typed as PIX
Ton Roosendaal [Sun, 21 Nov 2010 17:23:55 +0000 (17:23 +0000)]
Bugfix #24825
Error in alignment code caused some buttons to draw not nicely
aligned, like the Frame rate buttons in Render properties.
Campbell Barton [Sun, 21 Nov 2010 16:32:11 +0000 (16:32 +0000)]
disallow disabling WITH_SAMPLERATE if any audio outputs are enabled.
Campbell Barton [Sun, 21 Nov 2010 14:32:55 +0000 (14:32 +0000)]
WITH_SAMPLERATE option for cmake, without this playback wont behave right so this is mainly intended for developers who build without audio enabled.
Sergey Sharybin [Sun, 21 Nov 2010 14:05:18 +0000 (14:05 +0000)]
Fixed missed selection oulines for curves/surfaces/fonts/armature when texture shading is active
Campbell Barton [Sun, 21 Nov 2010 13:41:43 +0000 (13:41 +0000)]
- check IF WIN32 AND NOT UNIX (for cygwin)
- patch from Mike S to enable OpenMP and xcode
Ton Roosendaal [Sun, 21 Nov 2010 13:01:22 +0000 (13:01 +0000)]
Bugfix #24824
Color Picker: when inserting keys (right mouse menu), the colors didn't
change for buttons to indicate such. The function that sets the flags
returned too early.
Campbell Barton [Sun, 21 Nov 2010 09:10:50 +0000 (09:10 +0000)]
- include pthreads for win32 globally (as with opengl).
- MSVC CFLAGS were being set by only checking WIN32, (breaking non-msvc win32 builds)
Campbell Barton [Sun, 21 Nov 2010 09:06:27 +0000 (09:06 +0000)]
- some more rna range corrections
- correct exception messages for mathutils constructors.
Campbell Barton [Sun, 21 Nov 2010 05:35:29 +0000 (05:35 +0000)]
incorrect argument parsing for python opengl module bgl.
unsigned byte/short/int were being passes as signed values which would raise an overflow error if a range greater then the signed value was used.
Campbell Barton [Sun, 21 Nov 2010 03:45:35 +0000 (03:45 +0000)]
fix for RNA ranges exceeding the range of the type (INT_MAX used on short's for eg).
Mitchell Stokes [Sun, 21 Nov 2010 01:55:08 +0000 (01:55 +0000)]
Changing KX_Camera.perspective didn't actually change the camera's perspective because the camera's matrix was cached. The setter for KX_Camera.perspective now invalidates the camera's matrix so it's recomputed with the change.
Martin Poirier [Sat, 20 Nov 2010 21:43:16 +0000 (21:43 +0000)]
[#24827] Crash when auto-keyframing while playing animation
Reported by André Oliveira
Need to pass valid context to autokeying callback function.
Ton Roosendaal [Sat, 20 Nov 2010 19:20:27 +0000 (19:20 +0000)]
Bugfix #24792
On file save, the 3d view thumbnail creation caused changes in lighting
enables. Solved with a glPushAttrib() and pop.
Nicholas Bishop [Sat, 20 Nov 2010 18:54:58 +0000 (18:54 +0000)]
== Multires ==
Fixed bug #20620, "VertColors and Flat/Soft imported from 2.49 are wrong
(MultiRes)" reported by Manuel R.
* Added function to load level-0 vertex colors
* Added function to load level-0 face flags
* Warning: the 2.5 multires modifier doesn't support multires vertex colors
or multires face flags; that data will be lost if you import it into 2.5.
Martin Poirier [Sat, 20 Nov 2010 18:46:36 +0000 (18:46 +0000)]
Cancel edge slide on invalid selection.
Patch by Shane Ambler
Ton Roosendaal [Sat, 20 Nov 2010 17:31:59 +0000 (17:31 +0000)]
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.
Campbell Barton [Sat, 20 Nov 2010 17:28:05 +0000 (17:28 +0000)]
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.
Campbell Barton [Sat, 20 Nov 2010 16:39:15 +0000 (16:39 +0000)]
- 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.
Ton Roosendaal [Sat, 20 Nov 2010 16:00:36 +0000 (16:00 +0000)]
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.
Campbell Barton [Sat, 20 Nov 2010 14:39:03 +0000 (14:39 +0000)]
region.tag_redraw() broke building with the player.
Campbell Barton [Sat, 20 Nov 2010 14:19:21 +0000 (14:19 +0000)]
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
Thomas Dinges [Sat, 20 Nov 2010 09:48:51 +0000 (09:48 +0000)]
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
Campbell Barton [Sat, 20 Nov 2010 07:51:39 +0000 (07:51 +0000)]
- 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)
Campbell Barton [Sat, 20 Nov 2010 07:40:50 +0000 (07:40 +0000)]
fix smoke memory leak with OpenMP disabled.
Campbell Barton [Sat, 20 Nov 2010 05:11:10 +0000 (05:11 +0000)]
- 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)
Campbell Barton [Sat, 20 Nov 2010 04:18:06 +0000 (04:18 +0000)]
reloading addons wasn't working.
Campbell Barton [Sat, 20 Nov 2010 02:56:58 +0000 (02:56 +0000)]
- 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)
Campbell Barton [Fri, 19 Nov 2010 17:29:51 +0000 (17:29 +0000)]
patch from Shane Ambler, free memory when failing to create slide verts.
Campbell Barton [Fri, 19 Nov 2010 17:16:25 +0000 (17:16 +0000)]
bugfix [#24812] Cannot change top/left/front views in quad view after camera change
Janne Karhu [Fri, 19 Nov 2010 16:19:15 +0000 (16:19 +0000)]
Tsk! Circle, cross and axis draw types for particles weren't using the particle draw size.
Janne Karhu [Fri, 19 Nov 2010 16:19:07 +0000 (16:19 +0000)]
Tsk! Minimum value for particle draw size is 0 (default size).
Janne Karhu [Fri, 19 Nov 2010 15:17:33 +0000 (15:17 +0000)]
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 :)
Campbell Barton [Fri, 19 Nov 2010 11:57:10 +0000 (11:57 +0000)]
fix for error in recent commit.
Campbell Barton [Fri, 19 Nov 2010 11:33:12 +0000 (11:33 +0000)]
use CMake's OpenMP built in detection rather then defining flags ourselves.
Campbell Barton [Fri, 19 Nov 2010 11:10:56 +0000 (11:10 +0000)]
fix [#24810] Mist Settings Are Not Visually Updated When Camera Displays Mist
Campbell Barton [Fri, 19 Nov 2010 10:33:44 +0000 (10:33 +0000)]
fix [#24804] filetring of files doesnt work for import/export
Campbell Barton [Fri, 19 Nov 2010 10:24:14 +0000 (10:24 +0000)]
bugfix [#24807] nan pixel on Word BG with Angular Map coord texture
also avoid divide by zero with an empty raytree
Janne Karhu [Fri, 19 Nov 2010 08:37:19 +0000 (08:37 +0000)]
"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.
Janne Karhu [Fri, 19 Nov 2010 08:17:57 +0000 (08:17 +0000)]
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.
Campbell Barton [Fri, 19 Nov 2010 07:46:23 +0000 (07:46 +0000)]
patch [#24800] Make scene type buttons from material preview optional
from Wenzel Jakob (wenzel)
Campbell Barton [Fri, 19 Nov 2010 07:40:17 +0000 (07:40 +0000)]
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.
Campbell Barton [Fri, 19 Nov 2010 07:31:24 +0000 (07:31 +0000)]
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)
Campbell Barton [Fri, 19 Nov 2010 06:21:39 +0000 (06:21 +0000)]
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.
Mitchell Stokes [Fri, 19 Nov 2010 04:06:06 +0000 (04:06 +0000)]
Fixing a crash when dynamically loading a scene that contains a bone parent.
Campbell Barton [Fri, 19 Nov 2010 03:45:45 +0000 (03:45 +0000)]
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.
Campbell Barton [Fri, 19 Nov 2010 03:09:51 +0000 (03:09 +0000)]
[#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.
Campbell Barton [Fri, 19 Nov 2010 02:14:18 +0000 (02:14 +0000)]
use 'const char *' for imbuf and file ops.
Campbell Barton [Fri, 19 Nov 2010 01:06:46 +0000 (01:06 +0000)]
remove unused argument.
Joshua Leung [Thu, 18 Nov 2010 23:48:55 +0000 (23:48 +0000)]
Bugfix #24795: Typo fix in particle_system.c
Also, fixed indention in armature.c (stupid space-based indention)
Janne Karhu [Thu, 18 Nov 2010 19:12:36 +0000 (19:12 +0000)]
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.
Ton Roosendaal [Thu, 18 Nov 2010 19:11:05 +0000 (19:11 +0000)]
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)
Ton Roosendaal [Thu, 18 Nov 2010 16:38:32 +0000 (16:38 +0000)]
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 :)
Campbell Barton [Thu, 18 Nov 2010 16:33:13 +0000 (16:33 +0000)]
bugfix [#22615] Opening a blend file in python (bpy.ops.wm.open_mainfile() (r29489)
[#22557] bpy.ops.wm.read_homefile() causes segfault (r29372)
Campbell Barton [Thu, 18 Nov 2010 14:10:09 +0000 (14:10 +0000)]
fix [#24786] Setting Rotation Units to Radians doesn't affect the UI [33146]
Campbell Barton [Thu, 18 Nov 2010 13:52:09 +0000 (13:52 +0000)]
missed removing the file for scons.
Campbell Barton [Thu, 18 Nov 2010 12:54:05 +0000 (12:54 +0000)]
remove unused classes.
Campbell Barton [Thu, 18 Nov 2010 11:42:05 +0000 (11:42 +0000)]
rename libs internal libs for CMake + SCons (used in MSVC project files)
for game engine use "ge_" prefix & make names generally more descriptive.
Campbell Barton [Thu, 18 Nov 2010 10:36:14 +0000 (10:36 +0000)]
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.
Ton Roosendaal [Thu, 18 Nov 2010 08:44:50 +0000 (08:44 +0000)]
Bug fix:
When 2nd window open, the code that tried to find an Image editor in the
the active window failed.
Joshua Leung [Thu, 18 Nov 2010 05:45:21 +0000 (05:45 +0000)]
Bugfix #24781: Can't use rest position / pose position on linked-group proxy armatures
Campbell Barton [Thu, 18 Nov 2010 05:35:04 +0000 (05:35 +0000)]
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.
Campbell Barton [Thu, 18 Nov 2010 05:05:06 +0000 (05:05 +0000)]
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.
Campbell Barton [Thu, 18 Nov 2010 04:26:50 +0000 (04:26 +0000)]
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.
Campbell Barton [Thu, 18 Nov 2010 03:03:17 +0000 (03:03 +0000)]
- 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'
Campbell Barton [Thu, 18 Nov 2010 00:26:00 +0000 (00:26 +0000)]
store the view align setting even if its disabled & don't edit the view quat when getting a euler from it.
Doug Hammond [Wed, 17 Nov 2010 21:28:22 +0000 (21:28 +0000)]
extensions_framework: lots of docs and code formatting to be more pep8-like
Ton Roosendaal [Wed, 17 Nov 2010 18:05:33 +0000 (18:05 +0000)]
Bugfix, irc report by lmg
Toolbar:
Operator 'add object' didn't show checkbox for "align to view" if such was
set in user preferences.
Campbell Barton [Wed, 17 Nov 2010 17:38:56 +0000 (17:38 +0000)]
bugfix [#24690] Scene.frame_set() breaks pose restore
scene.frame_set() was sending out a frame change notifier which would update the scene loosing any un-keyed changes after a script ran.
for now use a window redraw notifier.
Ton Roosendaal [Wed, 17 Nov 2010 16:25:30 +0000 (16:25 +0000)]
Bugfix #24767
Operator redo in 3D window now moves context to the main region,
makes knife cut work (and probably others)
Todo: this callback should be shared with other redo panels. On the
todo list.
Campbell Barton [Wed, 17 Nov 2010 15:16:49 +0000 (15:16 +0000)]
bugfix [#24685] Changing mode bypasses undo suppression
Editmode undo operator was using the operator OPTYPE_UNDO flag as well as its own EM_DO_UNDO option.
This gave 2 problems.
- python suppressed undos would fail (as in the report).
- Undo push was called twice on exiting editmode for no reason.
Use the operator undo in this case.
Campbell Barton [Wed, 17 Nov 2010 14:36:19 +0000 (14:36 +0000)]
fixes from r33127
Campbell Barton [Wed, 17 Nov 2010 12:59:59 +0000 (12:59 +0000)]
fix [#24762] Bezier Point Radius Cannot be Set When Curve is Created
this could be set in 2.4x, no reason to be readonly.
Campbell Barton [Wed, 17 Nov 2010 12:52:56 +0000 (12:52 +0000)]
bugfix [#24766] Crasher on inserting keyframe on Bezier points [33126]
Campbell Barton [Wed, 17 Nov 2010 12:32:39 +0000 (12:32 +0000)]
bugfix [#24671] Operators called from Python Leak Memory
This problem is caused by returning Modal from a non-modal operator.