blender-staging.git
10 years agopartial fix for [#23532]
Campbell Barton [Tue, 23 Nov 2010 12:05:35 +0000 (12:05 +0000)]
partial fix for [#23532]
- Python calling operators didn't run WM_operator_properties_sanitize() so enum functions called from python were given a NULL context.
- PROP_ENUM_NO_CONTEXT and PROP_NEVER_NULL used the same value in the enum (possible conflict).

10 years agoParticle fluid and boid settings didn't have a valid rna path, so they couldn't be...
Janne Karhu [Tue, 23 Nov 2010 11:15:38 +0000 (11:15 +0000)]
Particle fluid and boid settings didn't have a valid rna path, so they couldn't be animated.

10 years agouse zero initializers instead of memset(), also change PointerRNA_NULL from an extern...
Campbell Barton [Tue, 23 Nov 2010 08:44:21 +0000 (08:44 +0000)]
use zero initializers instead of memset(), also change PointerRNA_NULL from an extern into a define.

10 years agoextensions_framework: fix UI drawing logic
Doug Hammond [Tue, 23 Nov 2010 00:23:57 +0000 (00:23 +0000)]
extensions_framework: fix UI  drawing logic

10 years agoextensions_framework: fix UI drawing bug and some redundant code
Doug Hammond [Tue, 23 Nov 2010 00:06:09 +0000 (00:06 +0000)]
extensions_framework: fix UI  drawing bug and some redundant code

10 years agoPartial fix for #24773: Material Nodes - there isn't able to set keys on Mapping...
Joshua Leung [Mon, 22 Nov 2010 23:59:00 +0000 (23:59 +0000)]
Partial fix for #24773: Material Nodes - there isn't able to set keys on Mapping coordinates

Playback now works. The problem was that material/texture nodetrees were getting ignored completely, as I was assuming that all of these existed in the main->nodetree collection when in fact only the "group" nodetrees lived there. I don't really agree with this, but that's the way it is...

TODO: animation editor support still to come

10 years agofix for player with recent update.
Campbell Barton [Mon, 22 Nov 2010 23:47:00 +0000 (23:47 +0000)]
fix for player with recent update.

10 years agoerror in own recent commit
Campbell Barton [Mon, 22 Nov 2010 23:41:00 +0000 (23:41 +0000)]
error in own recent commit

10 years agofix for building with mingw/cmake
Campbell Barton [Mon, 22 Nov 2010 23:25:21 +0000 (23:25 +0000)]
fix for building with mingw/cmake

10 years agofix for cmake if build flags are not defined.
Campbell Barton [Mon, 22 Nov 2010 23:06:57 +0000 (23:06 +0000)]
fix for cmake if build flags are not defined.

10 years agoFix #24596: specular toggle on material didn't work correct.
Brecht Van Lommel [Mon, 22 Nov 2010 22:23:50 +0000 (22:23 +0000)]
Fix #24596: specular toggle on material didn't work correct.

10 years agofix [#24866] object/transform/align objects error
Campbell Barton [Mon, 22 Nov 2010 20:54:26 +0000 (20:54 +0000)]
fix [#24866] object/transform/align objects error

10 years agobugfix [#23609] Lamp PointerProperty
Campbell Barton [Mon, 22 Nov 2010 20:44:59 +0000 (20:44 +0000)]
bugfix [#23609] Lamp PointerProperty

10 years agoBugfix #24823
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.

10 years agoMore button alignment stuff: campbell had a script that was
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. :)

10 years agoBugfix #24856
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!)

10 years agobugfix [#24805] bpy operator runs in wrong order or is ignored at all
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

10 years agofix for triangulate OBJ export option.
Campbell Barton [Mon, 22 Nov 2010 16:20:59 +0000 (16:20 +0000)]
fix for triangulate OBJ export option.
reworked fix from Radu Danciu

10 years agobugfix [#20768] Project Snap Broken
Campbell Barton [Mon, 22 Nov 2010 14:16:11 +0000 (14:16 +0000)]
bugfix [#20768] Project Snap Broken

10 years agorna invoke function wm.invoke_confirm() for python access.
Campbell Barton [Mon, 22 Nov 2010 13:43:51 +0000 (13:43 +0000)]
rna invoke function wm.invoke_confirm() for python access.

10 years agofind filepaths operator had blend file and search path swapped.
Campbell Barton [Mon, 22 Nov 2010 13:32:43 +0000 (13:32 +0000)]
find filepaths operator had blend file and search path swapped.

10 years agoReverting fix for yesterday's commit that broke Undo.
Ton Roosendaal [Mon, 22 Nov 2010 11:21:33 +0000 (11:21 +0000)]
Reverting fix for yesterday's commit that broke Undo.

10 years ago- blend_m3_m3m3 and blend_m4_m4m4 now support matrices with negative scales.
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.

10 years agofix for fix r33219, reports. Set a valid WM after running UNDO.
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

10 years agorename hide_tooltips_python to show_ ..., tag unused variable with recent sequencer...
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.

10 years agoUser preference to hide Python references in Tooltips.
Elia Sarti [Mon, 22 Nov 2010 00:10:32 +0000 (00:10 +0000)]
User preference to hide Python references in Tooltips.

10 years agoFix: 8bit raw and 'blender voxel' voxel data texture formats didn't support relative...
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

10 years ago== Sequencer ==
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)

10 years agoToggle cyclic on when creating segment between first and last points of non-cyclic...
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

10 years agoRecalc handles after toggling bezier's cyclic flag when deleting segment
Sergey Sharybin [Sun, 21 Nov 2010 19:01:18 +0000 (19:01 +0000)]
Recalc handles after toggling bezier's cyclic flag when deleting segment

10 years agoApplying patch #24822: Select linked for curves as for meshes, CTRL + L version
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)!

10 years agoBugfix #22611
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.

10 years ago[#22854] Objects lag behind mouse pointer when transformed (translated)
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.

10 years agoBugfix #24837
Ton Roosendaal [Sun, 21 Nov 2010 17:32:57 +0000 (17:32 +0000)]
Bugfix #24837

Small typo, EXR option PIZ was typed as PIX

10 years agoBugfix #24825
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.

10 years agodisallow disabling WITH_SAMPLERATE if any audio outputs are enabled.
Campbell Barton [Sun, 21 Nov 2010 16:32:11 +0000 (16:32 +0000)]
disallow disabling WITH_SAMPLERATE if any audio outputs are enabled.

10 years agoWITH_SAMPLERATE option for cmake, without this playback wont behave right so this...
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.

10 years agoFixed missed selection oulines for curves/surfaces/fonts/armature when texture shadin...
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

10 years ago- check IF WIN32 AND NOT UNIX (for cygwin)
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

10 years agoBugfix #24824
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.

10 years ago- include pthreads for win32 globally (as with opengl).
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)

10 years ago- some more rna range corrections
Campbell Barton [Sun, 21 Nov 2010 09:06:27 +0000 (09:06 +0000)]
- some more rna range corrections
- correct exception messages for mathutils constructors.

10 years agoincorrect argument parsing for python opengl module bgl.
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.

10 years agofix for RNA ranges exceeding the range of the type (INT_MAX used on short's for eg).
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).

10 years agoChanging KX_Camera.perspective didn't actually change the camera's perspective becaus...
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.

10 years ago[#24827] Crash when auto-keyframing while playing animation
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.

10 years agoBugfix #24792
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.

10 years ago== Multires ==
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.

10 years agoCancel edge slide on invalid selection.
Martin Poirier [Sat, 20 Nov 2010 18:46:36 +0000 (18:46 +0000)]
Cancel edge slide on invalid selection.

Patch by Shane Ambler

10 years agoBugfix #21028
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.

10 years agoAllow keyframing editmode curve values, also fix a bug where adding a new curve would...
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.

10 years ago- report python script errors to blender report system, or through operators reports...
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.

10 years agoBugfix #24801
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.

10 years agoregion.tag_redraw() broke building with the player.
Campbell Barton [Sat, 20 Nov 2010 14:39:03 +0000 (14:39 +0000)]
region.tag_redraw() broke building with the player.

10 years agoWITH_OPENJPEG wasn't defined for CMake or SCons, which meant blender couldn't save...
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

10 years agoBugfix for [#24768] 6DoF Constraint options missing.
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

10 years ago- smoke wasn't closing the file of loading a tile had the wrong length.
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)

10 years agofix smoke memory leak with OpenMP disabled.
Campbell Barton [Sat, 20 Nov 2010 07:40:50 +0000 (07:40 +0000)]
fix smoke memory leak with OpenMP disabled.

10 years ago- add python/rna function region.tag_redraw()
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)

10 years agoreloading addons wasn't working.
Campbell Barton [Sat, 20 Nov 2010 04:18:06 +0000 (04:18 +0000)]
reloading addons wasn't working.

10 years ago- use relative imports for packages
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)

10 years agopatch from Shane Ambler, free memory when failing to create slide verts.
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.

10 years agobugfix [#24812] Cannot change top/left/front views in quad view after camera change
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

10 years agoTsk! Circle, cross and axis draw types for particles weren't using the particle draw...
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.

10 years agoTsk! Minimum value for particle draw size is 0 (default 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).

10 years agoFix for [#23696] Receive Transparent produces shadows in diffuse pass
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 :)

10 years agofix for error in recent commit.
Campbell Barton [Fri, 19 Nov 2010 11:57:10 +0000 (11:57 +0000)]
fix for error in recent commit.

10 years agouse CMake's OpenMP built in detection rather then defining flags ourselves.
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.

10 years agofix [#24810] Mist Settings Are Not Visually Updated When Camera Displays Mist
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

10 years agofix [#24804] filetring of files doesnt work for import/export
Campbell Barton [Fri, 19 Nov 2010 10:33:44 +0000 (10:33 +0000)]
fix [#24804] filetring of files doesnt work for import/export

10 years agobugfix [#24807] nan pixel on Word BG with Angular Map coord texture
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

10 years ago"Fix" for [#24743] Strand Shading: Distance slider gives different results even when...
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.

10 years agoPossible fix for [#23982] Display update with animated nested custom ID properties
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.

10 years agopatch [#24800] Make scene type buttons from material preview optional
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)

10 years agoedit on last commit, for calculating drivers on obdata just check for animdata rather...
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.

10 years agobugfix [#24796] Drivers are ineffective on Text & Curve obj. geometry parameters
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)

10 years agobugfix for pivot constraint.
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.

10 years agoFixing a crash when dynamically loading a scene that contains a bone parent.
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.

10 years agobugfix [#24803] Export UV Layout in PNG (default) corrupts Blendfile
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.

10 years ago[#24802] Invert vertex group not inverting armature modifier influence
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.

10 years agouse 'const char *' for imbuf and file ops.
Campbell Barton [Fri, 19 Nov 2010 02:14:18 +0000 (02:14 +0000)]
use 'const char *' for imbuf and file ops.

10 years agoremove unused argument.
Campbell Barton [Fri, 19 Nov 2010 01:06:46 +0000 (01:06 +0000)]
remove unused argument.

10 years agoBugfix #24795: Typo fix in particle_system.c
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)

10 years agoAlgorithm fix for fluid particles:
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.

10 years agoBugfix #22052
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)

10 years agoFeature fix
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 :)

10 years agobugfix [#22615] Opening a blend file in python (bpy.ops.wm.open_mainfile() (r29489)
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)

10 years agofix [#24786] Setting Rotation Units to Radians doesn't affect the UI [33146]
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]

10 years agomissed removing the file for scons.
Campbell Barton [Thu, 18 Nov 2010 13:52:09 +0000 (13:52 +0000)]
missed removing the file for scons.

10 years agoremove unused classes.
Campbell Barton [Thu, 18 Nov 2010 12:54:05 +0000 (12:54 +0000)]
remove unused classes.

10 years agorename libs internal libs for CMake + SCons (used in MSVC project files)
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.

10 years agopatch [#24736] 3ds import hierarchy
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.

10 years agoBug fix:
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.

10 years agoBugfix #24781: Can't use rest position / pose position on linked-group proxy armatures
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

10 years agobugfix [#24783] Strange shadows on beveled curve; goes away with modifier
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.

10 years agobugfix [#24777] Scale both markers and keyframes at the same time?
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.

10 years agofix [#24780] Metaballs are not drawn correctly in new scenes
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.

10 years ago- many settings in a new scene didn't match the startup.blend defaults, copied into...
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'

10 years agostore the view align setting even if its disabled & don't edit the view quat when...
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.

10 years agoextensions_framework: lots of docs and code formatting to be more pep8-like
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